static inline void writeUnorm8 (const tcu::PixelBufferAccess& dst, int x, int y, deUint32 val) { deUint8* ptr = (deUint8*)dst.getDataPtr() + dst.getRowPitch()*y + x*NumChannels; for (int c = 0; c < NumChannels; c++) ptr[c] = getChannel(val, c); }
tcu::PixelBufferAccess getMultisampleAccess(const tcu::PixelBufferAccess& original) { return tcu::PixelBufferAccess(original.getFormat(), 1, original.getWidth(), original.getHeight(), original.getFormat().getPixelSize(), original.getRowPitch(), original.getDataPtr()); }
inline void writeUnorm8<4> (const tcu::PixelBufferAccess& dst, int x, int y, deUint32 val) { *(deUint32*)((deUint8*)dst.getDataPtr() + dst.getRowPitch()*y + x*4) = val; }