Data object BufferUsage
interface struct BufferUsage
Provides an interface to specify a set of possible usages of a buffer. This is needed when
creating a buffer and can’t change once a buffer is created. Please see [IGraphicsModule#createGraphicsBuffer].
Fields
scanOut
bool — Required
Buffer is to be presented to the screen
gpuWrite
bool — Required
Buffer is to be used for rendering - for example it is going to be used
as the storage for a color buffer
gpuRead
bool — Required
The buffer will be used as a texture that will be sampled from.
cameraWrite
bool — Required
The buffer will be written to by a camera subsystem.
cameraRead
bool — Required
The buffer will be read from by a camera subsystem.
secured
bool — Required
Buffer inaccessible to unprivileged users.
softwareReadOften
bool — Required
These flags specify the frequency of software access.
softwareReadRarely
bool — Required
softwareWriteOften
bool — Required
softwareWriteRarely
bool — Required
hardwareVideoDecoder
bool — Required
The buffer will be written by a video decode accelerator.
hardwareVideoEncoder
bool — Required
The buffer will be read by a video encode accelerator.
decrypt
bool — Required
The buffer will be written by HW decryption module
