ShaderStorageBufferShadow
Represents a shadow interface for managing a shader storage buffer. The shadow allows operations such as uploading, downloading, and releasing resources, as well as providing a means to obtain a writer for structured buffer data manipulation.
Functions
Link copied to clipboard
Downloads the data from the shader storage buffer to the host. This operation retrieves the current content of the buffer, making it accessible for local processing. Ensure any necessary synchronization is handled to maintain data integrity during the transfer.
Link copied to clipboard
Provides a reader for structured reading of buffer data from the shader storage buffer.
Link copied to clipboard
open fun uploadElements(elementOffset: Int = 0, elementCount: Int = shaderStorageBuffer.format.elements.size)
Link copied to clipboard
Provides a writer for structured manipulation of buffer data in the shader storage buffer.