Vixen
02b45cc4
csharp
public record class MemberInfo

One 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 Name

    Dotted path from the block root, so a nested member is unambiguous.

  • public ShaderDataType Type

    The member's shape.

  • public int Offset

    Byte offset from the start of the block.

  • public int Size

    Bytes the member occupies. A float3 is 12 even though it aligns to 16.

  • public int ArrayStride

    Bytes between array elements, or 0 when not an array.

  • public int MatrixStride

    Bytes between matrix columns, or 0 when not a matrix.

  • public string DefaultValue

    The 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