mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
vk: Silence spec validation error on NV cards
This commit is contained in:
parent
6447981273
commit
d699eea596
1 changed files with 9 additions and 0 deletions
|
@ -764,6 +764,15 @@ namespace vk
|
|||
device.pNext = &conditional_rendering_info;
|
||||
}
|
||||
|
||||
VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR shader_barycentric_info{};
|
||||
if (pgpu->optional_features_support.barycentric_coords)
|
||||
{
|
||||
shader_barycentric_info.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_KHR;
|
||||
shader_barycentric_info.pNext = const_cast<void*>(device.pNext);
|
||||
shader_barycentric_info.fragmentShaderBarycentric = VK_TRUE;
|
||||
device.pNext = &shader_barycentric_info;
|
||||
}
|
||||
|
||||
if (auto error = vkCreateDevice(*pgpu, &device, nullptr, &dev))
|
||||
{
|
||||
dump_debug_info(requested_extensions, enabled_features);
|
||||
|
|
Loading…
Add table
Reference in a new issue