Querry TEXTURE_FORMAT properties #226
-
Hello, is there a ways to find properties for given texture format ( meaning, how it can be used - as depth attachment, or color attachment.. etc., in vulkan vkGetPhysicalDeviceFormatProperties() ) - Preferably, to test that format is supported for given BIND_FLAGS. On my gpu(RX580), TEX_FORMAT_D24_UNORM_S8_UINT is reported by Diligent to be supported ( in TextureDesc struct), but if its used as depth format for renderpass, Vulkan's validation layer will report error - format (VK_FORMAT_D24_UNORM_S8_UINT) does not contain VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT Thanks for answer |
Beta Was this translation helpful? Give feedback.
Answered by
TheMostDiligent
Jan 10, 2023
Replies: 1 comment
Answer selected by
Melchiah
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use GetTextureFormatInfoExt