Vixen
02b45cc4
csharp
public readonly record struct VfxShaderBinding

One storage buffer the emitted shader expects the host to bind.

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

Fields and properties (6)

  • public string Name

    The name it is declared under, which is what the reflection reports.

  • public VfxAttribute Attribute

    Which attribute it holds.

  • public int Stride

    How many bytes one particle occupies in it, under std430.

  • public bool IsWritten

    Whether a kernel stores into it. A buffer nothing writes is declared read-only, which is one access decoration and lets a driver hoist a load out of a loop.

  • public int Slot

    Which custom attribute this is, or -1 for a built-in. The graph assigned it, so a host that knows the graph knows which buffer it is binding without matching on the name.

  • public VfxBindingRole Role

    What it is for. A Compacted binding mirrors the Particle one of the same attribute exactly, so anything sizing or packing a buffer can treat the two the same and only a host binding them has to care.

Methods (1)

  • public VfxShaderBinding(string Name, VfxAttribute Attribute, int Stride, bool IsWritten, int Slot = -1, VfxBindingRole Role = Particle)

    One storage buffer the emitted shader expects the host to bind.

Used by (7)

  • VfxCustomAttributeTestsVixen.Vfx.Tests
  • VfxGpuSimulationVixen.Rendering
  • VfxShaderVixen.Vfx
  • VfxShaderEmitterVixen.Vfx
  • VfxShaderEmitterTestsVixen.Vfx.Tests
  • VfxShaderPackingVixen.Vfx
  • VfxShaderUniformTestsVixen.Vfx.Tests