Lines Matching defs:format

130 	static std::string					getGlslSamplerType				(const tcu::TextureFormat& format, SamplerViewType type, bool sampleStencil);
279 VkSamplerCustomBorderColorCreateInfoEXT getSamplerCustomBorderColorCreateInfo (VkFormat format, rr::GenericVec4 customBorderColorValue, bool customBorderColorFormatless) const;
400 tcu::TextureFormat format = (isCompressedFormat(m_imageFormat)) ? tcu::getUncompressedFormat(mapVkCompressedFormat(m_imageFormat))
446 << "layout(set = 0, binding = 0) uniform highp " << getGlslSamplerType(format, m_imageViewType, m_sampleStencil) << " texSampler;\n"
537 std::string SamplerTest::getGlslSamplerType (const tcu::TextureFormat& format, SamplerViewType type, bool sampleStencil)
541 if (tcu::getTextureChannelClass(format.type) == tcu::TEXTURECHANNELCLASS_UNSIGNED_INTEGER || sampleStencil)
543 else if (tcu::getTextureChannelClass(format.type) == tcu::TEXTURECHANNELCLASS_SIGNED_INTEGER)
863 VkSamplerCustomBorderColorCreateInfoEXT SamplerAddressModesTest::getSamplerCustomBorderColorCreateInfo (VkFormat format, rr::GenericVec4 customBorderColorValue, bool customBorderColorFormatless) const
870 customBorderColorFormatless ? VK_FORMAT_UNDEFINED : format
879 std::string getFormatCaseName (const VkFormat format)
881 const std::string fullName = getFormatName(format);
1271 vk::VkFormat format;
1338 vk::VK_FORMAT_R32G32_SFLOAT, // VkFormat format;
1344 vk::VK_FORMAT_R32G32_SFLOAT, // VkFormat format;
1396 if (vk::isIntFormat(m_params.format))
1398 else if (vk::isUintFormat(m_params.format))
1437 if (m_params.format == VK_FORMAT_A8_UNORM_KHR)
1443 const auto props = vk::getPhysicalDeviceFormatProperties(vki, physicalDevice, m_params.format);
1455 TCU_THROW(NotSupportedError, "Selected format does not support the required features");
1478 const auto tcuFormat = vk::mapVkFormat(m_params.format);
1496 m_params.format, // VkFormat format;
1515 m_params.format, // VkFormat format;
1534 const auto texView = vk::makeImageView(vkd, device, texImage.get(), vk::VK_IMAGE_VIEW_TYPE_2D, m_params.format, colorSubresourceRange);
1535 const auto fbView = vk::makeImageView(vkd, device, fbImage.get(), vk::VK_IMAGE_VIEW_TYPE_2D, m_params.format, colorSubresourceRange);
1636 // it should be minimal and we should get the same color when converting back to the original format.
1678 m_params.format, // VkFormat format;
2023 vkFormat, // VkFormat format;
2062 vkFormat, // VkFormat format;
2370 de::MovePtr<tcu::TestCaseGroup> formatTests (new tcu::TestCaseGroup(testCtx, "format"));
2374 const VkFormat format = formats[formatNdx];
2375 const bool isCompressed = isCompressedFormat(format);
2377 && tcu::hasDepthComponent(mapVkFormat(format).order) && tcu::hasStencilComponent(mapVkFormat(format).order);
2389 getFormatCaseName(format).c_str(),
2390 (std::string("Samples a texture of format ") + getFormatName(format)).c_str()));
2396 de::MovePtr<tcu::TestCaseGroup> minFilterTests = createSamplerMinFilterTests(testCtx, pipelineConstructionType, viewType, format, separateStencilUsage);
2397 de::MovePtr<tcu::TestCaseGroup> minReduceFilterTests = createSamplerMinReduceFilterTests(testCtx, pipelineConstructionType, viewType, format, separateStencilUsage);
2402 de::MovePtr<tcu::TestCaseGroup> magFilterTests = createSamplerMagFilterTests(testCtx, pipelineConstructionType, viewType, format, separateStencilUsage);
2407 de::MovePtr<tcu::TestCaseGroup> magReduceFilterTests = createSamplerMagReduceFilterTests(testCtx, pipelineConstructionType, viewType, format, separateStencilUsage);
2408 de::MovePtr<tcu::TestCaseGroup> mipmapTests = createSamplerMipmapTests(testCtx, pipelineConstructionType, viewType, format, separateStencilUsage);
2416 de::MovePtr<tcu::TestCaseGroup> addressModesTests = createSamplerAddressModesTests(testCtx, pipelineConstructionType, viewType, format, separateStencilUsage);
2509 for (const auto format : formats)
2511 const std::string formatName = getFormatCaseName(format);
2527 const ExactSamplingCase::Params params = { pipelineConstructionType, format, unnorm.unnormalized, solid.first, edges.offset };