- add vk_device and vk_listdevices that will allow selecting a different device on systems where this is desirable

- clean up the VulkanDevice class
This commit is contained in:
Magnus Norddahl 2019-03-09 10:20:14 +01:00
commit 21c83950a5
6 changed files with 379 additions and 293 deletions

View file

@ -18,7 +18,7 @@ VkRenderBuffers::~VkRenderBuffers()
VkSampleCountFlagBits VkRenderBuffers::GetBestSampleCount()
{
auto fb = GetVulkanFrameBuffer();
const auto &limits = fb->device->deviceProperties.limits;
const auto &limits = fb->device->PhysicalDevice.Properties.limits;
VkSampleCountFlags deviceSampleCounts = limits.sampledImageColorSampleCounts & limits.sampledImageDepthSampleCounts & limits.sampledImageStencilSampleCounts;
int requestedSamples = clamp((int)gl_multisample, 0, 64);