mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-02-22 09:03:36 +00:00
Only enable ShaderFloat64 if the GPU supports it
This commit is contained in:
parent
1edc85c26e
commit
5670022e27
3 changed files with 3 additions and 1 deletions
Binary file not shown.
Binary file not shown.
|
@ -330,6 +330,8 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
PQueuePriorities = queuePriorities
|
PQueuePriorities = queuePriorities
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var supportedFeatures = api.GetPhysicalDeviceFeature(physicalDevice);
|
||||||
|
|
||||||
var features = new PhysicalDeviceFeatures()
|
var features = new PhysicalDeviceFeatures()
|
||||||
{
|
{
|
||||||
DepthBiasClamp = true,
|
DepthBiasClamp = true,
|
||||||
|
@ -344,7 +346,7 @@ namespace Ryujinx.Graphics.Vulkan
|
||||||
PipelineStatisticsQuery = true,
|
PipelineStatisticsQuery = true,
|
||||||
SamplerAnisotropy = true,
|
SamplerAnisotropy = true,
|
||||||
ShaderClipDistance = true,
|
ShaderClipDistance = true,
|
||||||
ShaderFloat64 = true,
|
ShaderFloat64 = supportedFeatures.ShaderFloat64,
|
||||||
ShaderImageGatherExtended = true,
|
ShaderImageGatherExtended = true,
|
||||||
// ShaderStorageImageReadWithoutFormat = true,
|
// ShaderStorageImageReadWithoutFormat = true,
|
||||||
// ShaderStorageImageWriteWithoutFormat = true,
|
// ShaderStorageImageWriteWithoutFormat = true,
|
||||||
|
|
Loading…
Reference in a new issue