FD3D12ResourceBarrierBatcher

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FNoncopyable

FD3D12ResourceBarrierBatcher

References

Module

D3D12RHI

Header

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

Include

#include "D3D12Resources.h"

Syntax

class FD3D12ResourceBarrierBatcher : public FNoncopyable

Constructors

Functions

Name Description

Public function

void

 

AddAliasingBarrier

(
    ID3D12Resource* InResourceBefo...,
    ID3D12Resource* InResourceAfte...
)

Public function

int32

 

AddTransition

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

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

Public function

void

 

AddUAV()

Add a UAV barrier to the batch. Ignoring the actual resource for now.

Public function

void

 

Flush

(
    FD3D12Device* Device,
    ID3D12GraphicsCommandList* pCo...,
    int32 BarrierBatchMax
)

Flush the batch to the specified command list then reset.

Public function Const

const TArray...

 

GetBarriers()

Public function

void

 

Reset()

Clears the batch.