| 2076 | } |
| 2077 | |
| 2078 | void Pipeline::AddBinding(VkDescriptorType descriptor_type, uint32_t binding, uint32_t descriptor_count /*= 1*/) { |
| 2079 | VkDescriptorSetLayoutBinding binding_layout = {}; |
| 2080 | binding_layout.binding = binding; |
| 2081 | binding_layout.descriptorType = descriptor_type; |
| 2082 | binding_layout.descriptorCount = descriptor_count; |
| 2083 | binding_layout.stageFlags = VK_SHADER_STAGE_RAYGEN_BIT_KHR | VK_SHADER_STAGE_CLOSEST_HIT_BIT_KHR | |
| 2084 | VK_SHADER_STAGE_MISS_BIT_KHR | VK_SHADER_STAGE_INTERSECTION_BIT_KHR; |
| 2085 | bindings_.emplace_back(binding_layout); |
| 2086 | } |
| 2087 | |
| 2088 | void Pipeline::AddDescriptorIndexingBinding(VkDescriptorType descriptor_type, uint32_t binding, |
| 2089 | VkDescriptorBindingFlags flags /*= 0*/, uint32_t descriptor_count /*= 1*/) { |
no test coverage detected