Only enable ShaderFloat64 if the GPU supports it

This commit is contained in:
gdk 2022-04-10 20:24:06 -03:00 committed by riperiperi
parent 1edc85c26e
commit 5670022e27
3 changed files with 3 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View file

@ -330,6 +330,8 @@ namespace Ryujinx.Graphics.Vulkan
PQueuePriorities = queuePriorities
};
var supportedFeatures = api.GetPhysicalDeviceFeature(physicalDevice);
var features = new PhysicalDeviceFeatures()
{
DepthBiasClamp = true,
@ -344,7 +346,7 @@ namespace Ryujinx.Graphics.Vulkan
PipelineStatisticsQuery = true,
SamplerAnisotropy = true,
ShaderClipDistance = true,
ShaderFloat64 = true,
ShaderFloat64 = supportedFeatures.ShaderFloat64,
ShaderImageGatherExtended = true,
// ShaderStorageImageReadWithoutFormat = true,
// ShaderStorageImageWriteWithoutFormat = true,