Cg Toolkit Cg 3.1 Toolkit Documentation
Cg / Releases / cg_3_1_0013

Name

cg_3_1_0013 - Cg Toolkit 3.1 April 2012

Summary

The Cg Toolkit allows developers to write and run Cg programs using a wide variety of hardware and OS platforms and graphics APIs. Originally released in December 2002, the Toolkit now supports over 30 different DirectX and OpenGL profile targets. It provides a compiler for the Cg language, runtime libraries to use with the OpenGL and DirectX graphics APIs, support for CgFX effect files, example applications, and extensive documentation.

Contents

Cg Runtime Libraries

The Cg core runtime library for managing parameters and loading programs.
The CgGL runtime library for OpenGL based applications.
The CgD3D9 runtime library for DirectX 9 based applications.
The CgD3D10 runtime library for DirectX 10 based applications.
The CgD3D11 runtime library for DirectX 11 based applications.

Supported Profiles

OpenGL
gp5tcp NV_tessellation_program5 control program.
gp5tep NV_tessellation_program5 evaluation program.
gp5gp NV_geomemtry_program5.
gp5vp NV_vertex_program5.
gp5fp NV_fragment_program5.
gp4gp NV_geomemtry_program4.
gp4vp NV_vertex_program4.
gp4fp NV_fragment_program4.
glslg OpenGL Shading Language (GLSL) for OpenGL 2.0 geometry shader.
glslv OpenGL Shading Language (GLSL) for OpenGL 2.0 vertex shader.
glslf OpenGL Shading Language (GLSL) for OpenGL 2.0 fragment shader.
arbvp1 ARB_vertex_program 1.0.
arbfp1 ARB_fragment_program 1.0.
vp40 ARB_vertex_program + NV_vertex_program2 option.
fp40 ARB_fragment_program + NV_fragment_program2 option.
vp30 NV_vertex_program 2.0.
fp30 NV_fragment_program 1.0.
vp20 NV_vertex_program 1.0.
fp20 NV_register_combiners and NV_texture_shader.
DirectX 11.0
ds_5_0 HLSL11 Domain Shader.
hs_5_0 HLSL11 Hull Shader.
gs_5_0 HLSL11 Geometry Shader.
vs_5_0 HLSL11 Vertex Shader.
ps_5_0 HLSL11 Fragment Shader.
DirectX 10.0
gs_4_0 HLSL10 Geometry Shader.
vs_4_0 HLSL10 Vertex Shader.
ps_4_0 HLSL10 Fragment Shader.
DirectX 9.0c
hlslv HLSL9 Vertex Shader.
hlslf HLSL9 Fragment Shader.
vs_3_0 Vertex Shader 3.0.
ps_3_0 Pixel Shader 3.0.
DirectX 9
vs_2_x Extended Vertex Shader 2.0.
ps_2_x Extended Pixel Shader 2.0.
vs_2_0 Vertex Shader 2.0.
ps_2_0 Pixel Shader 2.0.
vs_1_1 Vertex Shader 1.1.
ps_1_3 Pixel Shader 1.3.
ps_1_2 Pixel Shader 1.2.
ps_1_1 Pixel Shader 1.1.

Improvements And Bug Fixes

Bug Fixes

Improved GLSL support for clip semantics.
Fixed a runtime bug concerning gp4 and gp5 geometry programs.

Download

Windows x86/x86-64 installer for Windows XP, Vista and Win7.
Mac OS X ppc/i386/x86_64 dmg for Leopard, Snow Leopard and Lion.
Linux x86 tgz tarball, rpm for RedHat and deb for Debian and Ubuntu.
Linux x86-64 tgz tarball, rpm for RedHat and deb for Debian and Ubuntu.

License

The docs directory contains a file license.pdf providing a non-exclusive, world-wide, royalty free license for redistributing Cg with your applications. See this license for details.

Notice

ALL NVIDIA DESIGN SPECIFICATIONS, REFERENCE BOARDS, FILES, DRAWINGS, DIAGNOSTICS, LISTS, AND OTHER DOCUMENTS (TOGETHER AND SEPARATELY, “MATERIALS”) ARE BEING PROVIDED “AS IS”. NVIDIA MAKES NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY OR OTHERWISE WITH RESPECT TO THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.

Information furnished is believed to be accurate and reliable. However, NVIDIA Corporation assumes no responsibility for the consequences of use of such information or for any infringement of patents or other rights of third parties that may result from its use. No license is granted by implication or otherwise under any patent or patent rights of NVIDIA Corporation. Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all information previously supplied. NVIDIA Corporation products are not authorized for use as critical components in life support devices or systems without express written approval of NVIDIA Corporation.

Trademarks

NVIDIA and the NVIDIA logo are trademarks or registered trademarks of NVIDIA Corporation. Microsoft, Windows, the Windows logo, and DirectX are registered trademarks of Microsoft Corporation. OpenGL is a trademark of SGI. Other company and product names may be trademarks of the respective companies with which they are associated.

Copyright © 2004-2012 NVIDIA Corporation.

All rights reserved.

NVIDIA Corporation
2701 San Tomas Expressway
Santa Clara, CA 95050
www.nvidia.com

See Also

2.1.0009, 2.1.0012, 2.1.0016, 2.1.0017
2.2.0004, 2.2.0006, 2.2.0010, 2.2.0017
3.0.0007, 3.0.0015, 3.0.0016
3.1.0010, 3.1.0013

Cg Toolkit | Cg Toolkit | Download | Release Archive | Profiles | Reference | Books | Discussions |


Cg Releases

cg_2_1_0009
cg_2_1_0012
cg_2_1_0016
cg_2_1_0017
cg_2_2_0004
cg_2_2_0006
cg_2_2_0010
cg_2_2_0017
cg_3_0_0007
cg_3_0_0015
cg_3_0_0016
cg_3_1_0010
cg_3_1_0013