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

Function getResourceFormat

Source/Falcor/Core/API/Formats.cpp:241–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241ResourceFormat getResourceFormat(DXGI_FORMAT format)
242{
243 for (size_t i = 0; i < (size_t)ResourceFormat::Count; ++i)
244 {
245 const auto& desc = kNativeFormatDescs[i];
246 if (desc.dxgiFormat == format)
247 return desc.falcorFormat;
248 }
249 return ResourceFormat::Unknown;
250}
251
252VkFormat FALCOR_API getVulkanFormat(ResourceFormat format)
253{

Callers 1

readDDSHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected