diff options
Diffstat (limited to 'runtime/src/vulkan_predicate.h')
| -rw-r--r-- | runtime/src/vulkan_predicate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/src/vulkan_predicate.h b/runtime/src/vulkan_predicate.h index cedb8af81..87d58b546 100644 --- a/runtime/src/vulkan_predicate.h +++ b/runtime/src/vulkan_predicate.h | |||
| @@ -8,6 +8,7 @@ | |||
| 8 | #include <memory> | 8 | #include <memory> |
| 9 | #include <initializer_list> | 9 | #include <initializer_list> |
| 10 | #include "predicate_reduce_spv.h" | 10 | #include "predicate_reduce_spv.h" |
| 11 | #include "vulkan_aftermath.h" | ||
| 11 | 12 | ||
| 12 | namespace leonida { | 13 | namespace leonida { |
| 13 | struct PredicateCapture { | 14 | struct PredicateCapture { |
| @@ -156,6 +157,7 @@ private: | |||
| 156 | ok = ok && fn<PFN_vkCreatePipelineLayout>("vkCreatePipelineLayout")(device_, &layout_info, nullptr, &layout) == VK_SUCCESS; | 157 | ok = ok && fn<PFN_vkCreatePipelineLayout>("vkCreatePipelineLayout")(device_, &layout_info, nullptr, &layout) == VK_SUCCESS; |
| 157 | VkShaderModuleCreateInfo module{VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO}; | 158 | VkShaderModuleCreateInfo module{VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO}; |
| 158 | module.codeSize = sizeof(predicate_reduce_spirv); module.pCode = predicate_reduce_spirv; | 159 | module.codeSize = sizeof(predicate_reduce_spirv); module.pCode = predicate_reduce_spirv; |
| 160 | const aftermath::ShaderName aftermath_name("(runtime) predicate_reduce"); | ||
| 159 | ok = ok && fn<PFN_vkCreateShaderModule>("vkCreateShaderModule")(device_, &module, nullptr, &shader) == VK_SUCCESS; | 161 | ok = ok && fn<PFN_vkCreateShaderModule>("vkCreateShaderModule")(device_, &module, nullptr, &shader) == VK_SUCCESS; |
| 160 | VkComputePipelineCreateInfo info{VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO}; | 162 | VkComputePipelineCreateInfo info{VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO}; |
| 161 | info.stage = {VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO}; | 163 | info.stage = {VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO}; |