public record class MemberInfoOne member of a uniform or storage block, with everything the host needs to write it without asking the driver.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (7)
public string NameDotted path from the block root, so a nested member is unambiguous.
public ShaderDataType TypeThe member's shape.
public int OffsetByte offset from the start of the block.
public int SizeBytes the member occupies. A float3 is 12 even though it aligns to 16.
public int ArrayStrideBytes between array elements, or 0 when not an array.
public int MatrixStrideBytes between matrix columns, or 0 when not a matrix.
public string DefaultValueThe initialiser the author wrote, as text, or empty. Only a top-level block member has one: a nested field's default belongs to the struct that declares it, and the same struct used in two blocks would otherwise report two answers. Text for the same reason DefaultValue is — see DefaultValue.
Methods (1)
public MemberInfo(string Name, ShaderDataType Type, int Offset, int Size, int ArrayStride, int MatrixStride, string DefaultValue = "")One member of a uniform or storage block, with everything the host needs to write it without asking the driver.
Used by (15)
- LayoutGateTestsVixen.Raven.Gpu.Tests
- VfxShaderUniformTestsVixen.Vfx.Tests
- BindingInfoVixen.Raven
- CompiledEffectTestsVixen.Raven.Tests
- ConventionTestsVixen.Raven.Tests
- EffectTranslatorVixen.ShaderCompiler
- MaterialRecordTestsVixen.Raven.Tests
- PushConstantInfoVixen.Raven
- PushConstantTestsVixen.Raven.Tests
- ReflectionBuilderVixen.Raven
- ReflectionTestsVixen.Raven.Tests
- SizedArrayTestsVixen.Raven.Tests
- StreamTestsVixen.Raven.Tests
- TupleTestsVixen.Raven.Tests
- WritableResourceTestsVixen.Raven.Tests