Vixen
02b45cc4
csharp
public readonly record struct TextureBarrier

A 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 Texture

    The texture.

  • public ResourceState Before

    What was using it.

  • public ResourceState After

    What is about to.

  • public int BaseMipLevel

    The first mip level the barrier covers.

  • public int MipLevelCount

    How many levels, or 0 for all of them.

  • public int BaseArrayLayer

    The first array layer the barrier covers.

  • public int ArrayLayerCount

    How 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