Class DynamicTypedBuffer
Dynamic Typed buffer that allows to upload data to the GPU from CPU (supports dynamic resizing).
Inheritance
DynamicTypedBuffer
Assembly: FlaxEngine.dll
File: Engine/Graphics/DynamicBuffer.h
Syntax
public class DynamicTypedBuffer : public DynamicBuffer
Constructors
DynamicTypedBuffer(uint32 initialCapacity, PixelFormat format, bool isUnorderedAccess=false, const String& name=String::Empty)
Init
Declaration
public DynamicTypedBuffer(uint32 initialCapacity, PixelFormat format, bool isUnorderedAccess=false, const String& name=String::Empty)
Parameters
uint32
initialCapacity
Initial capacity of the buffer (in bytes). |
PixelFormat
format
Format of the data. |
bool
isUnorderedAccess
True if unordered access usage. |
String
name
Buffer name. |
Methods
InitDesc(GPUBufferDescription& desc, int32 numElements)
Declaration
protected virtual void InitDesc(GPUBufferDescription& desc, int32 numElements) override
Parameters
GPUBufferDescription
desc
|
int32
numElements
|