Summary

A GPU data buffer intended for use with a <see cref="T:Sandbox.ComputeShader" />. You can read and write arbitrary data to and from the CPU and GPU. This allows for efficient parallel data processing on the GPU. Different GPU buffer types can be used depending on the provided <see cref="T:Sandbox.GpuBuffer.UsageFlags" />. Using the default <see cref="F:Sandbox.GpuBuffer.UsageFlags.Structured" /> type buffers map to StructuredBuffer&lt;T&gt; and RWStructuredBuffer&lt;T&gt; in HLSL.

Properties

ElementCount Number of elements in the buffer.
ElementSize Size of a single element in the buffer.
IsValid
Usage What sort of buffer this is

Methods

CopyStructureCount
Dispose Destroys the GPU buffer, don't use it no more
GetData
SetCounterValue
SetData
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.