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