ComputeInstance¶
Inherited: None
Description¶
Public Methods¶
buffer (const TString & name) |
|
compute () const |
|
void |
setBool (const TString & name, const bool * value, int32_t count = 1) |
void |
setBuffer (const TString & name, ComputeBuffer * buffer) |
void |
setFloat (const TString & name, const float * value, int32_t count = 1) |
void |
setInteger (const TString & name, const int32_t * value, int32_t count = 1) |
void |
setMatrix4 (const TString & name, const Matrix4 * value, int32_t count = 1) |
void |
setTexture (const TString & name, Texture * texture) |
void |
setValue (const TString & name, const void * value) |
void |
setVector2 (const TString & name, const Vector2 * value, int32_t count = 1) |
void |
setVector3 (const TString & name, const Vector3 * value, int32_t count = 1) |
void |
setVector4 (const TString & name, const Vector4 * value, int32_t count = 1) |
Texture * |
texture (const TString & name) |
Static Methods¶
None
Methods Description¶
ComputeBuffer * ComputeInstance::buffer (TString & name)
Gets the overridden compute buffer for a specified name.
See also setBuffer().
ComputeShader * ComputeInstance::compute () const
Gets the associated ComputeShader for this instance.
void ComputeInstance::setBool (TString & name, bool * value, int32_t count = 1)
Sets a boolean parameter with optional array support. Parameter name specifies a name of the boolean parameter. Parameter value pointer to the boolean value or array of boolean values. Parameter count a number of elements in the array.
void ComputeInstance::setBuffer (TString & name, ComputeBuffer * buffer)
Sets an overridden compute buffer for a specified name.
See also buffer().
void ComputeInstance::setFloat (TString & name, float * value, int32_t count = 1)
Sets a float parameter with optional array support. Parameter name specifies a name of the float parameter. Parameter value pointer to the float value or array of float values. Parameter count a number of elements in the array.
void ComputeInstance::setInteger (TString & name, int32_t * value, int32_t count = 1)
Sets a integer parameter with optional array support. Parameter name specifies a name of the integer parameter. Parameter value pointer to the integer value or array of integer values. Parameter count a number of elements in the array.
Sets a Matrix4 parameter with optional array support. Parameter name specifies a name of the Matrix4 parameter. Parameter value pointer to the Matrix4 value or array of Matrix4 values. Parameter count a number of elements in the array.
Sets a texture parameter with specified name.
See also texture().
void ComputeInstance::setValue (TString & name, void * value)
Sets the value of a parameter with specified name in the uniform buffer.
Sets a Vector2 parameter with optional array support. Parameter name specifies a name of the Vector2 parameter. Parameter value pointer to the Vector2 value or array of Vector2 values. Parameter count a number of elements in the array.
Sets a Vector3 parameter with optional array support. Parameter name specifies a name of the Vector3 parameter. Parameter value pointer to the Vector3 value or array of Vector3 values. Parameter count a number of elements in the array.
Sets a Vector4 parameter with optional array support. Parameter name specifies a name of the Vector4 parameter. Parameter value pointer to the Vector4 value or array of Vector4 values. Parameter count a number of elements in the array.
Gets the overridden texture for a specified name.
See also setTexture().