Vixen
02b45cc4
csharp
public record class ParameterInfo

One writable value, flattened out of the descriptor sets.

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

Remarks

The engine-facing list. A material sets Material.tint without knowing which set or block it lives in, and writes it at into the buffer bound at (, ) — no reflection lookup at draw time.

Fields and properties (9)

  • public string Name

    Dotted path, unique across the whole interface.

  • public ShaderDataType Type

    The value's shape.

  • public int Set

    Descriptor set holding it.

  • public int Binding

    Binding within that set.

  • public int Offset

    Byte offset within the block.

  • public int Size

    Bytes occupied.

  • public int ArrayStride

    Bytes between array elements, or 0.

  • public int MatrixStride

    Bytes between matrix columns, or 0.

  • public string DefaultValue

    What the author initialised it to, as text, or empty when it had no initialiser or a computed one. This is the host's default, not the shader's: a uniform block arrives already filled, so a uniform's initialiser never runs anywhere. It says what a host should put there when it has nothing of its own — and a writer that filled only the parameters somebody set would give var exposure: float = 1f the value zero, which is a black frame produced by a parameter nobody touched. Text rather than a typed value, for the reason DefaultValue is: the schema crosses to a source generator that cannot reference this assembly, and one invariant spelling is easier to agree on than a union.

Methods (1)

  • public ParameterInfo(string Name, ShaderDataType Type, int Set, int Binding, int Offset, int Size, int ArrayStride, int MatrixStride, string DefaultValue = "")

    One writable value, flattened out of the descriptor sets.

Used by (7)

  • ComposeInterfaceTestsVixen.Raven.Tests
  • EffectTranslatorVixen.ShaderCompiler
  • LibraryReflectionTestsVixen.Raven.Tests
  • RavenReflectionVixen.Raven
  • ReflectionBuilderVixen.Raven
  • ReflectionTestsVixen.Raven.Tests
  • StreamTestsVixen.Raven.Tests