A typed GpuBuffer
that stores data of a specified type T
. The type T
must be a blittable value type.
A typed GpuBuffer
that stores data of a specified type T
. The type T
must be a blittable value type.
Member Name | Summary |
---|---|
GetData(Span<T> data) | Copies data from the GPU buffer into the provided span. |
GetData(Span<T> data, int start, int count) | Copies a range of data from the GPU buffer into the provided span, starting at the specified index and copying the specified number of elements. |
SetData(Span<T> data, int elementOffset) | Copies data from the provided span into the GPU buffer, starting at the specified element offset. |