Function mapBufferApi

Synopsis

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

void * mapBufferApi(const Buffer::ApiHandle &apiHandle, size_t size)

Description

No description yet.

Source

Lines 74-80 in Source/Falcor/Core/API/D3D12/D3D12Buffer.cpp. Line 57 in Source/Falcor/Core/API/Buffer.cpp.

void* mapBufferApi(const Buffer::ApiHandle& apiHandle, size_t size)
{
    D3D12_RANGE r{ 0, size };
    void* pData;
    d3d_call(apiHandle->Map(0, &r, &pData));
    return pData;
}





Add Discussion as Guest

Log in