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

Function ValidateImageConversionParams

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

Source from the content-addressed store, hash-verified

556}
557
558static void ValidateImageConversionParams(
559 const SrcImageDescriptor& srcImageDesc,
560 ImageFormat dstFormat,
561 DataType dstDataType)
562{
563 if (IsCompressedFormat(srcImageDesc.format) || IsCompressedFormat(dstFormat))
564 throw std::invalid_argument("cannot convert compressed image formats");
565 if (IsDepthStencilFormat(srcImageDesc.format) || IsDepthStencilFormat(dstFormat))
566 throw std::invalid_argument("cannot convert depth-stencil image formats");
567}
568
569
570/* ----- Public functions ----- */

Callers 2

ConvertImageBufferFunction · 0.85

Calls 2

IsCompressedFormatFunction · 0.85
IsDepthStencilFormatFunction · 0.85

Tested by

no test coverage detected