setParameter
Sets a boolean parameter.
Parameters
Parameter name as defined in the material
Boolean value
Sets a float parameter.
Parameters
Parameter name as defined in the material
Float value
Sets an integer parameter.
Parameters
Parameter name as defined in the material
Integer value
Sets a 2-component boolean vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Sets a 2-component float vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Sets a 2-component integer vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Sets a 3-component boolean vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Sets a 3-component float vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Sets a 3-component integer vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Sets a 4-component boolean vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Fourth component
Sets a 4-component float vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Fourth component
Sets a 4-component integer vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Fourth component
Sets a texture parameter with sampler configuration.
Note: Depth textures cannot be sampled with linear filtering unless comparison mode is set to COMPARE_TO_TEXTURE.
Parameters
Parameter name as defined in the material
Texture to bind (can be null to unbind)
Sampler configuration (filtering, wrapping, comparison function)
Sets a parameter from a boolean array.
Parameters
Parameter name as defined in the material
Array element type (BOOL, BOOL2, BOOL3, or BOOL4)
Source array
Index into v to start copying from
Number of elements to copy
Sets a parameter from an integer array.
Parameters
Parameter name as defined in the material
Array element type (INT, INT2, INT3, or INT4)
Source array
Index into v to start copying from
Number of elements to copy
Sets a parameter from a float array.
Parameters
Parameter name as defined in the material
Array element type (FLOAT, FLOAT2, FLOAT3, FLOAT4, MAT3, or MAT4)
Source array
Index into v to start copying from
Number of elements to copy
Sets an RGB color parameter.
The color is converted based on the specified type (Linear or sRGB).
Parameters
Parameter name as defined in the material
Whether color is in Linear or sRGB space
Red channel 0, 1
Green channel 0, 1
Blue channel 0, 1
Sets an RGBA color parameter.
The color is converted based on the specified type (Linear or sRGB).
Parameters
Parameter name as defined in the material
Whether color is in Linear or sRGB space
Red channel 0, 1
Green channel 0, 1
Blue channel 0, 1
Alpha channel 0, 1
Sets a boolean parameter.
Parameters
Parameter name as defined in the material
Boolean value
Sets a float parameter.
Parameters
Parameter name as defined in the material
Float value
Sets an integer parameter.
Parameters
Parameter name as defined in the material
Integer value
Sets a 2-component boolean vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Sets a 2-component float vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Sets a 2-component integer vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Sets a 3-component boolean vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Sets a 3-component float vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Sets a 3-component integer vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Sets a 4-component boolean vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Fourth component
Sets a 4-component float vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Fourth component
Sets a 4-component integer vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Fourth component
Sets a texture parameter with sampler configuration.
Note: Depth textures cannot be sampled with linear filtering unless comparison mode is set to COMPARE_TO_TEXTURE.
Parameters
Parameter name as defined in the material
Texture to bind (can be null to unbind)
Sampler configuration (filtering, wrapping, comparison function)
Sets a parameter from a boolean array.
Parameters
Parameter name as defined in the material
Array element type (BOOL, BOOL2, BOOL3, or BOOL4)
Source array
Index into v to start copying from
Number of elements to copy
Sets a parameter from an integer array.
Parameters
Parameter name as defined in the material
Array element type (INT, INT2, INT3, or INT4)
Source array
Index into v to start copying from
Number of elements to copy
Sets a parameter from a float array.
Parameters
Parameter name as defined in the material
Array element type (FLOAT, FLOAT2, FLOAT3, FLOAT4, MAT3, or MAT4)
Source array
Index into v to start copying from
Number of elements to copy
Sets an RGB color parameter.
The color is converted based on the specified type (Linear or sRGB).
Parameters
Parameter name as defined in the material
Whether color is in Linear or sRGB space
Red channel 0, 1
Green channel 0, 1
Blue channel 0, 1
Sets an RGBA color parameter.
The color is converted based on the specified type (Linear or sRGB).
Parameters
Parameter name as defined in the material
Whether color is in Linear or sRGB space
Red channel 0, 1
Green channel 0, 1
Blue channel 0, 1
Alpha channel 0, 1
Sets a boolean parameter.
Parameters
Parameter name as defined in the material
Boolean value
Sets a float parameter.
Parameters
Parameter name as defined in the material
Float value
Sets an integer parameter.
Parameters
Parameter name as defined in the material
Integer value
Sets a 2-component boolean vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Sets a 2-component float vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Sets a 2-component integer vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Sets a 3-component boolean vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Sets a 3-component float vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Sets a 3-component integer vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Sets a 4-component boolean vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Fourth component
Sets a 4-component float vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Fourth component
Sets a 4-component integer vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Fourth component
Sets a texture parameter with sampler configuration.
Note: Depth textures cannot be sampled with linear filtering unless comparison mode is set to COMPARE_TO_TEXTURE.
Parameters
Parameter name as defined in the material
Texture to bind (can be null to unbind)
Sampler configuration (filtering, wrapping, comparison function)
Sets a parameter from a boolean array.
Parameters
Parameter name as defined in the material
Array element type (BOOL, BOOL2, BOOL3, or BOOL4)
Source array
Index into v to start copying from
Number of elements to copy
Sets a parameter from an integer array.
Parameters
Parameter name as defined in the material
Array element type (INT, INT2, INT3, or INT4)
Source array
Index into v to start copying from
Number of elements to copy
Sets a parameter from a float array.
Parameters
Parameter name as defined in the material
Array element type (FLOAT, FLOAT2, FLOAT3, FLOAT4, MAT3, or MAT4)
Source array
Index into v to start copying from
Number of elements to copy
Sets an RGB color parameter.
The color is converted based on the specified type (Linear or sRGB).
Parameters
Parameter name as defined in the material
Whether color is in Linear or sRGB space
Red channel 0, 1
Green channel 0, 1
Blue channel 0, 1
Sets an RGBA color parameter.
The color is converted based on the specified type (Linear or sRGB).
Parameters
Parameter name as defined in the material
Whether color is in Linear or sRGB space
Red channel 0, 1
Green channel 0, 1
Blue channel 0, 1
Alpha channel 0, 1
Sets a boolean parameter.
Parameters
Parameter name as defined in the material
Boolean value
Sets a float parameter.
Parameters
Parameter name as defined in the material
Float value
Sets an integer parameter.
Parameters
Parameter name as defined in the material
Integer value
Sets a 2-component boolean vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Sets a 2-component float vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Sets a 2-component integer vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Sets a 3-component boolean vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Sets a 3-component float vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Sets a 3-component integer vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Sets a 4-component boolean vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Fourth component
Sets a 4-component float vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Fourth component
Sets a 4-component integer vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Fourth component
Sets a texture parameter with sampler configuration.
Note: Depth textures cannot be sampled with linear filtering unless comparison mode is set to COMPARE_TO_TEXTURE.
Parameters
Parameter name as defined in the material
Texture to bind (can be null to unbind)
Sampler configuration (filtering, wrapping, comparison function)
Sets a parameter from a boolean array.
Parameters
Parameter name as defined in the material
Array element type (BOOL, BOOL2, BOOL3, or BOOL4)
Source array
Index into v to start copying from
Number of elements to copy
Sets a parameter from an integer array.
Parameters
Parameter name as defined in the material
Array element type (INT, INT2, INT3, or INT4)
Source array
Index into v to start copying from
Number of elements to copy
Sets a parameter from a float array.
Parameters
Parameter name as defined in the material
Array element type (FLOAT, FLOAT2, FLOAT3, FLOAT4, MAT3, or MAT4)
Source array
Index into v to start copying from
Number of elements to copy
Sets an RGB color parameter.
The color is converted based on the specified type (Linear or sRGB).
Parameters
Parameter name as defined in the material
Whether color is in Linear or sRGB space
Red channel 0, 1
Green channel 0, 1
Blue channel 0, 1
Sets an RGBA color parameter.
The color is converted based on the specified type (Linear or sRGB).
Parameters
Parameter name as defined in the material
Whether color is in Linear or sRGB space
Red channel 0, 1
Green channel 0, 1
Blue channel 0, 1
Alpha channel 0, 1
Sets a boolean parameter.
Parameters
Parameter name as defined in the material
Boolean value
Sets a float parameter.
Parameters
Parameter name as defined in the material
Float value
Sets an integer parameter.
Parameters
Parameter name as defined in the material
Integer value
Sets a 2-component boolean vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Sets a 2-component float vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Sets a 2-component integer vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Sets a 3-component boolean vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Sets a 3-component float vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Sets a 3-component integer vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Sets a 4-component boolean vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Fourth component
Sets a 4-component float vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Fourth component
Sets a 4-component integer vector parameter.
Parameters
Parameter name as defined in the material
First component
Second component
Third component
Fourth component
Sets a texture parameter with sampler configuration.
Note: Depth textures cannot be sampled with linear filtering unless comparison mode is set to COMPARE_TO_TEXTURE.
Parameters
Parameter name as defined in the material
Texture to bind (can be null to unbind)
Sampler configuration (filtering, wrapping, comparison function)
Sets a parameter from a boolean array.
Parameters
Parameter name as defined in the material
Array element type (BOOL, BOOL2, BOOL3, or BOOL4)
Source array
Index into v to start copying from
Number of elements to copy
Sets a parameter from an integer array.
Parameters
Parameter name as defined in the material
Array element type (INT, INT2, INT3, or INT4)
Source array
Index into v to start copying from
Number of elements to copy
Sets a parameter from a float array.
Parameters
Parameter name as defined in the material
Array element type (FLOAT, FLOAT2, FLOAT3, FLOAT4, MAT3, or MAT4)
Source array
Index into v to start copying from
Number of elements to copy
Sets an RGB color parameter.
The color is converted based on the specified type (Linear or sRGB).
Parameters
Parameter name as defined in the material
Whether color is in Linear or sRGB space
Red channel 0, 1
Green channel 0, 1
Blue channel 0, 1
Sets an RGBA color parameter.
The color is converted based on the specified type (Linear or sRGB).
Parameters
Parameter name as defined in the material
Whether color is in Linear or sRGB space
Red channel 0, 1
Green channel 0, 1
Blue channel 0, 1
Alpha channel 0, 1