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

Method ImageClearError

layers/sync/sync_error_messages.cpp:130–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130std::string ErrorMessages::ImageClearError(const HazardResult& hazard, const CommandBufferAccessContext& cb_context,
131 vvl::Func command, const std::string& resource_description,
132 uint32_t subresource_range_index,
133 const VkImageSubresourceRange& subresource_range) const {
134 std::ostringstream ss;
135 ss << "\nImage clear subresource range " << subresource_range_index << ": {\n";
136 ss << " " << string_VkImageSubresourceRange(subresource_range) << "\n";
137 ss << "}\n";
138
139 AdditionalMessageInfo additional_info;
140 additional_info.message_end_text = ss.str();
141 additional_info.properties.Add(kPropertyRegionIndex, subresource_range_index);
142
143 return Error(hazard, cb_context, command, resource_description, "ImageSubresourceRangeError", additional_info);
144}
145
146static void PrepareCommonDescriptorMessage(Logger& logger, const vvl::Pipeline& pipeline, uint32_t descriptor_set_number,
147 const vvl::DescriptorSet& descriptor_set, VkDescriptorType descriptor_type,

Calls 3

ErrorClass · 0.85
AddMethod · 0.45

Tested by

no test coverage detected