Click or drag to resize

BgfxAllocateTransientBuffers Method

Attempts to allocate both a transient vertex buffer and index buffer.

Namespace:  Internal.SharpBgfx
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static bool AllocateTransientBuffers(
	int vertexCount,
	VertexLayout layout,
	int indexCount,
	out TransientVertexBuffer vertexBuffer,
	out TransientIndexBuffer indexBuffer,
	bool index32
)

Parameters

vertexCount
Type: SystemInt32
The number of vertices to allocate.
layout
Type: Internal.SharpBgfxVertexLayout
The layout of each vertex.
indexCount
Type: SystemInt32
The number of indices to allocate.
vertexBuffer
Type: Internal.SharpBgfxTransientVertexBuffer
Returns the allocated transient vertex buffer.
indexBuffer
Type: Internal.SharpBgfxTransientIndexBuffer
Returns the allocated transient index buffer.
index32
Type: SystemBoolean

Return Value

Type: Boolean
true if both space requirements are satisfied and the buffers were allocated.
See Also