public record class ParameterInfoOne 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 NameDotted path, unique across the whole interface.
public ShaderDataType TypeThe value's shape.
public int SetDescriptor set holding it.
public int BindingBinding within that set.
public int OffsetByte offset within the block.
public int SizeBytes occupied.
public int ArrayStrideBytes between array elements, or 0.
public int MatrixStrideBytes between matrix columns, or 0.
public string DefaultValueWhat 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