ShaderBlock:getOffset
Returns the byte offset of a variable in a ShaderBlock. This is useful if you want to manually send binary data to the ShaderBlock using a Blob in ShaderBlock:send.
offset = ShaderBlock:getOffset(field)Arguments
| Name | Type | Description |
| field | string | The name of the variable to get the offset of. |
Returns
| Name | Type | Description |
| offset | number | The byte offset of the variable. |
See also
ShaderBlock:getSizelovr.graphics.newShaderBlockShaderBlock

