Commit Graph
16 Commits
Author SHA1 Message Date
Piotr Krygier 6781c1cff1 Remove VulkanState dependency
Passing VulkanState everywhere (including windowLoop) made no sense.
I know that "globals are evil", but this is the best solution for now.
2023-04-04 15:27:42 +02:00
Piotr Krygier e06288320d Enable multiple buffers
Enables creation of multiple mesh objects in a single buffer. This is
still WIP.
2023-04-04 14:56:31 +02:00
Piotr Krygier c4734e99c2 Add basic functionality to draw instances
Allows creation of instances of meshes and drawing all of them with
single draw call. Instances can have their own transformation data
(location, rotation and scale).
2023-03-31 16:31:47 +02:00
Piotr Krygier 6a09350902 Split vulkan_base into smaller units
Closes #30. This is a basic refactoring of the graphics module, so
everything won't be in single file.
2023-03-29 09:41:04 +02:00
Piotr Krygier 649e7f76fe Change build system to CMake
According to my own documentation, the project tree should look entirely
different. Also, it should use CMake instead of Make. This commit
introduces changes that will make my project tree to adhere to my
own documentation.
2023-03-16 12:04:35 +01:00
Piotr Krygier 0c45da5cc4 Cleanup code 2023-03-16 12:04:35 +01:00
Piotr Krygier d0ac0f0e97 Remove hardocded window system 2023-03-16 12:04:35 +01:00
Piotr Krygier a175045518 Change Buffer struct to hold AllocationInfo
Added allocationInfo field to struct Buffer. Also, modified createBuffer
to use this field. This might be useful, when accessing allocation
information later. Already used for uniform buffers.
2023-03-16 12:04:35 +01:00
Piotr Krygier cce4875329 Add uniform buffers 2023-03-08 14:36:30 +01:00
Piotr Krygier a94e7a95f5 Add index buffer 2022-12-17 21:57:11 +01:00
Piotr Krygier f8b32717f3 Add staging buffer 2022-12-17 21:25:00 +01:00
Piotr Krygier f4a6260a5e Fix some TODOs and FIXMEs 2022-12-14 15:44:57 +01:00
Piotr Krygier 34665e1c2e Change vertex buffer handling
Previously vertex data was only in shaders. I have removed it from there
and put hardcoded vertex data into cpp source code.
2022-12-14 14:16:30 +01:00
Piotr Krygier e7b9d4a32f Changed project back to C++ 2022-10-05 15:51:19 +02:00
Piotr Krygier ce0c399810 Move back to C++ 2022-07-05 16:03:31 -04:00
Piotr Krygier 4755371ffa Cleanup repo 2022-06-28 09:54:41 +02:00