mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 10:56:58 +02:00
render: call Vulkan diagnostics and capability checks directly
This commit is contained in:
@@ -96,22 +96,6 @@ constexpr auto kFormatLookup = MakeFormatLookup();
|
||||
|
||||
} // namespace
|
||||
|
||||
std::string VulkanToString(vk::Result value) {
|
||||
return vk::to_string(value);
|
||||
}
|
||||
|
||||
std::string VulkanToString(vk::Format value) {
|
||||
return vk::to_string(value);
|
||||
}
|
||||
|
||||
std::string VulkanToString(vk::ImageLayout value) {
|
||||
return vk::to_string(value);
|
||||
}
|
||||
|
||||
std::string VulkanToString(vk::QueueFlags value) {
|
||||
return vk::to_string(value);
|
||||
}
|
||||
|
||||
vk::Format VulkanFormat(Prospero::BufferFormat guest_format) {
|
||||
const auto index = static_cast<size_t>(guest_format);
|
||||
return index < kFormatLookup.size() ? kFormatLookup[index] : vk::Format::eUndefined;
|
||||
@@ -119,7 +103,7 @@ vk::Format VulkanFormat(Prospero::BufferFormat guest_format) {
|
||||
|
||||
void RequireVulkanSuccess(vk::Result result, const char* operation) {
|
||||
if (result != vk::Result::eSuccess) {
|
||||
EXIT("%s failed: %s (%d)\n", operation, VulkanToString(result).c_str(),
|
||||
EXIT("%s failed: %s (%d)\n", operation, vk::to_string(result).c_str(),
|
||||
static_cast<int>(result));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user