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

Function AccessScopeImpl

layers/sync/sync_barrier.cpp:36–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35template <typename Flags, typename Map>
36static SyncAccessFlags AccessScopeImpl(Flags flag_mask, const Map& map) {
37 SyncAccessFlags scope;
38 for (const auto& [flag_bits2, sync_access_flags] : map) {
39 if (flag_mask < flag_bits2) {
40 break;
41 }
42 if (flag_mask & flag_bits2) {
43 scope |= sync_access_flags;
44 }
45 }
46 return scope;
47}
48
49static SyncAccessFlags AccessScopeByStage(VkPipelineStageFlags2 stages) {
50 return AccessScopeImpl(stages, syncAccessMaskByStageBit());

Callers 2

AccessScopeByStageFunction · 0.85
AccessScopeByAccessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected