class
ShaderParameterTexture
ShaderParameterTexture defines a texture which is used by the evaluation shader to fetch data from a bound texture.
Properties
Property | Description |
---|---|
Name | The name of the ShaderParameterTexture object. (Inherited from Object) |
TextureFormat | The format of the texture object type, as exposed to the shader. Note that this will not modify the contents of the texture, only modify the type which is exposed in the shader. Only a subset of the types are allowed, and is shader language specific, and is exposed differently in HLSL vs GLSL. In general, 4-vector components of signed and unsigned ints, as well as floats are always allowed. |
TextureName | The name of the texture in the texture table which is bound to the texture variable. |
Methods
Method | Description |
---|---|
AddObserver | Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object) |
GetClass | Get the name of the ShaderParameterTexture class. (Inherited from Object) |
IsA | Returns true if ShaderParameterTexture is a or is a descendant of the class named as the type parameter. (Inherited from Object) |
IsNull | Returns true if the ShaderParameterTexture object is invalid. (Inherited from Object) |
IsSameObjectAs | Returns true if the ShaderParameterTexture object is valid. (Inherited from Object) |
NonNull | Returns true if the ShaderParameterTexture object is valid. (Inherited from Object) |
PrintInfo | Prints the content/info of the ShaderParameterTexture object to the log. (Inherited from Object) |
RemoveObserver | Removes a previously added observer object. (Inherited from Object) |
Static methods
Method | Description |
---|---|
IsClassA | Returns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object) |
SafeCast | SafeCast makes sure the input object is of a class that can be cast into spShaderParameterTexture, and if this is the case, returns the object cast into spShaderParameterTexture. (Inherited from Object) |
Properties details
Name
The name of the ShaderParameterTexture object. (Inherited from Object)
TextureFormat
The format of the texture object type, as exposed to the shader. Note that this will not modify the contents of the texture, only modify the type which is exposed in the shader. Only a subset of the types are allowed, and is shader language specific, and is exposed differently in HLSL vs GLSL. In general, 4-vector components of signed and unsigned ints, as well as floats are always allowed.
Syntax
// Setter
void SetTextureFormat( Simplygon::EAttributeFormat value ) const;
// Getter
Simplygon::EAttributeFormat GetTextureFormat() const;
SetTextureFormat parameters
Type | Name | Min | Max | Description |
---|---|---|---|---|
EAttributeFormat | value | The format. |
GetTextureFormat return value
Type: EAttributeFormat
Default: F32vec4
Key | Value | Comment |
---|---|---|
U8 | 4097 | 1 unsigned 8-bit value. |
S8 | 4353 | 1 signed 8-bit value. |
U8vec2 | 8193 | 2 unsigned 8-bit values. |
S8vec2 | 8449 | 2 signed 8-bit values. |
U8vec3 | 12289 | 3 unsigned 8-bit values. |
S8vec3 | 12545 | 3 signed 8-bit values. |
U8vec4 | 16385 | 4 unsigned 8-bit values. |
S8vec4 | 16641 | 4 signed 8-bit values. |
U16 | 4098 | 1 unsigned 16-bit value. |
S16 | 4354 | 1 signed 16-bit value. |
U16vec2 | 8194 | 2 unsigned 16-bit values. |
S16vec2 | 8450 | 2 signed 16-bit values. |
U16vec3 | 12290 | 3 unsigned 16-bit values. |
S16vec3 | 12546 | 3 signed 16-bit values. |
U16vec4 | 16386 | 4 unsigned 16-bit values. |
S16vec4 | 16642 | 4 signed 16-bit values. |
U32 | 4100 | 1 unsigned 32-bit value. |
S32 | 4356 | 1 signed 32-bit value. |
F32 | 4612 | 1 floating-point 32-bit value. |
U32vec2 | 8196 | 2 unsigned 32-bit values. |
S32vec2 | 8452 | 2 signed 32-bit values. |
F32vec2 | 8708 | 2 floating-point 32-bit values. |
U32vec3 | 12292 | 3 unsigned 32-bit values. |
S32vec3 | 12548 | 3 signed 32-bit values. |
F32vec3 | 12804 | 3 floating-point 32-bit values. |
U32vec4 | 16388 | 4 unsigned 32-bit values. |
S32vec4 | 16644 | 4 signed 32-bit values. |
F32vec4 | 16900 | 4 floating-point 32-bit values. |
U64 | 4104 | 1 unsigned 64-bit value. |
S64 | 4360 | 1 signed 64-bit value. |
F64 | 4616 | 1 floating-point 64-bit value. |
F64vec2 | 8712 | 2 floating-point 64-bit values. |
F64vec3 | 12808 | 3 floating-point 64-bit values. |
F64vec4 | 16904 | 4 floating-point 64-bit values. |
TextureName
The name of the texture in the texture table which is bound to the texture variable.
Methods details
AddObserver
Adds a user-defined observer object to the interface, that will receive events from the interface. (Inherited from Object)
GetClass
Get the name of the ShaderParameterTexture class. (Inherited from Object)
IsA
Returns true if ShaderParameterTexture is a or is a descendant of the class named as the type parameter. (Inherited from Object)
IsNull
Returns true if the ShaderParameterTexture object is invalid. (Inherited from Object)
IsSameObjectAs
Returns true if the ShaderParameterTexture object is valid. (Inherited from Object)
NonNull
Returns true if the ShaderParameterTexture object is valid. (Inherited from Object)
PrintInfo
Prints the content/info of the ShaderParameterTexture object to the log. (Inherited from Object)
RemoveObserver
Removes a previously added observer object. (Inherited from Object)
Static methods details
IsClassA
Returns true if the class is a or is a descendant of the class named as the type parameter. (Inherited from Object)
SafeCast
SafeCast makes sure the input object is of a class that can be cast into spShaderParameterTexture, and if this is the case, returns the object cast into spShaderParameterTexture. (Inherited from Object)