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

Function GetRequiredImageDataSize

deps/LLGL/sources/Core/Image.cpp:293–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293static std::size_t GetRequiredImageDataSize(const Extent3D& extent, const ImageFormat format, const DataType dataType)
294{
295 return static_cast<std::size_t>(ImageFormatSize(format) * DataTypeSize(dataType) * extent.width * extent.height * extent.depth);
296}
297
298static void ValidateImageDataSize(const Extent3D& extent, const DstImageDescriptor& imageDesc)
299{

Callers 1

ValidateImageDataSizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected