From eef7f58575fdf96f2b738dcd875b5403f9b29d70 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Sat, 27 Jul 2024 20:52:58 +0800 Subject: [PATCH] updated texture_format_list.cpp --- CMSceneGraph | 2 +- example/Texture/texture_format_list.cpp | 34 +++---------------------- 2 files changed, 5 insertions(+), 31 deletions(-) diff --git a/CMSceneGraph b/CMSceneGraph index fb5a5cb0..f11e4936 160000 --- a/CMSceneGraph +++ b/CMSceneGraph @@ -1 +1 @@ -Subproject commit fb5a5cb066547646367942dc4ec0f9b65a6a7da6 +Subproject commit f11e49363bed867c5fb5584277718983e6b6b697 diff --git a/example/Texture/texture_format_list.cpp b/example/Texture/texture_format_list.cpp index 2af79e95..de2e2c9b 100644 --- a/example/Texture/texture_format_list.cpp +++ b/example/Texture/texture_format_list.cpp @@ -9,32 +9,6 @@ using namespace hgl::graph; VK_NAMESPACE_USING; -constexpr char *texture_compress_name[]= -{ - "NONE", - "S3TC", - "PVRTC", - "ETC1", - "ETC2", - "EAC", - "ATC", - "ASTC", - "YUV" -}; - -constexpr char *data_type_name[] -{ - "NONE", - "UNORM", - "SNORM", - "USCALED", - "SSCALED", - "UINT", - "SINT", - "UFLOAT", - "SFLOAT", - "SRGB" -};// VulkanInstance *InitVulkanInstance() { @@ -92,14 +66,14 @@ int main(int,char **) std::cout<<"Format [ID:"<format<<"]["<name<<"]"; if(vf->depth!=VulkanBaseType::NONE) - std::cout<<"[ Depth:"<depth)]<<"]"; + std::cout<<"[ Depth:"<depth)]<<"]"; if(vf->stencil!=VulkanBaseType::NONE) - std::cout<<"[Stencil:"<stencil)]<<"]"; + std::cout<<"[Stencil:"<stencil)]<<"]"; if((vf->depth==VulkanBaseType::NONE) &&(vf->stencil==VulkanBaseType::NONE)) - std::cout<<"[ Color:"<color)]<<"]"; + std::cout<<"[ Color:"<color)]<<"]"; { const VkFormatProperties fp=physical_device->GetFormatProperties(vf->format); @@ -114,7 +88,7 @@ int main(int,char **) } if(vf->compress_type!=TextureCompressType::NONE) - std::cout<<" use "<compress_type)]<<" compress."; + std::cout<<" use "<compress_type)]<<" compress."; else std::cout<bytes<<" bytes/pixel.";