ShaderBlock:read
Returns a variable in the ShaderBlock.
value = ShaderBlock:read(name)
Arguments
Name | Type | Description |
name | string | The name of the variable to read. |
Returns
Name | Type | Description |
value | * | The value of the variable. |
Notes
This function is really slow! Only read back values when you need to.
Vectors and matrices will be returned as (flat) tables.
See also
Shader:send
Shader:sendBlock
ShaderBlock:getShaderCode
ShaderBlock:getOffset
ShaderBlock:getSize
ShaderBlock