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

Function getFormatPixelsPerBlock

Source/Falcor/Core/API/Formats.h:213–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213inline uint32_t getFormatPixelsPerBlock(ResourceFormat format)
214{
215 FALCOR_ASSERT(kFormatDesc[(uint32_t)format].format == format);
216 return kFormatDesc[(uint32_t)format].compressionRatio.width * kFormatDesc[(uint32_t)format].compressionRatio.height;
217}
218
219/**
220 * Check if the format has a depth component

Callers 2

testCopyColorChannelFunction · 0.85
testReductionFunction · 0.85

Calls

no outgoing calls

Tested by 1

testReductionFunction · 0.68