[BREAKING] This crashes on Linux, and looks like it's crashing wayland? Testing on Windows.
This commit is contained in:
parent
5435880d34
commit
c905ef9ca7
6 changed files with 267 additions and 2 deletions
28
vk_types.h
28
vk_types.h
|
|
@ -30,6 +30,14 @@
|
|||
} while (0)
|
||||
|
||||
|
||||
constexpr unsigned int FRAME_OVERLAP=2;
|
||||
|
||||
struct AllocatedBuffer {
|
||||
VkBuffer buffer;
|
||||
VmaAllocation allocation;
|
||||
VmaAllocationInfo info;
|
||||
};
|
||||
|
||||
struct AllocatedImage {
|
||||
VkImage image;
|
||||
VkImageView imageView;
|
||||
|
|
@ -53,4 +61,22 @@ struct ComputeEffect {
|
|||
ComputePushConstants data;
|
||||
};
|
||||
|
||||
constexpr unsigned int FRAME_OVERLAP=2;
|
||||
struct Vertex {
|
||||
glm::vec3 position;
|
||||
float uv_x;
|
||||
glm::vec3 normal;
|
||||
float uv_y;
|
||||
glm::vec4 color;
|
||||
};
|
||||
|
||||
struct GPUMeshBuffers {
|
||||
AllocatedBuffer indexBuffer;
|
||||
AllocatedBuffer vertexBuffer;
|
||||
VkDeviceAddress vertexBufferAddress;
|
||||
};
|
||||
|
||||
struct GPUDrawPushConstants {
|
||||
glm::mat4 worldMatrix;
|
||||
VkDeviceAddress vertexBuffer;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue