UniformAccess
When binding writable resources to shaders using Shader:sendBlock
and Shader:sendImage
, an access pattern can be specified as a hint that says whether you plan to read or write to the resource (or both). Sometimes, LÖVR or the GPU driver can use this hint to get better performance or avoid stalling.
Value | Description |
read | The Shader will use the resource in a read-only fashion. |
write | The Shader will use the resource in a write-only fashion. |
readwrite | The resource will be available for reading and writing. |
See also
lovr.graphics