Vixen
dd8b0a81
csharp
public readonly record struct ShaderGraphMap

A texture a material assigns, and the shader slot it is read through.

Read the guide page for this →

Remarks

⚠ Two names for one thing, kept apart on purpose. This is TexturedMetalRoughnessFeature's arrangement: an artist assigns albedo, and the shader reads albedoIndex, and the two are joined by TextureIndices rather than by a convention that strips a suffix. A guess there is a slot left at zero, which is a valid index holding some other material's texture — a wrong image with nothing to blame.

Fields and properties (2)

  • public string Texture

    What the author called it — the name a .vxmat assigns a texture under.

  • public string Slot

    The uint parameter a host writes the table index into, which is with Index after it.

Methods (1)

  • public ShaderGraphMap(string Texture, string Slot)

    A texture a material assigns, and the shader slot it is read through.

Used by (5)

  • GraphMaterialTestsVixen.Editor.ShaderGraph.Tests
  • ShaderGraphCompilerVixen.Editor.ShaderGraph
  • ShaderGraphMaterialVixen.Editor.ShaderGraph
  • ShaderGraphSourceVixen.Editor.ShaderGraph
  • SurfaceGraphTestsVixen.Editor.ShaderGraph.Tests