Provides script language access to C++ objects of this type.
Class Hierarchy | No registered superclass. |
Function members are as follows:
Return Type | Function Name | Documentation |
---|---|---|
int32 | Copy | Copies the <ProgramConstantInfo> parameters from the source to the destination. |
uint64 | GetTotalSize | Returns the total size in bytes of the shader constant represented by the <ProgramConstantInfo> object. |
int32 | HasBadLocation | Returns true if the shader constant has a location of -1. |
int32 | HasBadOffset | Returns true if the buffer variable has an offset of -1. |
int32 | IsArray | Returns true if the shader constant is an array. |
int32 | IsArrayIndexValid | Returns true if the array index is valid. |
int32 | IsIndexValid | Returns true if the shader constant index is valid. |
int32 | IsMatrix | Returns true if the shader constant is a matrix. |
int32 | IsMemberOfTopLevelArray | Returns true if the shader variable is a member of a top-level array, which means it is not stored in a nested declaration. For example: a member of a shader buffer or uniform buffer declared directly inside the shader buffer or uniform buffer, and not inside an instance of a struct. |
int32 | IsMemberOfTopLevelUnsizedArray | Returns true if the shader variable is a member of a top-level array and is unsized. This will only be true if the shader is the last item in a shader buffer and the last array declaration is unsized. |
int32 | IsOffsetSizeValid | Returns true if the shader constant offset size is valid. |
int32 | IsOffsetValid | Returns true if the shader constant offset is valid. |
int32 | IsPartOfBuffer | Returns true if the shader constant is part of a shader buffer or uniform buffer. |
int32 | IsSizeValid | Returns true if the shader constant size is valid. |
int32 | IsTypeValid | Returns true if the shader constant type is valid. |
Object members are as follows:
Type Name | Accessor Name | Documentation |
---|---|---|
<Str> | Name | Gets or sets the shader constant name. |
<Str> | TypeCode | Returns an OpenGL type code (a value from glext.h) representing the OpenGL type of the constant. |
<Str> | TypeName | Returns the OpenGL type name of the variable such as vec4 or uint or mat4x4. |
int32 | ArrayStride | Gets or sets the shader constant array stride. |
int32 | BufferBinding | Gets or sets the shader constant buffer binding point. |
int32 | BufferIndex | Gets or sets the shader constant buffer index. |
int32 | BufferSize | Gets or sets the size of the buffer. For example: the size of a shader buffer or uniform buffer. |
int32 | BufferType | Gets or sets the shader buffer type. |
int32 | ColMajor | Gets or sets the shader constant column major flag. |
int32 | Cols | Gets or sets the shader constant column count. |
int32 | Columns | Gets or sets the shader constant column count. |
int32 | Count | Returns the count of an array. |
int32 | Index | Gets or sets the shader constant index. |
int32 | Location | Gets or sets the shader constant location. |
int32 | MatrixStride | Gets or sets the shader constant stride for matrix constants. |
int32 | Offset | Gets or sets the shader constant offset. |
int32 | RowMajor | Gets or sets the shader constant row major flag. |
int32 | Rows | Gets or sets the shader constant row flag. |
int32 | TopLevelArrayCount | Returns the top level array count for nested arrays. |
int32 | TopLevelArrayStride | Returns the stride of the top level array. |
int32 | Type | Gets or sets the shader constant type. |
int32 | TypeSize | Gets or sets the shader constant type size. |