csharp
public enum LayoutRuleHow a block's members are packed into memory.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (2)
Std140Uniform-buffer layout. Arrays, structs and matrix columns all round up to 16 bytes, which is what makes a float3[4] cost 64 bytes rather than 48.
Std430Storage-buffer layout. As Std140, minus the round-up-to-16 rule: an array or struct takes its element's natural alignment, so float[4] is 16 bytes rather than 64.
Used by (10)
- Int64TestsVixen.Raven.Tests
- LowererVixen.Raven
- ReflectionBuilderVixen.Raven
- ShaderLayoutVixen.Raven
- ShaderLayoutTestsVixen.Raven.Tests
- SpirvEmitterVixen.Raven
- SpirvGlobalVixen.Raven
- SpirvPointerVixen.Raven
- SpirvTypesVixen.Raven
- WritableResourceTestsVixen.Raven.Tests