Add vertex, index and uniform buffers

This commit is contained in:
Thraix
2023-01-11 19:18:16 +01:00
parent 0396318d2d
commit fa207c591c
13 changed files with 1208 additions and 687 deletions
+2 -1
View File
@@ -1,10 +1,11 @@
#pragma once
#include "VulkanException.h"
#include <vulkan/vulkan.hpp>
#include <iostream>
#define ASSERT(Function, message) if(!(Function)) { throw std::runtime_error(message); } while(false)
#define VK_ASSERT(Function, message) if(Function != VK_SUCCESS) { throw std::runtime_error(message); } while(false)
#define VK_ASSERT(Function, message) if(Function != VK_SUCCESS) { throw VulkanException(message); } while(false)
VkResult vkCreateDebugUtilsMessengerEXT(VkInstance instance,
const VkDebugUtilsMessengerCreateInfoEXT* pCreateInfo,