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: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public VertexLayout Add(
	VertexAttributeUsage attribute,
	int count,
	VertexAttributeType type,
	bool normalized = false,
	bool asInt = false
)

Parameters

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

Return Value

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