MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / AddBinding

Method AddBinding

tests/framework/ray_tracing_objects.cpp:2078–2086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2076}
2077
2078void 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
2088void Pipeline::AddDescriptorIndexingBinding(VkDescriptorType descriptor_type, uint32_t binding,
2089 VkDescriptorBindingFlags flags /*= 0*/, uint32_t descriptor_count /*= 1*/) {

Callers 13

TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
GetTraceRaysPipelineMethod · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 1

emplace_backMethod · 0.80

Tested by

no test coverage detected