Lines Matching defs:format
115 const tcu::TextureFormat format (mapVkFormat(vkFormat));
116 const bool hasDepth (tcu::hasDepthComponent(format.order));
117 const bool hasStencil (tcu::hasStencilComponent(format.order));
162 VkFormat format,
191 format,
212 VkFormat format,
223 format,
243 const tcu::TextureFormat format (mapVkFormat(vkFormat));
257 if ((tcu::hasDepthComponent(format.order) || tcu::hasStencilComponent(format.order))
261 if (!(tcu::hasDepthComponent(format.order) || tcu::hasStencilComponent(format.order))
285 vkFormat, // VkFormat format
314 TCU_THROW(NotSupportedError, "Image format not supported");
324 TCU_THROW(NotSupportedError, "Image format not supported");
333 VkFormat format,
345 return createImageView(vkd, device, 0u, image, VK_IMAGE_VIEW_TYPE_2D, format, makeComponentMappingRGBA(), range);
351 VkFormat format,
368 return createImageView(vkd, device, 0u, image, VK_IMAGE_VIEW_TYPE_2D, format, makeComponentMappingRGBA(), range);
374 VkFormat format,
389 return createImageView(vkd, device, 0u, image, VK_IMAGE_VIEW_TYPE_2D, format, makeComponentMappingRGBA(), range);
397 const tcu::TextureFormat format (mapVkFormat(vkFormat));
399 return format.getPixelSize();
404 VkFormat format,
409 const VkDeviceSize pixelSize (getPixelSize(format));
448 VkFormat format,
456 images[imageNdx] = safeSharedPtr(new vk::Unique<VkImage>(createImage(vki, physicalDevice, vkd, device, format, sampleCountBitFromomSampleCount(sampleCount), VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT, width, height)));
465 VkFormat format,
473 images[imageNdx] = safeSharedPtr(new vk::Unique<VkImage>(createImage(vki, physicalDevice, vkd, device, format, VK_SAMPLE_COUNT_1_BIT, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_TRANSFER_SRC_BIT, width, height)));
494 VkFormat format,
500 views[imageNdx] = safeSharedPtr(new vk::Unique<VkImageView>(createImageAttachmentView(vkd, device, **images[imageNdx], format, aspect)));
507 VkFormat format,
515 buffers[bufferNdx] = safeSharedPtr(new vk::Unique<VkBuffer>(createBuffer(vkd, device, format, width, height)));
544 const tcu::TextureFormat format (mapVkFormat(srcFormat));
545 const bool isDepthStencilFormat (tcu::hasDepthComponent(format.order) || tcu::hasStencilComponent(format.order));
581 srcFormat, // VkFormat format; || VkFormat format;
605 dstFormat, // VkFormat format; || VkFormat format;
633 dstFormat, // VkFormat format; || VkFormat format;
851 const tcu::TextureFormat format (mapVkFormat(srcFormat));
852 const bool isDepthStencilFormat (tcu::hasDepthComponent(format.order) || tcu::hasStencilComponent(format.order));
967 const tcu::TextureFormat format (mapVkFormat(vkFormat));
968 const bool hasDepth (tcu::hasDepthComponent(format.order));
969 const bool hasStencil (tcu::hasStencilComponent(format.order));
1230 : format (format_)
1237 VkFormat format;
1245 const tcu::TextureFormat format (mapVkFormat(vkFormat));
1246 const bool hasDepth (tcu::hasDepthComponent(format.order));
1247 const bool hasStencil (tcu::hasStencilComponent(format.order));
1257 const tcu::TextureFormat format (mapVkFormat(vkFormat));
1258 const bool hasDepth (tcu::hasDepthComponent(format.order));
1259 const bool hasStencil (tcu::hasStencilComponent(format.order));
1269 bool isExtensionSupported(Context& context, RenderingType renderingType, TestSeparateUsage separateStencilUsage, VkFormat format)
1281 if (format == VK_FORMAT_A8_UNORM_KHR)
1284 DE_UNREF(format);
1350 , m_extensionSupported (isExtensionSupported(context, config.renderingType, config.separateStencilUsage, config.format))
1353 , m_srcFormat (config.format)
1354 , m_dstFormat (getDstFormat(config.format, config.separateStencilUsage))
1492 const tcu::TextureFormat format (mapVkFormat(m_dstFormat));
1504 const tcu::ConstPixelBufferAccess access (format, m_width, m_height, 1, ptr);
1505 tcu::TextureLevel reference (format, m_width, m_height);
1557 const tcu::TextureChannelClass channelClass (tcu::getTextureChannelClass(format.type));
1563 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>());
1566 const int componentCount (tcu::getNumUsedChannels(format.order));
1608 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>());
1611 const int componentCount (tcu::getNumUsedChannels(format.order));
1655 const tcu::TextureFormatInfo info (tcu::getTextureFormatInfo(format));
1656 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>());
1662 const int componentCount (isAlphaOnly ? 4 : tcu::getNumUsedChannels(format.order));
1693 if (tcu::isSRGB(format))
1701 // Convert target format ulps to float ulps and allow 64ulp differences
1702 const UVec4 threshold (64u * (UVec4(1u) << (UVec4(23) - tcu::getTextureFormatMantissaBitDepth(format).cast<deUint32>())));
1710 const Vec4 threshold (4.0f * 1.0f / ((UVec4(1u) << tcu::getTextureFormatMantissaBitDepth(format).cast<deUint32>()) - 1u).cast<float>());
1733 const tcu::TextureFormat format (mapVkFormat(config.format));
1734 const tcu::TextureChannelClass channelClass (tcu::getTextureChannelClass(format.type));
1735 const bool testDepth (config.separateStencilUsage ? (config.separateStencilUsage == TEST_DEPTH) : tcu::hasDepthComponent(format.order));
1736 const bool testStencil (config.separateStencilUsage ? (config.separateStencilUsage == TEST_STENCIL) : tcu::hasStencilComponent(format.order));
1809 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>());
1832 const int componentCount = tcu::getNumUsedChannels(format.order);
1868 const UVec4 bits (tcu::getTextureFormatBitDepth(format).cast<deUint32>());
1894 const int componentCount = tcu::getNumUsedChannels(format.order);
1935 const tcu::TextureFormatInfo info (tcu::getTextureFormatInfo(format));
1936 const UVec4 bits (tcu::getTextureFormatMantissaBitDepth(format).cast<deUint32>());
1961 const bool isAlphaOnly = isAlphaOnlyFormat(config.format);
1962 const int componentCount = (isAlphaOnly ? 4 : tcu::getNumUsedChannels(format.order));
2001 if (tcu::hasDepthComponent(format.order) || tcu::hasStencilComponent(format.order))
2110 std::string formatToName (VkFormat format)
2112 const std::string formatStr = de::toString(format);
2194 const VkFormat format (formats[formatNdx]);
2195 const std::string formatName (formatToName(format));
2202 const TestConfig testConfig (format, sampleCount, renderingType);
2208 if (tcu::hasDepthComponent(mapVkFormat(format).order) && tcu::hasStencilComponent(mapVkFormat(format).order))
2212 const TestConfig separateUsageDepthTestConfig (format, sampleCount, renderingType, TEST_DEPTH);
2215 const TestConfig separateUsageStencilTestConfig (format, sampleCount, renderingType, TEST_STENCIL);