aboutsummaryrefslogtreecommitdiffstats
path: root/include/api-test/texture.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/api-test/texture.hpp')
-rw-r--r--include/api-test/texture.hpp29
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;
+};