Description
The WithUAVBinding
method is part of the Texture3DBuilder
class in the Sandbox namespace. This method configures the texture to support Unordered Access View (UAV) binding, which allows the texture to be used for read/write operations in shaders. This is particularly useful for compute shaders or any scenario where you need to perform random access writes to the texture.
Usage
To use the WithUAVBinding
method, you need to call it on an instance of Texture3DBuilder
. This method is typically used in a chain of method calls to configure a 3D texture before finalizing it with the Finish
method.
Example usage:
var textureBuilder = new Texture3DBuilder();
textureBuilder.WithSize(256, 256, 256)
.WithFormat(ImageFormat.RGBA8)
.WithUAVBinding();
var texture = textureBuilder.Finish();
Example
var textureBuilder = new Texture3DBuilder();
textureBuilder.WithSize(256, 256, 256)
.WithFormat(ImageFormat.RGBA8)
.WithUAVBinding();
var texture = textureBuilder.Finish();