Click or drag to resize

BgfxVertexPack Method

Packs a vector into vertex stream format.

Namespace:  Internal.SharpBgfx
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static void VertexPack(
	float* input,
	bool inputNormalized,
	VertexAttributeUsage attribute,
	VertexLayout layout,
	IntPtr data,
	int index = 0
)

Parameters

input
Type: SystemSingle*
The four element vector to pack.
inputNormalized
Type: SystemBoolean
true if the input vector is normalized.
attribute
Type: Internal.SharpBgfxVertexAttributeUsage
The attribute usage of the vector data.
layout
Type: Internal.SharpBgfxVertexLayout
The layout of the vertex stream.
data
Type: SystemIntPtr
The pointer to the vertex data stream.
index (Optional)
Type: SystemInt32
The index of the vertex within the stream.
See Also