Lines Matching refs:format

63 						  const tcu::TextureFormat&		format)
69 allocateAndBindSparseImage(vkd, device, physicalDevice, vki, createInfo, m_semaphore.get(), sparseQueue, allocator, m_allocations, format, m_image.get());
261 vertexFormatPosition, // VkFormat format;
361 inputFormat, // VkFormat format;
373 colorFormat, // VkFormat format;
439 tcu::UVec3 getCompressedImageResolutionInBlocks (const vk::VkFormat format, const tcu::UVec3& size)
441 deUint32 blockWidth = getBlockWidth(format);
442 deUint32 blockHeight = getBlockHeight(format);
453 tcu::UVec3 getCompressedImageResolutionBlockCeil (const vk::VkFormat format, const tcu::UVec3& size)
455 deUint32 blockWidth = getBlockWidth(format);
456 deUint32 blockHeight = getBlockHeight(format);
467 VkDeviceSize getCompressedImageSizeInBytes (const vk::VkFormat format, const tcu::UVec3& size)
469 tcu::UVec3 sizeInBlocks = getCompressedImageResolutionInBlocks(format, size);
470 deUint32 blockBytes = getBlockSizeInBytes(format);
476 VkDeviceSize getUncompressedImageSizeInBytes (const vk::VkFormat format, const tcu::UVec3& size)
479 const VkDeviceSize sizeBytes = getImageSizeBytes(sizeAsIVec3, format);
545 std::string getFormatPrefix (const tcu::TextureFormat& format)
547 const std::string image64 = ((mapTextureFormat(format) == VK_FORMAT_R64_UINT || mapTextureFormat(format) == VK_FORMAT_R64_SINT) ? "64" : "");
548 return tcu::getTextureChannelClass(format.type) == tcu::TEXTURECHANNELCLASS_UNSIGNED_INTEGER ? "u" + image64 :
549 tcu::getTextureChannelClass(format.type) == tcu::TEXTURECHANNELCLASS_SIGNED_INTEGER ? "i" + image64 : "";
552 std::string getShaderImageType (const tcu::TextureFormat& format, const ImageType imageType, const bool multisample)
554 std::string formatPart = getFormatPrefix(format);
589 std::string getShaderImageFormatQualifier (const tcu::TextureFormat& format)
591 if (!isPackedType(mapTextureFormat(format)))
596 switch (format.order)
609 switch (format.type)
643 switch (mapTextureFormat(format))
656 std::string getGlslSamplerType (const tcu::TextureFormat& format, VkImageViewType type)
659 const char* formatPart = tcu::getTextureChannelClass(format.type) == tcu::TEXTURECHANNELCLASS_UNSIGNED_INTEGER ? "u" :
660 tcu::getTextureChannelClass(format.type) == tcu::TEXTURECHANNELCLASS_SIGNED_INTEGER ? "i" : "";
681 const char* getGlslInputFormatType (const vk::VkFormat format)
683 switch (format)
708 default: TCU_THROW(InternalError, "Unknown format");
712 const char* getGlslFormatType (const vk::VkFormat format)
714 switch (format)
739 default: TCU_THROW(InternalError, "Unknown format");
743 const char* getGlslAttachmentType (const vk::VkFormat format)
745 const tcu::TextureFormat textureFormat = mapVkFormat(format);
767 const char* getGlslInputAttachmentType (const vk::VkFormat format)
769 const tcu::TextureFormat textureFormat = mapVkFormat(format);
791 bool isPackedType (const vk::VkFormat format)
793 const tcu::TextureFormat textureFormat = mapVkFormat(format);
828 bool isComponentSwizzled (const vk::VkFormat format)
830 const tcu::TextureFormat textureFormat = mapVkFormat(format);
849 int getNumUsedChannels (const vk::VkFormat format)
854 const tcu::TextureFormat textureFormat = mapVkFormat(format);
859 bool isFormatImageLoadStoreCapable (const vk::VkFormat format)
862 switch (format)
910 std::string getFormatShortString (const VkFormat format)
912 const std::string fullName = getFormatName(format);