Vixen
dd8b0a81
csharp
public enum LayoutRule

How a block's members are packed into memory.

Read the guide page for this →

Fields and properties (2)

  • Std140

    Uniform-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.

  • Std430

    Storage-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