save code
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user