Click or drag to resize

VertexLayoutAdd Method

Starts a stream of vertex attribute additions to the layout.

Namespace: Internal.SharpBgfx
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public VertexLayout Add(
	VertexAttributeUsage attribute,
	int count,
	VertexAttributeType type,
	bool normalized = false,
	bool asInt = false
)

Parameters

attribute  VertexAttributeUsage
The kind of attribute to add.
count  Int32
The number of elements in the attribute (1, 2, 3, or 4).
type  VertexAttributeType
The type of data described by the attribute.
normalized  Boolean  (Optional)
if set to true, values will be normalized from a 0-255 range to 0.0 - 0.1 in the shader.
asInt  Boolean  (Optional)
if set to true, the attribute is packaged as an integer in the shader.

Return Value

VertexLayout
This instance, for use in a fluent API.
See Also