MCPcopy Create free account
hub / github.com/Apress/Ray-Tracing-Gems-II / BytesPerPixel

Function BytesPerPixel

Chapter_27/Core/TextureManager.cpp:27–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25using namespace Graphics;
26
27static UINT BytesPerPixel( DXGI_FORMAT Format )
28{
29 return (UINT)BitsPerPixel(Format) / 8;
30};
31
32void Texture::Create( size_t Pitch, size_t Width, size_t Height, DXGI_FORMAT Format, const void* InitialData )
33{

Callers 3

ExportToFileMethod · 0.85
CreateMethod · 0.85

Calls 1

BitsPerPixelFunction · 0.70

Tested by

no test coverage detected