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

Method RecordCountBuffer

layers/sync/sync_validation.cpp:1078–1085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1076}
1077
1078void SyncValidator::RecordCountBuffer(CommandBufferAccessContext& cb_context, const ResourceUsageTag tag, VkBuffer buffer,
1079 VkDeviceSize offset) {
1080 auto count_buf_state = Get<vvl::Buffer>(buffer);
1081 const AccessRange range = MakeRange(offset, 4);
1082 const ResourceUsageTagEx tag_ex = cb_context.AddCommandHandle(tag, count_buf_state->Handle());
1083 AccessContext& context = cb_context.GetCurrentAccessContext();
1084 context.UpdateAccessState(*count_buf_state, SYNC_DRAW_INDIRECT_INDIRECT_COMMAND_READ, range, tag_ex);
1085}
1086
1087bool SyncValidator::PreCallValidateCmdDispatch(VkCommandBuffer commandBuffer, uint32_t x, uint32_t y, uint32_t z,
1088 const ErrorObject& error_obj) const {

Callers

nothing calls this directly

Calls 4

AddCommandHandleMethod · 0.80
UpdateAccessStateMethod · 0.80
MakeRangeFunction · 0.70
HandleMethod · 0.45

Tested by

no test coverage detected