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

Method RecordFillBuffer

layers/sync/sync_command_buffer.cpp:1874–1882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1872}
1873
1874void CommandBufferSubState::RecordFillBuffer(vvl::Buffer& buffer_state, VkDeviceSize offset, VkDeviceSize size,
1875 const Location& loc) {
1876 const auto tag = access_context.NextCommandTag(loc.function);
1877 AccessContext& context = access_context.GetCurrentAccessContext();
1878
1879 const AccessRange range = MakeRange(buffer_state, offset, size);
1880 const ResourceUsageTagEx tag_ex = access_context.AddCommandHandle(tag, buffer_state.Handle());
1881 context.UpdateAccessState(buffer_state, SYNC_CLEAR_TRANSFER_WRITE, range, tag_ex);
1882}
1883
1884void CommandBufferSubState::RecordUpdateBuffer(vvl::Buffer& buffer_state, VkDeviceSize offset, VkDeviceSize size,
1885 const Location& loc) {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected