Struct InstanceDataStandard ​
Namespace: ValveResourceFormat.Renderer.Buffers
Assembly: Renderer.dll
Draw or instance uniforms.
public struct InstanceDataStandardFields ​
Identification ​
The scene node drawn, which replacement shaders can tell draws apart by, and the index of its own entry.
public uint IdentificationField Value ​
uint
LightingData ​
The scene node's light probe volume index in the low 16 bits, and its env map index in the high 16.
public uint LightingDataField Value ​
uint
MeshBoneData ​
Skinning of the mesh drawn: bit 31: enabled, bits 16-30: bone count, bits 0-15: mesh bone offset.
public uint MeshBoneDataField Value ​
uint
MorphAtlasOrigin ​
The mesh's rect in the morph composite atlas, x in the low 16 bits and y in the high 16.
public uint MorphAtlasOriginField Value ​
uint
MorphAtlasStride ​
Row width of the mesh's rect in the morph composite atlas.
public uint MorphAtlasStrideField Value ​
uint
MorphVertexIdOffset ​
Where the mesh drawn starts in its morph composite, or -1 when it has none.
public int MorphVertexIdOffsetField Value ​
int
TintAlpha ​
Packed tint color and alpha.
public uint TintAlphaField Value ​
uint
TransformIndex ​
Index into the transform buffer.
public uint TransformIndexField Value ​
uint
Methods ​
PackMeshBoneData(RenderableMesh) ​
Packs InstanceDataStandard.MeshBoneData for a mesh.
public static uint PackMeshBoneData(RenderableMesh mesh)Parameters ​
mesh RenderableMesh
The mesh a draw call belongs to.
Returns ​
uint

