Function getUAV

Summary

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

(1) UnorderedAccessView::SharedPtr getUAV(uint32_t firstElement, uint32_t elementCount=kMaxPossible)

(2) UnorderedAccessView::SharedPtr getUAV() override

Function overload

Synopsis

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

UnorderedAccessView::SharedPtr getUAV(uint32_t firstElement, uint32_t elementCount=kMaxPossible)

Description

Get an unordered access view.

Parameters:

[ in ] firstElement - The first element of the view. For raw buffers, an element is a single float

[ in ] elementCount - The number of elements to bind

Source

Lines 218-226 in Source/Falcor/Core/API/Buffer.cpp. Line 185 in Source/Falcor/Core/API/Buffer.h.

UnorderedAccessView::SharedPtr Buffer::getUAV(uint32_t firstElement, uint32_t elementCount)
{
    auto createFunc = [](Buffer* pBuffer, uint32_t firstElement, uint32_t elementCount)
    {
        return UnorderedAccessView::create(std::static_pointer_cast<Buffer>(pBuffer->shared_from_this()), firstElement, elementCount);
    };
    return findViewCommon<UnorderedAccessView>(this, firstElement, elementCount, mUavs, createFunc);
}

Synopsis

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

UnorderedAccessView::SharedPtr getUAV() override

Description

Get an unordered access view for the entire resource

Source

Lines 228-231 in Source/Falcor/Core/API/Buffer.cpp. Line 193 in Source/Falcor/Core/API/Buffer.h.

UnorderedAccessView::SharedPtr Buffer::getUAV()
{
    return getUAV(0);
}





Add Discussion as Guest

Log in to DocsForge