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

Function ValidateSourceImageDesc

deps/LLGL/sources/Core/ImageFlags.cpp:544–549  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542}
543
544static void ValidateSourceImageDesc(const SrcImageDescriptor& imageDesc)
545{
546 LLGL_ASSERT_PTR(imageDesc.data);
547 if (imageDesc.dataSize % GetMemoryFootprint(imageDesc.format, imageDesc.dataType, 1) != 0)
548 throw std::invalid_argument("source image data size is not a multiple of the source data type size");
549}
550
551static void ValidateDestinationImageDesc(const DstImageDescriptor& imageDesc)
552{

Callers 3

ConvertImageBufferFunction · 0.85
CopyImageBufferRegionFunction · 0.85

Calls 1

GetMemoryFootprintFunction · 0.50

Tested by

no test coverage detected