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

Method AddHandle

layers/sync/sync_command_buffer.cpp:1437–1442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1435}
1436
1437uint32_t CommandBufferAccessContext::AddHandle(const VulkanTypedHandle& typed_handle, uint32_t index) {
1438 const uint32_t handle_index = static_cast<uint32_t>(handles_.size());
1439 handles_.emplace_back(HandleRecord(typed_handle, index));
1440 sync_state_.stats.AddHandleRecord();
1441 return handle_index;
1442}
1443
1444ResourceUsageTagEx CommandBufferAccessContext::AddCommandHandle(ResourceUsageTag tag, const VulkanTypedHandle& typed_handle) {
1445 return AddCommandHandleIndexed(tag, typed_handle, vvl::kNoIndex32);

Callers

nothing calls this directly

Calls 4

HandleRecordClass · 0.85
emplace_backMethod · 0.80
sizeMethod · 0.45
AddHandleRecordMethod · 0.45

Tested by

no test coverage detected