csharp
public record class ShaderDataTypeThe shape of a value, flat enough for a generator or an RHI to switch on.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (8)
public IrTypeKind ScalarComponent type. Void for an opaque resource.
public int RowsVector lanes, or matrix rows. 1 for a scalar. A matrix is stored column-major, so this is the length of one column.
public int ColumnsMatrix columns. 1 for a scalar or vector.
public int? ArrayLengthArray length; 0 for a runtime-sized array; null when not an array.
public string? StructNameName of the struct this describes, when it is one.
public bool IsMatrixWhether this describes a matrix rather than a scalar or vector.
public bool IsArrayWhether this describes an array.
public bool IsStructWhether this describes a struct.
Methods (2)
public ShaderDataType(IrTypeKind Scalar, int Rows = 1, int Columns = 1, int? ArrayLength = null, string? StructName = null)The shape of a value, flat enough for a generator or an RHI to switch on.
public static ShaderDataType From(IrType type)Reads an IR type into the engine-facing shape.
Used by (13)
- LayoutGateTestsVixen.Raven.Gpu.Tests
- ConventionTestsVixen.Raven.Tests
- EffectTranslatorVixen.ShaderCompiler
- FragmentOutputInfoVixen.Raven
- MemberInfoVixen.Raven
- ParameterInfoVixen.Raven
- PermutationClosureVixen.ShaderCompiler
- PermutationInfoVixen.Raven
- ReflectionBuilderVixen.Raven
- ReflectionTestsVixen.Raven.Tests
- SpecConstantInfoVixen.Raven
- ValueParameterInfoVixen.Raven
- VertexInputInfoVixen.Raven