MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / GetBytesPerPixel

Function GetBytesPerPixel

deps/LLGL/sources/Renderer/Format.cpp:221–224  ·  view source on GitHub ↗

Returns the number of bytes per pixel for the specified imagea format and data type

Source from the content-addressed store, hash-verified

219
220// Returns the number of bytes per pixel for the specified imagea format and data type
221static std::uint32_t GetBytesPerPixel(const ImageFormat imageFormat, const DataType dataType)
222{
223 return (ImageFormatSize(imageFormat) * DataTypeSize(dataType));
224}
225
226LLGL_EXPORT std::uint32_t GetMemoryFootprint(const ImageFormat imageFormat, const DataType dataType, std::uint32_t count)
227{

Callers 6

ReadPixelsMethod · 0.85
WritePixelsMethod · 0.85
GetRowStrideMethod · 0.85
GetDataSizeMethod · 0.85
GetDataPtrOffsetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected