SpiderPig Posted July 18, 2023 Share Posted July 18, 2023 I printed to the console the texture format of my pixmap and it said it was 133 but I couldn't find it in the struct - I may be blind... is it a combo of compression and RGBA or something? enum TextureFormat { TEXTURE_FORMAT_UNDEFINED = 0,//VK_FORMAT_UNDEFINED, TEXTURE_RGBA_UINT = 41,//VK_FORMAT_R8G8B8A8_UINT, TEXTURE_RED = 9,//VK_FORMAT_R8_UNORM, TEXTURE_RED_UINT = 13,//VK_FORMAT_R8_UINT, TEXTURE_RG = 16,//VK_FORMAT_R8G8_UNORM, TEXTURE_RGB = 23,//VK_FORMAT_R8G8B8_UNORM, TEXTURE_RGBA = 37,// VK_FORMAT_R8G8B8A8_UNORM, TEXTURE_BGR = 30,//VK_FORMAT_B8G8R8_UNORM, TEXTURE_BGRA = 44,//VK_FORMAT_B8G8R8A8_UNORM, TEXTURE_RGB8 = 23,//TEXTURE_RGB, TEXTURE_RGBA8 = 37,//TEXTURE_RGBA, TEXTURE_BGR8 = 30,//TEXTURE_BGR, TEXTURE_BGRA8 = 44,//TEXTURE_BGRA, TEXTURE_RED16 = 76, //VK_FORMAT_R16_SFLOAT, TEXTURE_R16 = TEXTURE_RED16,//VK_FORMAT_R16_UNORM??????, TEXTURE_RGBA16 = 97,// VK_FORMAT_R16G16B16A16_SFLOAT, TEXTURE_RGBA32 = 109,//VK_FORMAT_R32G32B32A32_SFLOAT, TEXTURE_BC1 = 131,//VK_FORMAT_BC1_RGB_UNORM_BLOCK, TEXTURE_DXT1 = TEXTURE_BC1, TEXTURE_BC3 = 137,//VK_FORMAT_BC3_UNORM_BLOCK, TEXTURE_DXT5 = TEXTURE_BC3, TEXTURE_BC5 = 141,//VK_FORMAT_BC5_UNORM_BLOCK, TEXTURE_BC6H = 143,//VK_FORMAT_BC6H_UFLOAT_BLOCK TEXTURE_BC7 = 145,//VK_FORMAT_BC7_UNORM_BLOCK, TEXTURE_BC4 = 139,//VK_FORMAT_BC4_UNORM_BLOCK TEXTURE_COLOR = -1001, TEXTURE_DEPTH = -1002, TEXTURE_HDR = -1003 }; Quote Link to comment Share on other sites More sharing options...
Solution Josh Posted July 19, 2023 Solution Share Posted July 19, 2023 It’s bc1/dxt1: https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VkFormat.html 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
SpiderPig Posted July 19, 2023 Author Share Posted July 19, 2023 Wow there's so many. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.