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

Method Convert

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

Source from the content-addressed store, hash-verified

78/* ----- Storage ----- */
79
80void Image::Convert(const ImageFormat format, const DataType dataType, std::size_t threadCount)
81{
82 /* Convert image buffer (if necessary) */
83 if (data_)
84 {
85 if (auto convertedData = ConvertImageBuffer(GetSrcDesc(), format, dataType, threadCount))
86 data_ = std::move(convertedData);
87 }
88
89 /* Store new attributes */
90 format_ = format;
91 dataType_ = dataType;
92}
93
94void Image::Resize(const Extent3D& extent)
95{

Callers 2

ReadPixelsMethod · 0.45
WritePixelsMethod · 0.45

Calls 1

ConvertImageBufferFunction · 0.85

Tested by

no test coverage detected