vk: Minor spec touchups

- Simplify active instance management. While multicontext support will
be required in future, this is better done with multiple logical devices
rather than multiple instances.
- Destroy the WSI surface on exit
- Enable depthBoundsTest explicitly. TODO: Properly check for supported
features.
This commit is contained in:
kd-11 2019-10-28 23:11:55 +03:00 committed by kd-11
parent aa3eeaa417
commit 7a5c20ef85
3 changed files with 31 additions and 52 deletions

View file

@ -137,11 +137,9 @@ emu_settings::Render_Creator::Render_Creator()
thread_ctrl::set_native_priority(-1);
vk::context device_enum_context;
u32 instance_handle = device_enum_context.createInstance("RPCS3", true);
if (instance_handle > 0)
if (device_enum_context.createInstance("RPCS3", true))
{
device_enum_context.makeCurrentInstance(instance_handle);
device_enum_context.makeCurrentInstance();
std::vector<vk::physical_device> &gpus = device_enum_context.enumerateDevices();
if (!gpus.empty())