Vixen
02b45cc4
csharp
public record class MeshletBuildInput

The mesh a cluster DAG is built over.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

The same parallel arrays a mesh is imported as, and deliberately not that type: this library sits below the render system, so a build can be checked without a device, a render feature or a material anywhere in the reference graph.

The attributes are here to find seams, not to be simplified. Two vertices at one position with different UVs are a seam, and a seam is locked — collapsing across one would have to decide which of the two texture coordinates the survivor keeps, and either answer smears a texture across the join. Everything the build does with normals, tangents, UVs and weights is that comparison.

Fields and properties (11)

  • public Vector3[] Positions

    One position per vertex.

  • public int[] Indices

    Three vertex indices per triangle.

  • public Vector3[] Normals

    One normal per vertex, or empty.

  • public Vector4[] Tangents

    One tangent per vertex, or empty.

  • public Vector2[] TexCoords

    One texture coordinate per vertex, or empty.

  • public int[] BoneIndices

    Four joint indices per vertex, or empty.

  • public float[] BoneWeights

    Four weights per vertex, or empty.

  • public int MaterialIndex

    Which of the model's materials every cluster is drawn with.

  • public int VertexCount

    How many vertices there are.

  • public int TriangleCount

    How many triangles there are.

  • public bool IsSkinned

    Whether it carries skinning weights.

Methods (1)

  • public void Validate()

    Refuses a mesh a DAG cannot be built over.

Used by (25)

  • VirtualGeometryGameVirtualGeometry
  • ClusterRasterTestsVixen.Rendering.Tests
  • ClusterResolveTestsVixen.Rendering.Tests
  • ClusterTraversalAcceptsTestsVixen.Rendering.Tests
  • ClusterTraversalGroupTestsVixen.Rendering.Tests
  • MeshSimplifierTestsVixen.Rendering.VirtualGeometry.Tests
  • MeshletBuilderVixen.Rendering.VirtualGeometry
  • MeshletBuilderTestsVixen.Rendering.VirtualGeometry.Tests
  • MeshletCutTestsVixen.Rendering.VirtualGeometry.Tests
  • MeshletPageBuilderTestsVixen.Rendering.VirtualGeometry.Tests
  • MeshletStreamingTestsVixen.Rendering.Tests
  • MeshletValidatorVixen.Rendering.VirtualGeometry
  • MeshletValidatorTestsVixen.Rendering.VirtualGeometry.Tests
  • SessionVixen.Rendering.VirtualGeometry
  • ShapesVixen.Rendering.VirtualGeometry.Tests
  • SkinnedClusterTestsVixen.Rendering.Tests
  • SoftwareRasterTestsVixen.Rendering.Tests
  • TopologyVixen.Rendering.VirtualGeometry
  • TopologyTestsVixen.Rendering.VirtualGeometry.Tests
  • VirtualGeometryContentTestsVixen.Rendering.Tests
  • VirtualGeometryDeviceTestsVixen.Graphics.Golden.Tests
  • VirtualGeometryFrameTestsVixen.Rendering.Tests
  • VirtualGeometryGoldenTestsVixen.Graphics.Golden.Tests
  • VisibilityResolveTestsVixen.Rendering.Tests
  • ModelCompilerVixen.Editor.Assets