The GpuBuffer class in the Sandbox
namespace is a GPU data buffer designed for use with a ComputeShader
. It allows for reading and writing arbitrary data between the CPU and GPU, facilitating efficient parallel data processing on the GPU. The buffer type can vary based on the specified UsageFlags
, with the default being Structured
, which maps to StructuredBuffer<T>
and RWStructuredBuffer<T>
in HLSL.