Lines Matching defs:format

78 	static std::string		getGlslSamplerType					(const tcu::TextureFormat& format, VkImageViewType type);
79 static std::string getGlslTextureType (const tcu::TextureFormat& format, VkImageViewType type);
83 static std::string getGlslSampler (const tcu::TextureFormat& format,
226 const tcu::TextureFormat format = (isCompressedFormat(m_imageFormat)) ? tcu::getUncompressedFormat(mapVkCompressedFormat(m_imageFormat))
275 << "layout(set = 0, binding = 1) uniform highp " << getGlslTextureType(format, m_imageViewType) << " " << getGlslTextureDecl(m_imageCount) << ";\n";
280 << "layout(set = 0, binding = 0) uniform highp " << getGlslSamplerType(format, m_imageViewType) << " " << getGlslSamplerDecl(m_imageCount) << ";\n";
289 << " fragColors[i] = (texture(" << getGlslSampler(format, m_imageViewType, m_samplingType, m_imageCount) << ", vtxTexCoords." << texCoordSwizzle << std::scientific << ") * vec4" << lookupScale << ") + vec4" << lookupBias << "; \n";
292 << " fragColor = (texture(" << getGlslSampler(format, m_imageViewType, m_samplingType, m_imageCount) << ", vtxTexCoords." << texCoordSwizzle << std::scientific << ") * vec4" << lookupScale << ") + vec4" << lookupBias << "; \n";
304 std::string ImageTest::getGlslSamplerType (const tcu::TextureFormat& format, VkImageViewType type)
308 if (tcu::getTextureChannelClass(format.type) == tcu::TEXTURECHANNELCLASS_UNSIGNED_INTEGER)
310 else if (tcu::getTextureChannelClass(format.type) == tcu::TEXTURECHANNELCLASS_SIGNED_INTEGER)
351 std::string ImageTest::getGlslTextureType (const tcu::TextureFormat& format, VkImageViewType type)
355 if (tcu::getTextureChannelClass(format.type) == tcu::TEXTURECHANNELCLASS_UNSIGNED_INTEGER)
357 else if (tcu::getTextureChannelClass(format.type) == tcu::TEXTURECHANNELCLASS_SIGNED_INTEGER)
421 std::string ImageTest::getGlslSampler (const tcu::TextureFormat& format, VkImageViewType type, VkDescriptorType samplingType, int imageCount)
429 return getGlslSamplerType(format, type) + "(" + texImage + ", texSampler)";
436 std::string getFormatCaseName (const VkFormat format)
438 const std::string fullName = getFormatName(format);
820 de::MovePtr<tcu::TestCaseGroup> imageFormatTests(new tcu::TestCaseGroup(testCtx, "format"));
824 const VkFormat format = formats[formatNdx];
826 if (isCompressedFormat(format))
834 getFormatCaseName(format).c_str(),
835 (std::string("Samples a texture of format ") + getFormatName(format)).c_str()));
836 createImageCountTests(formatGroup.get(), testCtx, allocationKind, pipelineConstructionType, samplingType, imageViewType, format);