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

Function ValidateDestinationImageDesc

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

Source from the content-addressed store, hash-verified

549}
550
551static void ValidateDestinationImageDesc(const DstImageDescriptor& imageDesc)
552{
553 LLGL_ASSERT_PTR(imageDesc.data);
554 if (imageDesc.dataSize % GetMemoryFootprint(imageDesc.format, imageDesc.dataType, 1) != 0)
555 throw std::invalid_argument("destination image data size is not a multiple of the destination data type size");
556}
557
558static void ValidateImageConversionParams(
559 const SrcImageDescriptor& srcImageDesc,

Callers 2

ConvertImageBufferFunction · 0.85
CopyImageBufferRegionFunction · 0.85

Calls 1

GetMemoryFootprintFunction · 0.50

Tested by

no test coverage detected