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

Function getInitState

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

Source from the content-addressed store, hash-verified

163namespace
164{
165Buffer::State getInitState(MemoryType memoryType)
166{
167 switch (memoryType)
168 {
169 case MemoryType::DeviceLocal:
170 return Buffer::State::Common;
171 case MemoryType::Upload:
172 return Buffer::State::GenericRead;
173 case MemoryType::ReadBack:
174 return Buffer::State::CopyDest;
175 default:
176 FALCOR_UNREACHABLE();
177 return Buffer::State::Undefined;
178 }
179}
180} // namespace
181
182void GpuMemoryHeap::initBasePageData(BaseData& data, size_t size)

Callers 1

initBasePageDataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected