MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / StructuredAppend

Function StructuredAppend

Source/Engine/Graphics/GPUBufferDescription.h:314–317  ·  view source on GitHub ↗

Creates append buffer description (structured buffer). The element count. Size of the element (in bytes). The buffer description. Example in HLSL: AppendStructuredBuffer<float4> or ConsumeStructuredBuffer<float4>.

Source from the content-addressed store, hash-verified

312 /// Example in HLSL: AppendStructuredBuffer<float4> or ConsumeStructuredBuffer<float4>.
313 /// </remarks>
314 static GPUBufferDescription StructuredAppend(int32 elementCount, int32 elementSize)
315 {
316 return Buffer(elementCount * elementSize, GPUBufferFlags::StructuredAppendBuffer | GPUBufferFlags::ShaderResource, PixelFormat::Unknown, nullptr, elementSize);
317 }
318
319 /// <summary>
320 /// Creates counter buffer description (structured buffer).

Callers 1

RenderMethod · 0.85

Calls 1

BufferClass · 0.50

Tested by

no test coverage detected