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

Function UpdateDescriptor

tests/framework/thread_helper.cpp:48–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void UpdateDescriptor(ThreadTestData* data) {
49 VkDescriptorBufferInfo buffer_info = {};
50 buffer_info.buffer = data->buffer;
51 buffer_info.offset = 0;
52 buffer_info.range = 1;
53
54 VkWriteDescriptorSet descriptor_write = vku::InitStructHelper();
55 descriptor_write.dstSet = data->descriptorSet;
56 descriptor_write.dstBinding = data->binding;
57 descriptor_write.descriptorCount = 1;
58 descriptor_write.descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_BUFFER;
59 descriptor_write.pBufferInfo = &buffer_info;
60
61 for (int i = 0; i < 80000; i++) {
62 vk::UpdateDescriptorSets(data->device, 1, &descriptor_write, 0, NULL);
63 if (*data->bailout) {
64 break;
65 }
66 }
67}
68
69#endif // GTEST_IS_THREADSAFE
70

Callers 3

TEST_FFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85

Calls 1

UpdateDescriptorSetsFunction · 0.85

Tested by

no test coverage detected