Vixen
02b45cc4
csharp
public sealed class IrIndexAccess

Indexes an array, vector or matrix with a runtime value.

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

Remarks

m[i] is the i-th column, which is what SPIR-V's access chain and GLSL's [] both give — so it costs nothing in either backend, where a row would cost a gather. Because storage makes the shader's matrix the transpose of the host's, that column is the host matrix's row i, which is also the intuitive reading. See docs/plan/07 § E.

Fields and properties (1)

Methods (3)

  • public IrIndexAccess(IrValue index)

    Indexes an array, vector or matrix with a runtime value.

  • public override IrType ResultType(IrType input)
  • public override string ToString()

Used by (7)

  • BodyDecoderVixen.Raven
  • GlslEmitterVixen.Raven
  • IrExtractInstructionVixen.Raven
  • IrLoadInstructionVixen.Raven
  • LibraryIrEncoderVixen.Raven
  • LowererVixen.Raven
  • SpirvEmitterVixen.Raven