mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Vulkan validation warning fix
This commit is contained in:
parent
d7d37e58d4
commit
417d346e03
1 changed files with 12 additions and 4 deletions
|
@ -703,16 +703,24 @@ VkResult VulkanContext::CreateDevice(int physical_device) {
|
|||
VkPhysicalDeviceProvokingVertexFeaturesEXT provokingVertexFeatures{ VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROVOKING_VERTEX_FEATURES_EXT };
|
||||
|
||||
ChainStruct(features2, &multiViewFeatures);
|
||||
ChainStruct(features2, &presentWaitFeatures);
|
||||
ChainStruct(features2, &presentIdFeatures);
|
||||
if (extensionsLookup_.KHR_present_wait) {
|
||||
ChainStruct(features2, &presentWaitFeatures);
|
||||
}
|
||||
if (extensionsLookup_.KHR_present_id) {
|
||||
ChainStruct(features2, &presentIdFeatures);
|
||||
}
|
||||
if (extensionsLookup_.EXT_provoking_vertex) {
|
||||
ChainStruct(features2, &provokingVertexFeatures);
|
||||
}
|
||||
vkGetPhysicalDeviceFeatures2(physical_devices_[physical_device_], &features2);
|
||||
deviceFeatures_.available.standard = features2.features;
|
||||
deviceFeatures_.available.multiview = multiViewFeatures;
|
||||
deviceFeatures_.available.presentWait = presentWaitFeatures;
|
||||
deviceFeatures_.available.presentId = presentIdFeatures;
|
||||
if (extensionsLookup_.KHR_present_wait) {
|
||||
deviceFeatures_.available.presentWait = presentWaitFeatures;
|
||||
}
|
||||
if (extensionsLookup_.KHR_present_id) {
|
||||
deviceFeatures_.available.presentId = presentIdFeatures;
|
||||
}
|
||||
if (extensionsLookup_.EXT_provoking_vertex) {
|
||||
deviceFeatures_.available.provokingVertex = provokingVertexFeatures;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue