Lines Matching refs:format
244 std::string getShaderImageType (const tcu::TextureFormat& format, const ImageType imageType)
246 std::string formatPart = tcu::getTextureChannelClass(format.type) == tcu::TEXTURECHANNELCLASS_UNSIGNED_INTEGER ? "u" :
247 tcu::getTextureChannelClass(format.type) == tcu::TEXTURECHANNELCLASS_SIGNED_INTEGER ? "i" : "";
269 std::string getShaderImageDataType (const tcu::TextureFormat& format)
271 switch (tcu::getTextureChannelClass(format.type))
285 std::string getShaderImageFormatQualifier (const tcu::TextureFormat& format)
290 switch (format.order)
302 switch (format.type)
363 deUint32 getImageMipLevelSizeInBytes (const VkExtent3D& baseExtents, const deUint32 layersCount, const tcu::TextureFormat& format, const deUint32 mipmapLevel, const deUint32 numSamples)
367 return extents.width * extents.height * extents.depth * layersCount * numSamples * tcu::getPixelSize(format);
370 deUint32 getImageSizeInBytes (const VkExtent3D& baseExtents, const deUint32 layersCount, const tcu::TextureFormat& format, const deUint32 mipmapLevelsCount, const deUint32 numSamples)
375 imageSizeInBytes += getImageMipLevelSizeInBytes(baseExtents, layersCount, format, mipmapLevel, numSamples);