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. Different types of GPU buffers can be utilized based on the specified UsageFlags. By default, buffers are mapped to StructuredBuffer<T>
and RWStructuredBuffer<T>
in HLSL.