csharp
public sealed class IrArrayLengthInstructionThe element count of a runtime-sized array — a storage buffer's contents.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Takes a place rather than a value, and that is forced rather than chosen: an unsized array cannot be loaded, so there is no value to ask. Both targets agree — GLSL's data.length() and SPIR-V's OpArrayLength each name the block member, not a copy of it.
Only a buffer reaches here. A sized array answers with a constant in the binder, which is why this instruction is about the host's element count and nothing else.
Fields and properties (3)
Methods (1)
Used by (7)
- FunctionVerifierVixen.Raven
- GlslEmitterVixen.Raven
- IrPrinterVixen.Raven
- LibraryBuilderVixen.Raven
- LowererVixen.Raven
- SpirvEmitterVixen.Raven
- WritableResourceTestsVixen.Raven.Tests