mirror of
https://github.com/ocornut/imgui.git
synced 2025-04-07 22:43:09 +00:00
Adaptation to the last Google DAWN commit: 1411699ba4cdf29eca037c4320543ab8189bad28
This commit is contained in:
parent
b6e4ffd84e
commit
e4c6d5cd07
2 changed files with 10 additions and 10 deletions
|
@ -50,11 +50,11 @@ static void wgpu_device_lost_callback(const wgpu::Device&, wgpu::DeviceLostReaso
|
|||
const char* reasonName = "";
|
||||
switch (reason)
|
||||
{
|
||||
case wgpu::DeviceLostReason::Unknown: reasonName = "Unknown"; break;
|
||||
case wgpu::DeviceLostReason::Destroyed: reasonName = "Destroyed"; break;
|
||||
case wgpu::DeviceLostReason::InstanceDropped: reasonName = "InstanceDropped"; break;
|
||||
case wgpu::DeviceLostReason::FailedCreation: reasonName = "FailedCreation"; break;
|
||||
default: reasonName = "UNREACHABLE"; break;
|
||||
case wgpu::DeviceLostReason::Unknown: reasonName = "Unknown"; break;
|
||||
case wgpu::DeviceLostReason::Destroyed: reasonName = "Destroyed"; break;
|
||||
case wgpu::DeviceLostReason::CallbackCancelled: reasonName = "InstanceDropped"; break;
|
||||
case wgpu::DeviceLostReason::FailedCreation: reasonName = "FailedCreation"; break;
|
||||
default: reasonName = "UNREACHABLE"; break;
|
||||
}
|
||||
printf("%s device message: %s\n", reasonName, message.data);
|
||||
}
|
||||
|
|
|
@ -51,11 +51,11 @@ static void wgpu_device_lost_callback(const wgpu::Device&, wgpu::DeviceLostReaso
|
|||
const char* reasonName = "";
|
||||
switch (reason)
|
||||
{
|
||||
case wgpu::DeviceLostReason::Unknown: reasonName = "Unknown"; break;
|
||||
case wgpu::DeviceLostReason::Destroyed: reasonName = "Destroyed"; break;
|
||||
case wgpu::DeviceLostReason::InstanceDropped: reasonName = "InstanceDropped"; break;
|
||||
case wgpu::DeviceLostReason::FailedCreation: reasonName = "FailedCreation"; break;
|
||||
default: reasonName = "UNREACHABLE"; break;
|
||||
case wgpu::DeviceLostReason::Unknown: reasonName = "Unknown"; break;
|
||||
case wgpu::DeviceLostReason::Destroyed: reasonName = "Destroyed"; break;
|
||||
case wgpu::DeviceLostReason::CallbackCancelled: reasonName = "InstanceDropped"; break;
|
||||
case wgpu::DeviceLostReason::FailedCreation: reasonName = "FailedCreation"; break;
|
||||
default: reasonName = "UNREACHABLE"; break;
|
||||
}
|
||||
printf("%s device message: %s\n", reasonName, message.data);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue