Skip to content

Commit ed50b15

Browse files
committed
added missing property check
1 parent 0b7452c commit ed50b15

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/nbl/video/CVulkanPhysicalDevice.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,8 @@ std::unique_ptr<CVulkanPhysicalDevice> CVulkanPhysicalDevice::create(core::smart
401401
//vulkan12Properties.denormBehaviorIndependence;
402402
//vulkan12Properties.denormBehaviorIndependence;
403403

404+
if (!vulkan12Properties.shaderSignedZeroInfNanPreserveFloat16)
405+
return nullptr;
404406
if (!vulkan12Properties.shaderSignedZeroInfNanPreserveFloat32)
405407
return nullptr;
406408
properties.limits.shaderSignedZeroInfNanPreserveFloat64 = vulkan12Properties.shaderSignedZeroInfNanPreserveFloat64;

src/nbl/video/device_capabilities/device_limits.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -903,14 +903,14 @@
903903
{
904904
"type": "bool",
905905
"name": "shaderSignedZeroInfNanPreserveFloat16",
906-
"value": false,
907-
"expose": "DISABLE"
906+
"value": true,
907+
"expose": "REQUIRE"
908908
},
909909
{
910910
"type": "bool",
911911
"name": "shaderSignedZeroInfNanPreserveFloat32",
912912
"value": true,
913-
"expose": "DISABLE"
913+
"expose": "REQUIRE"
914914
},
915915
{
916916
"type": "bool",

0 commit comments

Comments
 (0)