Vixen
02b45cc4
csharp
public record class ComputeAsset

A compute dispatch, and the resources it declares.

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

Remarks

The last node kind that was code-only. Its value over a hand-written dispatch is the two lists it declares: a pass that says it writes a buffer, beside one that says it reads it, is a pass the graph orders first and puts a barrier after — and a document can now say so.

Fields and properties (12)

  • public string Name

    The node's name, for debug groups and for a human reading the file.

  • public bool Enabled

    Whether the node runs.

  • public string Shader

    The compute shader to run.

  • public string[] Reads

    The textures it samples.

  • public string[] Writes

    The textures it writes, as storage images.

  • public string[] BufferReads

    The buffers it reads.

  • public string[] BufferWrites

    The buffers it writes.

  • public int GroupsX

    How many workgroups to run, across each axis.

  • public int GroupsY
  • public int GroupsZ
  • public DescriptorSetSlot Slot

    Which of the four conventional sets it binds.

  • public ResourceBindingAsset[] Bindings

    What it binds, and where.

Used by (4)

  • CompositorBuilderVixen.Rendering
  • TypeRegistrationVixen.Rendering
  • Vixen_Rendering_Compositor_ComputeAssetSerializerVixen.Rendering
  • ComputeNodeVixen.Editor.AssetEditors