FD3D12ResourceBarrierBatcher::AddTransition

Add a transition resource barrier to the batch. Returns the number of barriers added, which may be negative if an existing barrier was cancelled.

Choose your operating system:

Windows

macOS

Linux

References

Module

D3D12RHI

Header

/Engine/Source/Runtime/D3D12RHI/Public/D3D12Resources.h

Include

#include "D3D12Resources.h"

Syntax

int32 AddTransition
(
    FD3D12Resource * pResource,
    D3D12_RESOURCE_STATES Before,
    D3D12_RESOURCE_STATES After,
    uint32 Subresource
)

Remarks

Add a transition resource barrier to the batch. Returns the number of barriers added, which may be negative if an existing barrier was cancelled.