Header menu logo Mibo

VertexInstanceWorld Type

Per-instance vertex data for hardware instancing: a 4×4 world matrix packed as four Vector4 rows (stream 1, instanceFrequency = 1).

Matches Shaders/Instanced.fx's TEXCOORD1..4 inputs. The instance VertexDeclaration declares usage indices 1–4 so it does not collide with VertexPositionNormalTexture's own TEXCOORD0 on stream 0.

Record fields

Record Field Description

Row0

Full Usage: Row0

Field type: Vector4

Row 0 of the per-instance world matrix (M11, M12, M13, M14).

Field type: Vector4

Row1

Full Usage: Row1

Field type: Vector4

Row 1 of the per-instance world matrix (M21, M22, M23, M24).

Field type: Vector4

Row2

Full Usage: Row2

Field type: Vector4

Row 2 of the per-instance world matrix (M31, M32, M33, M34).

Field type: Vector4

Row3

Full Usage: Row3

Field type: Vector4

Row 3 of the per-instance world matrix (M41, M42, M43, M44).

Field type: Vector4

Static members

Static member Description

VertexInstanceWorld.Create(world)

Full Usage: VertexInstanceWorld.Create(world)

Parameters:
Returns: VertexInstanceWorld

Constructs a per-instance vertex from a world Matrix.

world : Matrix
Returns: VertexInstanceWorld

Type something to start searching.