MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / initBasePageData

Method initBasePageData

Source/Falcor/Core/API/GpuMemoryHeap.cpp:182–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180} // namespace
181
182void GpuMemoryHeap::initBasePageData(BaseData& data, size_t size)
183{
184 data.gfxBufferResource = createBufferResource(
185 mpDevice,
186 getInitState(mMemoryType),
187 size,
188 0,
189 ResourceFormat::Unknown,
190 ResourceBindFlags::Vertex | ResourceBindFlags::Index | ResourceBindFlags::Constant,
191 mMemoryType
192 );
193 data.size = size;
194 data.offset = 0;
195 FALCOR_GFX_CALL(data.gfxBufferResource->map(nullptr, (void**)&data.pData));
196}
197
198void GpuMemoryHeap::breakStrongReferenceToDevice()
199{

Callers

nothing calls this directly

Calls 3

createBufferResourceFunction · 0.85
getInitStateFunction · 0.85
mapMethod · 0.80

Tested by

no test coverage detected