Description

A UTextureRenderTarget2D (bSupportsUAV=true and bAutoGenerateMips=true) written by a late Niagara GPU simulation (after the BasePass in PostOpaqueRender) and sampled by an opaque material is transitioned to UAV access by RDG before the BasePass binds it as SRV for read. This was found in a use-case that involved sampling distance fields in the Niagara simulation. Annotated PIX capture:

[Image Removed]

The material texture read in this scenario is not represented as an RDG resource dependency. If Niagara's late write is the first tracked use, RDG can begin the first transition at the graph prologue. That transition interval can overlap BasePass's raw-RHI material read. Whether a backend splits or completes the transition early is RHI-dependent; the missing protection for the read interval is the underlying problem.

Relevant source:

  • Engine/Plugins/FX/Niagara/Source/Niagara/Private/NiagaraSystemGpuComputeProxy.cpp, tick-stage selection around lines 45-60: global distance fields select PostOpaqueRender.
  • Engine/Source/Runtime/RenderCore/Private/RenderGraphBuilder.cpp, AddFirstTextureTransition, around lines 4195-4240: initial previous state is anchored at graph prologue unless first-transition splitting is disabled.
  • Engine/Plugins/FX/Niagara/Source/Niagara/Private/NiagaraDataInterfaceRenderTarget2D.cpp, SetShaderParameters, around lines 419-439: find/register the texture, UseInternalAccessMode, and enqueue external access.
  • The same RT2D file, PostStage/PostSimulate, around lines 1007-1063: mip generation and cleanup of cached graph resources.
  • Engine/Plugins/FX/Niagara/Source/Niagara/Private/NiagaraGpuComputeDispatch.cpp, ExecuteTicks, around line 1475: submit external access after the tick's dispatch/post-simulation work. This covers readers after the tick, but does not itself protect earlier BasePass reads.
Steps to Reproduce

Derived from the report; not verified:

  1. Use a UTextureRenderTarget2D with UAV support and automatic mip generation enabled.
  2. Bind it to a Niagara RenderTarget2D data interface and write it from a GPU simulation. Use a real global-distance-field dependency (or another required late dependency) and confirm the system executes at PostOpaqueRender.
  3. Sample the same render target from an opaque mesh/landscape material rendered in BasePass.
  4. Run with RHI/D3D12 validation and inspect a PIX capture, including transition begin/end placement.
  5. Compare with an otherwise equivalent system that can legitimately execute at PostInitViews.

Expected: The texture remains SRV-readable throughout the untracked material-read interval. Its transition to UAV must not begin until those reads are complete. Niagara writes and mip generation must subsequently return the texture to the appropriate readable state.

Actual: BasePass binds the texture for SRV access while its state is UAV/incompatible with that read. The tracked Niagara write occurs later.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-405964 in the post.

0
Login to Vote

Unresolved
ComponentUE - Rendering - Architecture - Niagara
Affects Versions5.7
Target Fix5.9
CreatedOct 23, 2026
UpdatedDec 3, 2026
View Jira Issue