Function apiSubresourceBarrier

Synopsis

#include <Source/Falcor/Core/API/CopyContext.h>

void apiSubresourceBarrier(const Texture *pTexture, Resource::State newState, Resource::State oldState, uint32_t arraySlice, uint32_t mipLevel)

Description

No description yet.

Source

Lines 259-263 in Source/Falcor/Core/API/D3D12/D3D12CopyContext.cpp. Line 150 in Source/Falcor/Core/API/CopyContext.h.

void CopyContext::apiSubresourceBarrier(const Texture* pTexture, Resource::State newState, Resource::State oldState, uint32_t arraySlice, uint32_t mipLevel)
{
    uint32_t subresourceIndex = pTexture->getSubresourceIndex(arraySlice, mipLevel);
    d3d12ResourceBarrier(pTexture, newState, oldState, subresourceIndex, mpLowLevelData->getCommandList());
}





Add Discussion as Guest

Log in to DocsForge