Tao.Cg SDK Documentation

Cg Fields

The fields of the Cg class are listed below. For a complete list of Cg class members, see the Cg Members topic.

Public Static (Shared) Fields

CG_ARRAY A collection of one or more elements of the same type.
CG_ARRAY_DIMENSIONS_DO_NOT_MATCH_ERROR Cannot bind the given parameters. Array dimensions do not match.
CG_ARRAY_HAS_WRONG_DIMENSION_ERROR The array is has the wrong dimension.
CG_ARRAY_PARAM_ERROR The parameter must be an array.
CG_ARRAY_SIZE_MISMATCH_ERROR The specified array sizes are not compatible with the given array.
CG_ARRAY_TYPES_DO_NOT_MATCH_ERROR Cannot bind the given parameters. Array types do not match.
CG_ATTR0
CG_ATTR1
CG_ATTR10
CG_ATTR11
CG_ATTR12
CG_ATTR13
CG_ATTR14
CG_ATTR15
CG_ATTR2
CG_ATTR3
CG_ATTR4
CG_ATTR5
CG_ATTR6
CG_ATTR7
CG_ATTR8
CG_ATTR9
CG_BIND_CREATES_CYCLE_ERROR Cannot bind the given parameters. Binding will form a cycle.
CG_BINORMAL0
CG_BINORMAL1
CG_BINORMAL10
CG_BINORMAL11
CG_BINORMAL12
CG_BINORMAL13
CG_BINORMAL14
CG_BINORMAL15
CG_BINORMAL2
CG_BINORMAL3
CG_BINORMAL4
CG_BINORMAL5
CG_BINORMAL6
CG_BINORMAL7
CG_BINORMAL8
CG_BINORMAL9
CG_BLENDINDICES0
CG_BLENDINDICES1
CG_BLENDINDICES10
CG_BLENDINDICES11
CG_BLENDINDICES12
CG_BLENDINDICES13
CG_BLENDINDICES14
CG_BLENDINDICES15
CG_BLENDINDICES2
CG_BLENDINDICES3
CG_BLENDINDICES4
CG_BLENDINDICES5
CG_BLENDINDICES6
CG_BLENDINDICES7
CG_BLENDINDICES8
CG_BLENDINDICES9
CG_BLENDWEIGHT0
CG_BLENDWEIGHT1
CG_BLENDWEIGHT10
CG_BLENDWEIGHT11
CG_BLENDWEIGHT12
CG_BLENDWEIGHT13
CG_BLENDWEIGHT14
CG_BLENDWEIGHT15
CG_BLENDWEIGHT2
CG_BLENDWEIGHT3
CG_BLENDWEIGHT4
CG_BLENDWEIGHT5
CG_BLENDWEIGHT6
CG_BLENDWEIGHT7
CG_BLENDWEIGHT8
CG_BLENDWEIGHT9
CG_BOOL The bool type represents Boolean values. Objects of bool type are either true or false.
CG_BOOL1 Single-element, packed, bool array (vector type).
CG_BOOL1x1 1x1, packed, bool array (matrix type).
CG_BOOL1x2 1x2, packed, bool array (matrix type).
CG_BOOL1x3 1x3, packed, bool array (matrix type).
CG_BOOL1x4 1x4, packed, bool array (matrix type).
CG_BOOL2 Two-element, packed, bool array (vector type).
CG_BOOL2x1 2x1, packed, bool array (matrix type).
CG_BOOL2x2 2x2, packed, bool array (matrix type).
CG_BOOL2x3 2x3, packed, bool array (matrix type).
CG_BOOL2x4 2x4, packed, bool array (matrix type).
CG_BOOL3 Three-element, packed, bool array (vector type).
CG_BOOL3x1 3x1, packed, bool array (matrix type).
CG_BOOL3x2 3x2, packed, bool array (matrix type).
CG_BOOL3x3 3x3, packed, bool array (matrix type).
CG_BOOL3x4 3x4, packed, bool array (matrix type).
CG_BOOL4 Four-element, packed, bool array (vector type).
CG_BOOL4x1 4x1, packed, bool array (matrix type).
CG_BOOL4x2 4x2, packed, bool array (matrix type).
CG_BOOL4x3 4x3, packed, bool array (matrix type).
CG_BOOL4x4 4x4, packed, bool array (matrix type).
CG_C
CG_CANNOT_DESTROY_PARAMETER_ERROR Cannot destroy the parameter. It is bound to other parameters or is not a root parameter.
CG_COL0
CG_COL1
CG_COL2
CG_COL3
CG_COLOR0
CG_COLOR1
CG_COLOR10
CG_COLOR11
CG_COLOR12
CG_COLOR13
CG_COLOR14
CG_COLOR15
CG_COLOR2
CG_COLOR3
CG_COLOR4
CG_COLOR5
CG_COLOR6
CG_COLOR7
CG_COLOR8
CG_COLOR9
CG_COLUMN_MAJOR
CG_COMBINER_CONST0
CG_COMBINER_CONST1
CG_COMBINER_STAGE_CONST0
CG_COMBINER_STAGE_CONST1
CG_COMPILE_IMMEDIATE
CG_COMPILE_LAZY
CG_COMPILE_MANUAL
CG_COMPILED_PROGRAM The string for the compiled program.
CG_COMPILER_ERROR The compile returned an error.
CG_CONFLICTING_PARAMETER_TYPES_ERROR A type being added to the context conflicts with an existing type.
CG_CONFLICTING_TYPES_ERROR A type being added to the context conflicts with an existing type.
CG_CONST_EYE
CG_CONSTANT A constant parameter never changes for the life of a compiled program. Modifying a constant parameter requires program recompilation.
CG_CURRENT
CG_DEFAULT The default values for a uniform parameter.
CG_DEPTH0
CG_DEPTH1
CG_DEPTH10
CG_DEPTH11
CG_DEPTH12
CG_DEPTH13
CG_DEPTH14
CG_DEPTH15
CG_DEPTH2
CG_DEPTH3
CG_DEPTH4
CG_DEPTH5
CG_DEPTH6
CG_DEPTH7
CG_DEPTH8
CG_DEPTH9
CG_DIFFUSE0
CG_ERROR An error.
CG_FALSE False.
CG_FILE_READ_ERROR The file could not be read.
CG_FILE_WRITE_ERROR The file could not be written.
CG_FIXED The fixed type is a signed type with a range of at least [-2,2) and with at least 10 bits of fractional precision. Overflow operations on the data type clamp rather than wrap. Fragment profiles must support the fixed type, but may implement it with the same precision as the half or float types. Vertex profiles are required to provide partial support for the fixed type. Vertex profiles have the option to provide full support for the fixed type or to implement the fixed type with the same precision as the half or float types.
CG_FIXED1 Single-element, packed, fixed array (vector type).
CG_FIXED1x1 1x1, packed, fixed array (matrix type).
CG_FIXED1x2 1x2, packed, fixed array (matrix type).
CG_FIXED1x3 1x3, packed, fixed array (matrix type).
CG_FIXED1x4 1x4, packed, fixed array (matrix type).
CG_FIXED2 Two-element, packed, fixed array (vector type).
CG_FIXED2x1 2x1, packed, fixed array (matrix type).
CG_FIXED2x2 2x2, packed, fixed array (matrix type).
CG_FIXED2x3 2x3, packed, fixed array (matrix type).
CG_FIXED2x4 2x4, packed, fixed array (matrix type).
CG_FIXED3 Three-element, packed, fixed array (vector type).
CG_FIXED3x1 3x1, packed, fixed array (matrix type).
CG_FIXED3x2 3x2, packed, fixed array (matrix type).
CG_FIXED3x3 3x3, packed, fixed array (matrix type).
CG_FIXED3x4 3x4, packed, fixed array (matrix type).
CG_FIXED4 Four-element, packed, fixed array (vector type).
CG_FIXED4x1 4x1, packed, fixed array (matrix type).
CG_FIXED4x2 4x2, packed, fixed array (matrix type).
CG_FIXED4x3 4x3, packed, fixed array (matrix type).
CG_FIXED4x4 4x4, packed, fixed array (matrix type).
CG_FLOAT The float type is as close as possible to the IEEE single precision (32-bit) floating point. Profiles must support the float data type.
CG_FLOAT1 Single-element, packed, float array (vector type).
CG_FLOAT1x1 1x1, packed, float array (matrix type).
CG_FLOAT1x2 1x2, packed, float array (matrix type).
CG_FLOAT1x3 1x3, packed, float array (matrix type).
CG_FLOAT1x4 1x4, packed, float array (matrix type).
CG_FLOAT2 Two-element, packed, float array (vector type).
CG_FLOAT2x1 2x1, packed, float array (matrix type).
CG_FLOAT2x2 2x2, packed, float array (matrix type).
CG_FLOAT2x3 2x3, packed, float array (matrix type).
CG_FLOAT2x4 2x4, packed, float array (matrix type).
CG_FLOAT3 Three-element, packed, float array (vector type).
CG_FLOAT3x1 3x1, packed, float array (matrix type).
CG_FLOAT3x2 3x2, packed, float array (matrix type).
CG_FLOAT3x3 3x3, packed, float array (matrix type).
CG_FLOAT3x4 3x4, packed, float array (matrix type).
CG_FLOAT4 Four-element, packed, float array (vector type).
CG_FLOAT4x1 4x1, packed, float array (matrix type).
CG_FLOAT4x2 4x2, packed, float array (matrix type).
CG_FLOAT4x3 4x3, packed, float array (matrix type).
CG_FLOAT4x4 4x4, packed, float array (matrix type).
CG_FOG0
CG_FOG1
CG_FOG10
CG_FOG11
CG_FOG12
CG_FOG13
CG_FOG14
CG_FOG15
CG_FOG2
CG_FOG3
CG_FOG4
CG_FOG5
CG_FOG6
CG_FOG7
CG_FOG8
CG_FOG9
CG_FOGCOORD
CG_GLOBAL A global.
CG_HALF The half type is lower-precision IEEE-like floating point. Profiles must support the half type, but may choose to implement it with the same precision as the float type.
CG_HALF1 Single-element, packed, half array (vector type).
CG_HALF1x1 1x1, packed, half array (matrix type).
CG_HALF1x2 1x2, packed, half array (matrix type).
CG_HALF1x3 1x3, packed, half array (matrix type).
CG_HALF1x4 1x4, packed, half array (matrix type).
CG_HALF2 Two-element, packed, half array (vector type).
CG_HALF2x1 2x1, packed, half array (matrix type).
CG_HALF2x2 2x2, packed, half array (matrix type).
CG_HALF2x3 2x3, packed, half array (matrix type).
CG_HALF2x4 2x4, packed, half array (matrix type).
CG_HALF3 Three-element, packed, half array (vector type).
CG_HALF3x1 3x1, packed, half array (matrix type).
CG_HALF3x2 3x2, packed, half array (matrix type).
CG_HALF3x3 3x3, packed, half array (matrix type).
CG_HALF3x4 3x4, packed, half array (matrix type).
CG_HALF4 Four-element, packed, half array (vector type).
CG_HALF4x1 4x1, packed, half array (matrix type).
CG_HALF4x2 4x2, packed, half array (matrix type).
CG_HALF4x3 4x3, packed, half array (matrix type).
CG_HALF4x4 4x4, packed, half array (matrix type).
CG_HPOS
CG_IN Specifies an input parameter.
CG_INOUT Specifies a parameter that is both input and output.
CG_INT The int type is preferably 32-bit two?’s complement. Profiles may optionally treat int as float.
CG_INT1 Single-element, packed, int array (vector type).
CG_INT1x1 1x1, packed, int array (matrix type).
CG_INT1x2 1x2, packed, int array (matrix type).
CG_INT1x3 1x3, packed, int array (matrix type).
CG_INT1x4 1x4, packed, int array (matrix type).
CG_INT2 Two-element, packed, int array (vector type).
CG_INT2x1 2x1, packed, int array (matrix type).
CG_INT2x2 2x2, packed, int array (matrix type).
CG_INT2x3 2x3, packed, int array (matrix type).
CG_INT2x4 2x4, packed, int array (matrix type).
CG_INT3 Three-element, packed, int array (vector type).
CG_INT3x1 3x1, packed, int array (matrix type).
CG_INT3x2 3x2, packed, int array (matrix type).
CG_INT3x3 3x3, packed, int array (matrix type).
CG_INT3x4 3x4, packed, int array (matrix type).
CG_INT4 Four-element, packed, int array (vector type).
CG_INT4x1 4x1, packed, int array (matrix type).
CG_INT4x2 4x2, packed, int array (matrix type).
CG_INT4x3 4x3, packed, int array (matrix type).
CG_INT4x4 4x4, packed, int array (matrix type).
CG_INVALID_ANNOTATION_HANDLE_ERROR Invalid annotation handle.
CG_INVALID_CONTEXT_HANDLE_ERROR Invalid context handle.
CG_INVALID_DIMENSION_ERROR The dimension value is invalid.
CG_INVALID_EFFECT_HANDLE_ERROR Invalid effect handle.
CG_INVALID_ENUMERANT_ERROR The enumerant parameter has an invalid value.
CG_INVALID_FUNCTION_HANDLE_ERROR Invalid function handle.
CG_INVALID_PARAM_HANDLE_ERROR Invalid parameter handle.
CG_INVALID_PARAMETER_ERROR The parameter used is invalid.
CG_INVALID_PARAMETER_HANDLE_ERROR Invalid parameter handle.
CG_INVALID_PARAMETER_TYPE_ERROR The type of the parameter is invalid.
CG_INVALID_PARAMETER_VARIABILITY_ERROR The parameter could not be changed to the given variability.
CG_INVALID_PASS_HANDLE_ERROR Invalid pass handle.
CG_INVALID_POINTER_ERROR The supplied pointer is NULL.
CG_INVALID_PROFILE_ERROR The profile is not supported.
CG_INVALID_PROGRAM_HANDLE_ERROR Invalid program handle.
CG_INVALID_SIZE_ERROR The size value is invalid.
CG_INVALID_STATE_ASSIGNMENT_HANDLE_ERROR Invalid state assignment handle.
CG_INVALID_STATE_HANDLE_ERROR Invalid state handle.
CG_INVALID_TECHNIQUE_ERROR Technique did not pass validation.
CG_INVALID_TECHNIQUE_HANDLE_ERROR Invalid technique handle.
CG_INVALID_VALUE_TYPE_ERROR An unknown value type was assigned to a parameter.
CG_IS_NOT_PROGRAM_PARAMETER_ERROR The parameter is not a program parameter.
CG_LITERAL
CG_MEMORY_ALLOC_ERROR Memory allocation failed.
CG_MIXED A structure parameter that contains parameters that differ in variability.
CG_NO_ERROR No error has occurred.
CG_NON_NUMERIC_PARAMETER_ERROR The parameter is not of a numeric type.
CG_NORMAL0
CG_NORMAL1
CG_NORMAL10
CG_NORMAL11
CG_NORMAL12
CG_NORMAL13
CG_NORMAL14
CG_NORMAL15
CG_NORMAL2
CG_NORMAL3
CG_NORMAL4
CG_NORMAL5
CG_NORMAL6
CG_NORMAL7
CG_NORMAL8
CG_NORMAL9
CG_NOT_4x4_MATRIX_ERROR The parameter must be a 4x4 matrix type.
CG_NOT_ENOUGH_DATA_ERROR Not enough data was provided.
CG_NOT_MATRIX_PARAM_ERROR The parameter is not of matrix type.
CG_NOT_ROOT_PARAMETER_ERROR The parameter is not a root parameter.
CG_NVPARSE_ERROR nvparse could not successfully parse the output from the Cg compiler backend.
CG_OBJECT A string that contains object code that resulted from the precompilation of some Cg source code.
CG_OFFSET_TEXTURE_BIAS
CG_OFFSET_TEXTURE_MATRIX
CG_OFFSET_TEXTURE_SCALE
CG_OUT Specifies an output parameter.
CG_OUT_OF_ARRAY_BOUNDS_ERROR Index into the array is out of bounds.
CG_PARAMETER_IS_NOT_RESIZABLE_ARRAY_ERROR The parameter must be a resizable array.
CG_PARAMETER_IS_NOT_SHARED_ERROR The parameter must be global.
CG_PARAMETERCLASS_ARRAY
CG_PARAMETERCLASS_MATRIX
CG_PARAMETERCLASS_OBJECT
CG_PARAMETERCLASS_SAMPLER
CG_PARAMETERCLASS_SCALAR
CG_PARAMETERCLASS_STRUCT
CG_PARAMETERCLASS_UNKNOWN
CG_PARAMETERCLASS_VECTOR
CG_PARAMETERS_DO_NOT_MATCH_ERROR The two parameters being bound do not match.
CG_POSITION0
CG_POSITION1
CG_POSITION10
CG_POSITION11
CG_POSITION12
CG_POSITION13
CG_POSITION14
CG_POSITION15
CG_POSITION2
CG_POSITION3
CG_POSITION4
CG_POSITION5
CG_POSITION6
CG_POSITION7
CG_POSITION8
CG_POSITION9
CG_PROFILE_ARBFP1 OpenGL ARB fragment programs 1.0.
CG_PROFILE_ARBVP1 OpenGL ARB vertex programs 1.0.
CG_PROFILE_FP20 OpenGL NV2x fragment programs.
CG_PROFILE_FP30 OpenGL NV30 fragment programs.
CG_PROFILE_GENERIC DirectX 9 vertex shaders.
CG_PROFILE_MAX
CG_PROFILE_PS_1_1 DirectX 8 pixel shaders.
CG_PROFILE_PS_1_2 DirectX 8 pixel shaders.
CG_PROFILE_PS_1_3 DirectX 8 pixel shaders.
CG_PROFILE_PS_2_0 DirectX 9 pixel shaders.
CG_PROFILE_PS_2_X DirectX 9 pixel shaders.
CG_PROFILE_START
CG_PROFILE_UNKNOWN
CG_PROFILE_VP20 OpenGL NV2x vertex programs.
CG_PROFILE_VP30 OpenGL NV30 vertex programs.
CG_PROFILE_VP40 OpenGL NV40 vertex programs.
CG_PROFILE_VS_1_1 DirectX 8 vertex shaders.
CG_PROFILE_VS_2_0 DirectX 9 vertex shaders.
CG_PROFILE_VS_2_X DirectX 9 vertex shaders.
CG_PROGRAM The program.
CG_PROGRAM_BIND_ERROR The program could not bind.
CG_PROGRAM_ENTRY The main entry point for the program.
CG_PROGRAM_LOAD_ERROR The program could not load.
CG_PROGRAM_NOT_LOADED_ERROR The program must be loaded before this operation may be used.
CG_PROGRAM_PROFILE The profile for the program.
CG_PROGRAM_SOURCE The original Cg source program.
CG_PROGRAM_TYPE
CG_PSIZ
CG_PSIZE0
CG_PSIZE1
CG_PSIZE10
CG_PSIZE11
CG_PSIZE12
CG_PSIZE13
CG_PSIZE14
CG_PSIZE15
CG_PSIZE2
CG_PSIZE3
CG_PSIZE4
CG_PSIZE5
CG_PSIZE6
CG_PSIZE7
CG_PSIZE8
CG_PSIZE9
CG_ROW_MAJOR
CG_SAMPLE0
CG_SAMPLE1
CG_SAMPLE10
CG_SAMPLE11
CG_SAMPLE12
CG_SAMPLE13
CG_SAMPLE14
CG_SAMPLE15
CG_SAMPLE2
CG_SAMPLE3
CG_SAMPLE4
CG_SAMPLE5
CG_SAMPLE6
CG_SAMPLE7
CG_SAMPLE8
CG_SAMPLE9
CG_SAMPLER1D A handle to a 1-dimensional texture object.
CG_SAMPLER2D A handle to a 2-dimensional texture object.
CG_SAMPLER3D A handle to a 3-dimensional texture object.
CG_SAMPLERCUBE A handle to a texture object cube map.
CG_SAMPLERRECT A handle to a texture object rectangle.
CG_SOURCE A string that contains Cg source code.
CG_SPECULAR0
CG_STATE_ASSIGNMENT_TYPE_MISMATCH_ERROR Invalid parameter handle.
CG_STRING
CG_STRUCT A collection of one or more members of possibly different types.
CG_TANGENT0
CG_TANGENT1
CG_TANGENT10
CG_TANGENT11
CG_TANGENT12
CG_TANGENT13
CG_TANGENT14
CG_TANGENT15
CG_TANGENT2
CG_TANGENT3
CG_TANGENT4
CG_TANGENT5
CG_TANGENT6
CG_TANGENT7
CG_TANGENT8
CG_TANGENT9
CG_TESSFACTOR
CG_TEX0
CG_TEX1
CG_TEX2
CG_TEX3
CG_TEX4
CG_TEX5
CG_TEX6
CG_TEX7
CG_TEXCOORD0
CG_TEXCOORD1
CG_TEXCOORD10
CG_TEXCOORD11
CG_TEXCOORD12
CG_TEXCOORD13
CG_TEXCOORD14
CG_TEXCOORD15
CG_TEXCOORD2
CG_TEXCOORD3
CG_TEXCOORD4
CG_TEXCOORD5
CG_TEXCOORD6
CG_TEXCOORD7
CG_TEXCOORD8
CG_TEXCOORD9
CG_TEXTURE
CG_TEXUNIT0 Texture unit.
CG_TEXUNIT1
CG_TEXUNIT10
CG_TEXUNIT11
CG_TEXUNIT12
CG_TEXUNIT13
CG_TEXUNIT14
CG_TEXUNIT15
CG_TEXUNIT2
CG_TEXUNIT3
CG_TEXUNIT4
CG_TEXUNIT5
CG_TEXUNIT6
CG_TEXUNIT7
CG_TEXUNIT8
CG_TEXUNIT9
CG_TRUE True.
CG_TYPE_IS_NOT_DEFINED_IN_PROGRAM_ERROR Connecting the parameters failed because The type of the source parameter is not defined within the given program or does not match the type with the same name in the program.
CG_TYPE_START_ENUM Start of the Cg data type definitions.
CG_UNDEFINED
CG_UNIFORM A uniform parameter is one whose value does not chance with each invocation of a program, but whose value can change between groups of program invocations.
CG_UNKNOWN Unknown resource.
CG_UNKNOWN_PROFILE_ERROR The specified profile is unknown.
CG_UNKNOWN_TYPE An unknown data type.
CG_UNSUPPORTED_GL_EXTENSION_ERROR An unsupported GL extension was required to perform this operation.
CG_VAR_ARG_ERROR The variable arguments were specified incorrectly.
CG_VARYING A varying parameter is one whose value changes with each invocation of the program.
CG_VERSION
CG_VERSION_NUM
CG_WPOS

See Also

Cg Class | Tao.Cg Namespace