mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
Added initial rpcsx-gpu project template
This commit is contained in:
parent
a8af9198bf
commit
df5f8055fa
6 changed files with 522 additions and 25 deletions
15
hw/amdgpu/include/util/VerifyVulkan.hpp
Normal file
15
hw/amdgpu/include/util/VerifyVulkan.hpp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#pragma once
|
||||
#include "Verify.hpp"
|
||||
#include <vulkan/vulkan_core.h>
|
||||
|
||||
inline Verify operator<<(Verify lhs, VkResult result) {
|
||||
if (result < VK_SUCCESS) {
|
||||
auto location = lhs.location();
|
||||
util::unreachable("Verification failed at %s: %s:%u:%u(res = %d)",
|
||||
location.function_name(), location.file_name(),
|
||||
location.line(), location.column(), result);
|
||||
}
|
||||
|
||||
return lhs;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue