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

Function FormatAccessProperty

layers/sync/sync_reporting.cpp:106–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106static std::string FormatAccessProperty(const SyncAccessInfo& access) {
107 constexpr std::array special_accesses = {SYNC_PRESENT_ENGINE_SYNCVAL_PRESENT_ACQUIRE_READ_SYNCVAL,
108 SYNC_PRESENT_ENGINE_SYNCVAL_PRESENT_PRESENTED_SYNCVAL, SYNC_IMAGE_LAYOUT_TRANSITION,
109 SYNC_QUEUE_FAMILY_OWNERSHIP_TRANSFER};
110 if (IsValueIn(access.access_index, special_accesses)) {
111 // Print internal name for accesses that don't have corresponding Vulkan constants
112 return access.name;
113 }
114 std::ostringstream ss;
115 ss << string_VkPipelineStageFlagBits2(access.stage_mask);
116 ss << "(";
117 ss << string_VkAccessFlagBits2(access.access_mask);
118 ss << ")";
119 return ss.str();
120}
121
122static void GetAccessProperties(const HazardResult& hazard_result, const SyncValidator& device, VkQueueFlags allowed_queue_flags,
123 ReportProperties& properties) {

Callers 1

GetAccessPropertiesFunction · 0.85

Calls 1

IsValueInFunction · 0.85

Tested by

no test coverage detected