BgfxAllocateTransientBuffers Method |
Attempts to allocate both a transient vertex buffer and index buffer.
Namespace: Internal.SharpBgfxAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic static bool AllocateTransientBuffers(
int vertexCount,
VertexLayout layout,
int indexCount,
out TransientVertexBuffer vertexBuffer,
out TransientIndexBuffer indexBuffer,
bool index32
)
Parameters
- vertexCount Int32
- The number of vertices to allocate.
- layout VertexLayout
- The layout of each vertex.
- indexCount Int32
- The number of indices to allocate.
- vertexBuffer TransientVertexBuffer
- Returns the allocated transient vertex buffer.
- indexBuffer TransientIndexBuffer
- Returns the allocated transient index buffer.
- index32 Boolean
-
Return Value
Booleantrue if both space requirements are satisfied and the buffers were allocated.
See Also