public readonly record struct ImportedTextureA texture the host owns and lends the frame.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Two things are imported rather than declared, and they are imported for opposite reasons. The swapchain image belongs to the presentation engine and has to be handed back in Present. A cached shadow atlas belongs to the frame before this one — and a cache is by definition not transient, because the graph's pool exists precisely to recycle memory whose lifetime ends inside the frame.
Everything else should be declared. A resource the graph owns is one it can alias with another whose lifetime does not overlap, and that is most of what a transient pool is for.
Fields and properties (5)
public TextureHandle TextureThe texture.
public TextureViewHandle ViewA view of it, which the graph attaches.
public TextureDescription DescriptionWhat it is, so passes can reason about its size and format.
public ResourceState EntryStateWhat it is being used as when the frame receives it.
public ResourceState ExitStateWhat it must be left as.
Methods (1)
public ImportedTexture(TextureHandle Texture, TextureViewHandle View, TextureDescription Description, ResourceState EntryState = Undefined, ResourceState ExitState = Undefined)A texture the host owns and lends the frame.
Used by (12)
- AutoExposureTestsVixen.Rendering.PostFx.Tests
- BloomTestsVixen.Rendering.PostFx.Tests
- CompositorAssetTestsVixen.Rendering.Tests
- DepthPrepassTestsVixen.Rendering.Tests
- DescriptorBindingTestsVixen.Rendering.Tests
- GraphicsCompositorVixen.Rendering
- PostEffectTestsVixen.Rendering.PostFx.Tests
- PostProcessTestsVixen.Rendering.Tests
- SceneRenderHostVixen.Engine.Renderer
- ShadowCacheTestsVixen.Rendering.Tests
- ShadowMapRendererTestsVixen.Rendering.Tests
- HostedRendererTestsVixen.App.Tests