diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-08-04 21:57:27 +0200 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-08-04 21:57:27 +0200 |
| commit | 80db03f7e6140e1b607dfaa09eeff91c36bc272c (patch) | |
| tree | 33902f9559afa6bf16c18cb9e2f401b4e845dbe1 /include | |
| parent | 753165e67e2003791cf2ca1b0294c9f470238118 (diff) | |
Use buffer device address with push constants
Diffstat (limited to 'include')
| -rw-r--r-- | include/scene.hpp | 5 | ||||
| -rw-r--r-- | include/vk-api.hpp | 1 | ||||
| -rw-r--r-- | include/vulkan-loader.hpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/include/scene.hpp b/include/scene.hpp index 0002b1d..3346282 100644 --- a/include/scene.hpp +++ b/include/scene.hpp @@ -10,13 +10,10 @@ class scene {
struct metadata {
- color sky_color = { 0.5, 0.7, 1.0 };
- color ground_color = { 1.0, 1.0, 1.0 };
-
camera cam;
// uint32_t max_bounce = 50;
- uint32_t max_bounce = 1;
+ uint32_t max_bounce = 4;
// Output image resolution
uint32_t width;
diff --git a/include/vk-api.hpp b/include/vk-api.hpp index 2f7302e..28173f9 100644 --- a/include/vk-api.hpp +++ b/include/vk-api.hpp @@ -10,6 +10,7 @@ struct Buffer { VmaAllocationInfo alloc_info; VkBuffer handle; size_t size; + VkDeviceAddress device_address; }; struct Pipeline { diff --git a/include/vulkan-loader.hpp b/include/vulkan-loader.hpp index b4bef68..6bdf54f 100644 --- a/include/vulkan-loader.hpp +++ b/include/vulkan-loader.hpp @@ -80,6 +80,7 @@ X(vkDestroyCommandPool) \ X(vkBeginCommandBuffer) \ X(vkCmdPipelineBarrier) \ + X(vkCmdPushConstants) \ X(vkCmdClearColorImage) \ X(vkCmdBeginRenderPass) \ X(vkCmdBindPipeline) \ @@ -113,6 +114,7 @@ X(vkCreateDescriptorPool) \ X(vkAllocateDescriptorSets) \ X(vkUpdateDescriptorSets) \ + X(vkGetBufferDeviceAddress) \ X(vkGetBufferMemoryRequirements) \ X(vkGetImageMemoryRequirements) \ X(vkAllocateMemory) \ |
