ComputeInstance
Inherited: None
Description
Public Methods
buffer (const char * name) |
|
compute () const |
|
void |
setBool (const char * name, const bool * value, int32_t count = 1) |
void |
setBuffer (const char * name, ComputeBuffer * buffer) |
void |
setFloat (const char * name, const float * value, int32_t count = 1) |
void |
setInteger (const char * name, const int32_t * value, int32_t count = 1) |
void |
setMatrix4 (const char * name, const Matrix4 * value, int32_t count = 1) |
void |
setTexture (const char * name, Texture * texture) |
void |
setValue (const char * name, const void * value) |
void |
setVector2 (const char * name, const Vector2 * value, int32_t count = 1) |
void |
setVector3 (const char * name, const Vector3 * value, int32_t count = 1) |
void |
setVector4 (const char * name, const Vector4 * value, int32_t count = 1) |
Texture * |
texture (const char * name) |
Static Methods
None
Methods Description
ComputeBuffer * ComputeInstance::buffer (char * 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 (char * 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 value*s. Parameter *count a number of elements in the array.
void ComputeInstance::setBuffer (char * name, ComputeBuffer * buffer)
Sets an overridden compute buffer for a specified name.
See also *buffer*().
void ComputeInstance::setFloat (char * 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 value*s. Parameter *count a number of elements in the array.
void ComputeInstance::setInteger (char * 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 value*s. Parameter *count a number of elements in the array.
void ComputeInstance::setMatrix4 (char * name, Matrix4 * value, int32_t count = 1)
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 value*s. Parameter *count a number of elements in the array.
void ComputeInstance::setTexture (char * name, Texture * texture)
Sets a texture parameter with specified name.
See also *texture*().
void ComputeInstance::setValue (char * name, void * value)
Sets the value of a parameter with specified name in the uniform buffer.
void ComputeInstance::setVector2 (char * name, Vector2 * value, int32_t count = 1)
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 value*s. Parameter *count a number of elements in the array.
void ComputeInstance::setVector3 (char * name, Vector3 * value, int32_t count = 1)
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 value*s. Parameter *count a number of elements in the array.
void ComputeInstance::setVector4 (char * name, Vector4 * value, int32_t count = 1)
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 value*s. Parameter *count a number of elements in the array.
Texture * ComputeInstance::texture (char * name)
Gets the overridden texture for a specified name.
See also setTexture().