diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2022-10-27 23:22:55 +0200 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2022-10-27 23:22:55 +0200 |
| commit | b47e177898657e435cb5bc913a4a783fddbe1f3d (patch) | |
| tree | df0a042b5ed9e98d7653462466dd3c6147127bc3 /include/api-test/texture.hpp | |
| parent | cee4f9c528a91691d94c52ec1849f3ad1245b081 (diff) | |
Api prototype
Diffstat (limited to 'include/api-test/texture.hpp')
| -rw-r--r-- | include/api-test/texture.hpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/api-test/texture.hpp b/include/api-test/texture.hpp new file mode 100644 index 0000000..9632c5e --- /dev/null +++ b/include/api-test/texture.hpp @@ -0,0 +1,29 @@ +#pragma once + +#include <cstdint> + +#include <vulkan/vulkan_core.h> + +#include "handle.hpp" + +struct texture_desc { + uint32_t width = 1U; + uint32_t height = 1U; + uint32_t depth = 1U; + uint32_t mips = 1U; + VkImageUsageFlags usages; + VkFormat format; + VkImageType type; + + static constexpr auto max_mips = 16U; +}; + +struct device_texture; + +class texture { +public: + texture(handle<device_texture> handle); + +private: + handle<device_texture> handle; +}; |
