[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
14
vk_engine.h
14
vk_engine.h
|
|
@ -96,6 +96,10 @@ public:
|
|||
int currentBackgroundEffect{0};
|
||||
VkPipelineLayout _trianglePipelineLayout;
|
||||
VkPipeline _trianglePipeline;
|
||||
VkPipelineLayout _meshPipelineLayout;
|
||||
VkPipeline _meshPipeline;
|
||||
|
||||
GPUMeshBuffers rectangle;
|
||||
|
||||
// ZED's REFACTOR
|
||||
VkGUI _gui;
|
||||
|
|
@ -128,11 +132,19 @@ private:
|
|||
void init_pipelines();
|
||||
void init_background_pipelines();
|
||||
void init_shaders();
|
||||
void load_shader(const char *file_name, const char *entry_point, ComputeEffect data);
|
||||
void init_triangle_pipelines();
|
||||
void init_mesh_pipeline();
|
||||
void init_default_data();
|
||||
|
||||
void load_shader(const char *file_name, const char *entry_point, ComputeEffect data);
|
||||
|
||||
void create_swapchain(uint32_t width, uint32_t height);
|
||||
AllocatedBuffer create_buffer(size_t allocSize, VkBufferUsageFlags usage, VmaMemoryUsage memoryUsage);
|
||||
|
||||
void destroy_swapchain();
|
||||
void destroy_buffer(const AllocatedBuffer& buffer);
|
||||
void draw_background(VkCommandBuffer cmd);
|
||||
void draw_geometry(VkCommandBuffer cmd);
|
||||
|
||||
GPUMeshBuffers uploadMesh(std::span<uint32_t> indices, std::span<Vertex> vertices);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue