Api Sandbox GpuBuffer<T>
class

GpuBuffer<T>

public class GpuBuffer<T> : GpuBuffer

A typed GpuBuffer

Type Parameters

T The type of data that the GpuBuffer will store. Must be a blittable value type.

Constructors

GpuBuffer<T>(Int32 elementCount, UsageFlags flags, String debugName)

Methods

Void GetData(Span<T> data)
Void GetData(Span<T> data, Int32 start, Int32 count)
Void SetData(Span<T> data, Int32 elementOffset = 0)
Void GetDataAsync(ReadOnlySpan<T>> callback)
Void GetDataAsync(ReadOnlySpan<T>> callback, Int32 start, Int32 count)
Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.GpuBuffer<T>