| 59 | } |
| 60 | |
| 61 | std::string ErrorMessages::BufferCopyError(const HazardResult& hazard, const CommandBufferAccessContext& cb_context, |
| 62 | const vvl::Func command, const std::string& resource_description, uint32_t region_index, |
| 63 | AccessRange range) const { |
| 64 | AdditionalMessageInfo additional_info; |
| 65 | additional_info.properties.Add(kPropertyRegionIndex, region_index); |
| 66 | |
| 67 | std::ostringstream ss; |
| 68 | ss << "\nBuffer copy region " << region_index << ": {\n"; |
| 69 | ss << " offset = " << range.begin << ",\n"; |
| 70 | ss << " size = " << range.end - range.begin << "\n"; |
| 71 | ss << "}\n"; |
| 72 | additional_info.message_end_text = ss.str(); |
| 73 | |
| 74 | return Error(hazard, cb_context, command, resource_description, "BufferCopyError", additional_info); |
| 75 | } |
| 76 | |
| 77 | std::string ErrorMessages::AccelerationStructureError(const HazardResult& hazard, const CommandBufferAccessContext& cb_context, |
| 78 | const vvl::Func command, const std::string& resource_description, |
no test coverage detected