MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/Cauldron / CopyPixels

Method CopyPixels

src/common/Misc/WICLoader.cpp:136–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void WICLoader::CopyPixels(void *pDest, uint32_t stride, uint32_t bytesWidth, uint32_t height)
137{
138 for (uint32_t y = 0; y < height; y++)
139 {
140 memcpy((char*)pDest + y*stride, m_pData + y*bytesWidth, bytesWidth);
141 }
142
143 MipImage(bytesWidth / 4, height);
144}
145
146float WICLoader::GetAlphaCoverage(uint32_t width, uint32_t height, float scale, int cutoff) const
147{

Callers 1

LoadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected