class GpuBuffer<T> : GpuBuffer

book_4_sparkGenerated
code_blocksInput

Description

A typed GpuBuffer that stores data of a specified type T. The type T must be a blittable value type.

Members

Instance Methods

Member NameSummary
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.