Lines Matching refs:format

89 bool isFloatingPointDepthFormat (const tcu::TextureFormat& format)
92 return (format.order == tcu::TextureFormat::D && format.type == tcu::TextureFormat::FLOAT) ||
93 (format.order == tcu::TextureFormat::DS && format.type == tcu::TextureFormat::FLOAT_UNSIGNED_INT_24_8_REV);
188 // sample raw values (they are guaranteed to be in [0, 1] range as the format cannot represent any other values)
212 bool isDepthFormat(VkFormat format)
214 if (isCompressedFormat(format))
217 if (isYCbCrFormat(format))
220 const tcu::TextureFormat tcuFormat = mapVkFormat(format);
228 const VkFormatProperties3 formatProperties = context.getFormatProperties(testParameters.format);
233 if (!isDepthFormat(testParameters.format))
234 TCU_THROW(NotSupportedError, "Format cannot be used as depth format");
293 m_textures.push_back(TestTexture2DSp(new pipeline::TestTexture2D(vk::mapVkFormat(m_testParameters.format), m_testParameters.width, m_testParameters.height)));
451 const VkFormatProperties3 formatProperties = context.getFormatProperties(testParameters.format);
458 if (!isDepthFormat(testParameters.format))
459 TCU_THROW(NotSupportedError, "Format cannot be used as depth format");
514 const tcu::TextureFormatInfo fmtInfo = tcu::getTextureFormatInfo(vk::mapVkFormat(m_testParameters.format));
523 m_textures.push_back(TestTextureCubeSp(new pipeline::TestTextureCube(vk::mapVkFormat(m_testParameters.format), m_testParameters.size)));
690 const VkFormatProperties3 formatProperties = context.getFormatProperties(testParameters.format);
695 if (!isDepthFormat(testParameters.format))
696 TCU_THROW(NotSupportedError, "Format cannot be used as depth format");
751 const tcu::TextureFormatInfo fmtInfo = tcu::getTextureFormatInfo(vk::mapVkFormat(m_testParameters.format));
759 m_textures.push_back(TestTexture2DArraySp(new pipeline::TestTexture2DArray(vk::mapVkFormat(m_testParameters.format), m_testParameters.width, m_testParameters.height, m_testParameters.numLayers)));
919 const VkFormatProperties3 formatProperties = context.getFormatProperties(testParameters.format);
924 if (!isDepthFormat(testParameters.format))
925 TCU_THROW(NotSupportedError, "Format cannot be used as depth format");
986 m_textures.push_back(TestTexture1DSp(new pipeline::TestTexture1D(vk::mapVkFormat(m_testParameters.format), m_testParameters.width)));
1141 const VkFormatProperties3 formatProperties = context.getFormatProperties(testParameters.format);
1146 if (!isDepthFormat(testParameters.format))
1147 TCU_THROW(NotSupportedError, "Format cannot be used as depth format");
1202 const tcu::TextureFormatInfo fmtInfo = tcu::getTextureFormatInfo(vk::mapVkFormat(m_testParameters.format));
1210 m_textures.push_back(TestTexture1DArraySp(new pipeline::TestTexture1DArray(vk::mapVkFormat(m_testParameters.format), m_testParameters.width, m_testParameters.numLayers)));
1367 const VkFormatProperties3 formatProperties = context.getFormatProperties(testParameters.format);
1374 if (!isDepthFormat(testParameters.format))
1375 TCU_THROW(NotSupportedError, "Format cannot be used as depth format");
1429 const tcu::TextureFormatInfo fmtInfo = tcu::getTextureFormatInfo(vk::mapVkFormat(m_testParameters.format));
1438 m_textures.push_back(TestTextureCubeArraySp(new pipeline::TestTextureCubeArray(vk::mapVkFormat(m_testParameters.format), m_testParameters.size, m_testParameters.numLayers)));
1615 const VkFormat format;
1692 testParameters.format = formats[formatNdx].format;
1734 testParameters.format = formats[formatNdx].format;
1776 testParameters.format = formats[formatNdx].format;
1818 testParameters.format = formats[formatNdx].format;
1856 testParameters.format = formats[formatNdx].format;
1898 testParameters.format = formats[formatNdx].format;