Lines Matching refs:dst
1078 void swizzleT (const tcu::ConstPixelBufferAccess& src, const tcu::PixelBufferAccess& dst, const vk::VkComponentMapping& swz)
1080 for (int z = 0; z < dst.getDepth(); ++z)
1081 for (int y = 0; y < dst.getHeight(); ++y)
1082 for (int x = 0; x < dst.getWidth(); ++x)
1083 dst.setPixel(swizzle(src.getPixelT<ScalarType>(x, y, z), swz), x, y, z);
1086 void swizzleFromSRGB (const tcu::ConstPixelBufferAccess& src, const tcu::PixelBufferAccess& dst, const vk::VkComponentMapping& swz)
1088 for (int z = 0; z < dst.getDepth(); ++z)
1089 for (int y = 0; y < dst.getHeight(); ++y)
1090 for (int x = 0; x < dst.getWidth(); ++x)
1091 dst.setPixel(swizzle(tcu::sRGBToLinear(src.getPixelT<float>(x, y, z)), swz), x, y, z);
1094 void swizzle (const tcu::ConstPixelBufferAccess& src, const tcu::PixelBufferAccess& dst, const vk::VkComponentMapping& swz)
1096 const tcu::TextureChannelClass chnClass = tcu::getTextureChannelClass(dst.getFormat().type);
1098 DE_ASSERT(src.getWidth() == dst.getWidth() &&
1099 src.getHeight() == dst.getHeight() &&
1100 src.getDepth() == dst.getDepth());
1103 swizzleT<deInt32>(src, dst, swz);
1105 swizzleT<deUint32>(src, dst, swz);
1106 else if (tcu::isSRGB(src.getFormat()) && !tcu::isSRGB(dst.getFormat()))
1107 swizzleFromSRGB(src, dst, swz);
1109 swizzleT<float>(src, dst, swz);