Function clearUAVCounter

Synopsis

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

void clearUAVCounter(const Buffer::SharedPtr &pBuffer, uint32_t value)

Description

Clear a structured buffer's UAV counter

Parameters:

[ in ] pBuffer - Structured Buffer containing UAV counter

[ in ] value - Value to clear counter to

Source

Lines 148-154 in Source/Falcor/Core/API/D3D12/D3D12ComputeContext.cpp. Line 74 in Source/Falcor/Core/API/ComputeContext.h.

void ComputeContext::clearUAVCounter(const Buffer::SharedPtr& pBuffer, uint32_t value)
{
    if (pBuffer->getUAVCounter())
    {
        clearUAV(pBuffer->getUAVCounter()->getUAV().get(), uint4(value));
    }
}





Add Discussion as Guest

Log in to DocsForge