Vixen
02b45cc4
csharp
public record class ResourceBindingAsset

One resource a node binds, as a document says it.

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

Remarks

Prefer Name to Binding. A binding index is the shader's — Raven assigns it from declaration order within a set — so a document that writes one down is recording a number that changes when a resource is added above it. Naming the shader's own name for the resource resolves it against the effect's plan instead.

The index remains for a shader whose provider reports no plan — a test fake, a host supplying effects of its own. The shipped ones do report it: a baked EffectData carries the binding plan and EffectLoader puts it on the effect.

Fields and properties (7)

  • public string? Name

    The shader's own name for this resource, resolved against its binding plan.

  • public uint Binding

    Its index within the set, when Name is absent or unknown.

  • public DescriptorKind Kind

    What it binds. Taken from the shader's plan when Name resolves.

  • public string Resource

    The frame resource to bind, by the name the document gave it.

  • public SamplerPreset Sampler

    The sampler, for a sampler binding.

  • public long Offset

    Where in the buffer the binding starts.

  • public long Size

    How much of the buffer, or zero for the rest of it.

Used by (10)

  • CompositorAssetTestsVixen.Rendering.Tests
  • CompositorBuilderVixen.Rendering
  • ComputeAssetVixen.Rendering
  • FullScreenAssetVixen.Rendering
  • RenderPassAssetVixen.Rendering
  • TypeRegistrationVixen.Rendering
  • Vixen_Rendering_Compositor_ComputeAssetSerializerVixen.Rendering
  • Vixen_Rendering_Compositor_FullScreenAssetSerializerVixen.Rendering
  • Vixen_Rendering_Compositor_RenderPassAssetSerializerVixen.Rendering
  • Vixen_Rendering_Compositor_ResourceBindingAssetSerializerVixen.Rendering