Extract trait functions on vk::Format into the additional header vulkan_format_traits.hpp.

This commit is contained in:
asuessenbach
2022-02-21 10:11:25 +01:00
parent 5de7d1d341
commit 1c39502170
7 changed files with 7472 additions and 7326 deletions

View File

@@ -504,7 +504,7 @@ vulkan.hpp provides a couple of type traits, easing template programming:
### vk::Format trait functions
vulkan.hpp provides a couple of trait functions on `vk::Format`. With C++14 and above, all those functions are marked as `constexpr`, that is with appropriate arguments, they are resolved by the compiler.
With the additional header `vulkan_format_traits.hpp`, a couple of trait functions on `vk::Format` are provided. With C++14 and above, all those functions are marked as `constexpr`, that is with appropriate arguments, they are resolved by the compiler.
- `uin8_t blockSize( vk::Format format );`
Gets the texel block size of this format in bytes.
- `uint8_t texelsPerBlock( vk::Format format );`