csharp
public readonly record struct TextureBarrierA texture changing what it is being used for, and therefore its layout.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Subresource ranges are here rather than implied, because the common case in a real renderer is transitioning one mip of a chain — generating mips, or reading level n while writing level n+1 — and a barrier that covers the whole texture there serialises work that did not need serialising.
Fields and properties (7)
public TextureHandle TextureThe texture.
public ResourceState BeforeWhat was using it.
public ResourceState AfterWhat is about to.
public int BaseMipLevelThe first mip level the barrier covers.
public int MipLevelCountHow many levels, or 0 for all of them.
public int BaseArrayLayerThe first array layer the barrier covers.
public int ArrayLayerCountHow many layers, or 0 for all of them.
Methods (1)
public TextureBarrier(TextureHandle Texture, ResourceState Before, ResourceState After, int BaseMipLevel = 0, int MipLevelCount = 0, int BaseArrayLayer = 0, int ArrayLayerCount = 0)A texture changing what it is being used for, and therefore its layout.
Used by (29)
- ArenaFrameThirdPersonShooter
- ArenaIlluminationThirdPersonShooter
- BarrierGroupVixen.Graphics
- ClusteredShadingDeviceTestsVixen.Graphics.Golden.Tests
- EnvironmentTextureVixen.Rendering
- GlCommandRecorderVixen.Graphics.OpenGL
- GlDeviceVixen.Graphics.OpenGL
- GlobalDistanceFieldTextureVixen.Rendering
- ImpostorBakeVixen.Rendering
- IrradianceBounceDeviceTestsVixen.Graphics.Golden.Tests
- IrradianceCubeCaptureVixen.Rendering
- IrradianceFieldTextureVixen.Rendering
- IrradianceShadingDeviceTestsVixen.Graphics.Golden.Tests
- PipelineStateImageTestsVixen.Graphics.Golden.Tests
- ReflectionRendererVixen.Rendering.PostFx
- ReflectionRendererDeviceTestsVixen.Graphics.Golden.Tests
- ReflectionTraceDeviceTestsVixen.Graphics.Golden.Tests
- RenderGraphVixen.Graphics.RenderGraph
- ScreenProbeBilateralImageTestsVixen.Graphics.Golden.Tests
- ScreenProbeHistoryTextureVixen.Rendering
- ScreenProbeTextureVixen.Rendering
- ScreenProbeTraceDeviceTestsVixen.Graphics.Golden.Tests
- ScreenPyramidDeviceTestsVixen.Graphics.Golden.Tests
- SurfaceCacheTextureVixen.Rendering
- SurfaceCardCaptureVixen.Rendering
- TrackingCommandListVixen.Graphics.RenderGraph.Tests
- VideoRenderTargetVixen.Video.Rendering
- VideoTextureVixen.Video
- VulkanCommandListVixen.Graphics.Vulkan