MCPcopy Create free account
hub / github.com/carbonengine/trinity / Transition

Function Transition

trinityal/dx12/Utilities.cpp:1359–1374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1357namespace TrinityALImpl
1358{
1359D3D12_RESOURCE_BARRIER Transition(
1360 ID3D12Resource* pResource,
1361 D3D12_RESOURCE_STATES stateBefore,
1362 D3D12_RESOURCE_STATES stateAfter,
1363 UINT subresource,
1364 D3D12_RESOURCE_BARRIER_FLAGS flags )
1365{
1366 D3D12_RESOURCE_BARRIER barrier;
1367 barrier.Type = D3D12_RESOURCE_BARRIER_TYPE_TRANSITION;
1368 barrier.Flags = flags;
1369 barrier.Transition.pResource = pResource;
1370 barrier.Transition.StateBefore = stateBefore;
1371 barrier.Transition.StateAfter = stateAfter;
1372 barrier.Transition.Subresource = subresource;
1373 return barrier;
1374}
1375
1376D3D12_RESOURCE_BARRIER AliasBarrier(
1377 ID3D12Resource* before,

Callers 15

CreateDx12Method · 0.85
DrawInstancedIndirectMethod · 0.85
SetRenderTargetMethod · 0.85
SetDepthStencilMethod · 0.85
SetReadOnlyDepthMethod · 0.85
ClearUavMethod · 0.85
CopySubBufferMethod · 0.85
UseResourcesMethod · 0.85
CreateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected