MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / BitsPerPixel

Function BitsPerPixel

src/engine/DDSFile.cpp:403–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401 }
402
403 static uint32_t BitsPerPixel(nvrhi::Format format)
404 {
405 const FormatMapping& mapping = g_FormatMappings[static_cast<uint32_t>(format)];
406 assert(mapping.nvrhiFormat == format);
407
408 return mapping.bitsPerPixel;
409 }
410
411 static void GetSurfaceInfo(size_t width,
412 size_t height,

Callers 1

FillTextureInfoOffsetsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected