.. _api_ComputeInstance: ComputeInstance =============== Inherited: None .. _api_ComputeInstance_description: Description ----------- .. _api_ComputeInstance_public: Public Methods -------------- +--------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`ComputeBuffer` * | :ref:`buffer` (const TString & name) | +--------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`ComputeShader` * | :ref:`compute` () const | +--------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ | void | :ref:`setBool` (const TString & name, const bool * value, int32_t count = 1) | +--------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ | void | :ref:`setBuffer` (const TString & name, ComputeBuffer * buffer) | +--------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ | void | :ref:`setFloat` (const TString & name, const float * value, int32_t count = 1) | +--------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ | void | :ref:`setInteger` (const TString & name, const int32_t * value, int32_t count = 1) | +--------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ | void | :ref:`setMatrix4` (const TString & name, const Matrix4 * value, int32_t count = 1) | +--------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ | void | :ref:`setTexture` (const TString & name, Texture * texture) | +--------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ | void | :ref:`setValue` (const TString & name, const void * value) | +--------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ | void | :ref:`setVector2` (const TString & name, const Vector2 * value, int32_t count = 1) | +--------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ | void | :ref:`setVector3` (const TString & name, const Vector3 * value, int32_t count = 1) | +--------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ | void | :ref:`setVector4` (const TString & name, const Vector4 * value, int32_t count = 1) | +--------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ | :ref:`Texture` * | :ref:`texture` (const TString & name) | +--------------------------------------------+-------------------------------------------------------------------------------------------------------------------+ .. _api_ComputeInstance_static: Static Methods -------------- None .. _api_ComputeInstance_methods: Methods Description ------------------- .. _api_ComputeInstance_fde107b6: :ref:`ComputeBuffer` * **ComputeInstance::buffer** (:ref:`TString` & *name*) Gets the overridden compute buffer for a specified name. **See also** setBuffer(). ---- .. _api_ComputeInstance_3c8e0965: :ref:`ComputeShader` * **ComputeInstance::compute** () const Gets the associated ComputeShader for this instance. ---- .. _api_ComputeInstance_473dbe08: void **ComputeInstance::setBool** (:ref:`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. ---- .. _api_ComputeInstance_9d235e8b: void **ComputeInstance::setBuffer** (:ref:`TString` & *name*, :ref:`ComputeBuffer` * *buffer*) Sets an overridden compute *buffer* for a specified name. **See also** buffer(). ---- .. _api_ComputeInstance_7fec06a3: void **ComputeInstance::setFloat** (:ref:`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. ---- .. _api_ComputeInstance_851e37df: void **ComputeInstance::setInteger** (:ref:`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. ---- .. _api_ComputeInstance_30c7fed6: void **ComputeInstance::setMatrix4** (:ref:`TString` & *name*, :ref:`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 values. Parameter *count* a number of elements in the array. ---- .. _api_ComputeInstance_65f831ed: void **ComputeInstance::setTexture** (:ref:`TString` & *name*, :ref:`Texture` * *texture*) Sets a *texture* parameter with specified name. **See also** texture(). ---- .. _api_ComputeInstance_d16af879: void **ComputeInstance::setValue** (:ref:`TString` & *name*, void * *value*) Sets the *value* of a parameter with specified *name* in the uniform buffer. ---- .. _api_ComputeInstance_21d4f8b3: void **ComputeInstance::setVector2** (:ref:`TString` & *name*, :ref:`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 values. Parameter *count* a number of elements in the array. ---- .. _api_ComputeInstance_405b6739: void **ComputeInstance::setVector3** (:ref:`TString` & *name*, :ref:`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 values. Parameter *count* a number of elements in the array. ---- .. _api_ComputeInstance_7c0d3256: void **ComputeInstance::setVector4** (:ref:`TString` & *name*, :ref:`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 values. Parameter *count* a number of elements in the array. ---- .. _api_ComputeInstance_e31f8724: :ref:`Texture` * **ComputeInstance::texture** (:ref:`TString` & *name*) Gets the overridden texture for a specified name. **See also** setTexture().