save code

This commit is contained in:
xsl
2025-10-16 22:16:34 +08:00
parent fcdbb4b8fd
commit 25fd704a3f
2 changed files with 41 additions and 9 deletions
+13
View File
@@ -16,6 +16,18 @@
#include <vector>
#include <optional>
#include <set>
#include <assert.h>
#include <vulkan/vulkan_structs.hpp>
#define VK_CHECK(x) \
do \
{ \
VkResult err = x; \
if (err) \
{ \
assert(false); \
} \
} while (0)
struct QueueFamilyIndices {
std::optional<uint32_t> graphicsFamily;
@@ -26,6 +38,7 @@ struct QueueFamilyIndices {
}
};
class Application
{
private: