Vixen
02b45cc4
csharp
public record class RenderResourceAsset

A texture the frame declares and the render graph owns.

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

Remarks

The part of a compositor that used to be the host's problem. A document that can say "a half-resolution R11G11B10 bloom chain" is a document that can describe a post-processing pipeline; one that could only refer to textures somebody else made could describe the order of passes and nothing about what flows between them.

Declared, not imported — which means the graph may give two of these the same memory when their lifetimes do not overlap, and may skip allocating one whose only writer got culled. A resource that has to survive the frame is an import instead; see ImportedTexture.

Fields and properties (7)

  • public string Name

    What passes refer to it by.

  • public PixelFormat Format

    Its format.

  • public TextureUsage Usage

    What it is for.

  • public int Width

    Its width in pixels, or 0 to take Scale of the frame's.

  • public int Height

    Its height in pixels, or 0 to take Scale of the frame's.

  • public float Scale

    What fraction of the frame's size to be, when no explicit size is given.

  • public int SampleCount

    How many samples it has.

Methods (1)

  • public TextureDescription Describe(Int2 frameSize)

    This declaration as a texture description, against a frame of a given size.

Used by (19)

  • CompositorAssetTestsVixen.Rendering.Tests
  • CompositorBuilderVixen.Rendering
  • CompositorContentTestsVixen.Assets.Tests
  • CompositorImageTestsVixen.Graphics.Golden.Tests
  • DefaultFrameTestsVixen.Rendering.Tests
  • ForwardFrameTestsVixen.Rendering.Tests
  • GraphicsCompositorVixen.Rendering
  • GraphicsCompositorAssetVixen.Rendering
  • GraphicsCompositorTestsVixen.Rendering.Tests
  • PostProcessTestsVixen.Rendering.Tests
  • TypeRegistrationVixen.Rendering
  • VirtualGeometryGoldenTestsVixen.Graphics.Golden.Tests
  • Vixen_Rendering_Compositor_GraphicsCompositorAssetSerializerVixen.Rendering
  • Vixen_Rendering_Compositor_RenderResourceAssetSerializerVixen.Rendering
  • CompositorCompilerTestsVixen.Editor.AssetEditors.Tests
  • CompositorDeclarationsVixen.Editor.AssetEditors
  • HostedRendererTestsVixen.App.Tests
  • PickingRendererVixen.Editor.SceneView
  • ResourceNodeVixen.Editor.AssetEditors