- 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:
parent
389469c604
commit
21c83950a5
6 changed files with 379 additions and 293 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue