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

Method Error

layers/sync/sync_error_messages.cpp:33–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31ErrorMessages::ErrorMessages(SyncValidator& validator) : validator_(validator) {}
32
33std::string ErrorMessages::Error(const HazardResult& hazard, const CommandExecutionContext& context, vvl::Func command,
34 const std::string& resource_description, const char* message_type,
35 const AdditionalMessageInfo& additional_info) const {
36 std::string message = FormatErrorMessage(hazard, context, command, resource_description, additional_info);
37
38 if (validator_.syncval_settings.message_extra_properties) {
39 if (!message.empty() && message.back() != '\n') {
40 message += '\n';
41 }
42 const ReportProperties properties = GetErrorMessageProperties(hazard, context, command, message_type, additional_info);
43 message += properties.FormatExtraPropertiesSection();
44 }
45 return message;
46}
47
48std::string ErrorMessages::BufferError(const HazardResult& hazard, const CommandBufferAccessContext& cb_context, vvl::Func command,
49 const std::string& resource_description, const AccessRange range,

Calls 5

FormatErrorMessageFunction · 0.85
emptyMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected