[BREAKING] This crashes on Linux, and looks like it's crashing wayland? Testing on Windows.

This commit is contained in:
Zed A. Shaw 2025-12-14 13:28:49 -05:00
parent 5435880d34
commit c905ef9ca7
6 changed files with 267 additions and 2 deletions

View file

@ -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;
};