Add support for depth clamping
This commit is contained in:
@@ -54,6 +54,7 @@ namespace Nz
|
||||
deviceInfo.name = physDevice.properties.deviceName;
|
||||
|
||||
deviceInfo.features.anisotropicFiltering = physDevice.features.samplerAnisotropy;
|
||||
deviceInfo.features.depthClamping = physDevice.features.depthClamp;
|
||||
deviceInfo.features.nonSolidFaceFilling = physDevice.features.fillModeNonSolid;
|
||||
|
||||
deviceInfo.limits.minUniformBufferOffsetAlignment = physDevice.properties.limits.minUniformBufferOffsetAlignment;
|
||||
@@ -578,6 +579,9 @@ namespace Nz
|
||||
if (enabledFeatures.anisotropicFiltering)
|
||||
deviceFeatures.samplerAnisotropy = VK_TRUE;
|
||||
|
||||
if (enabledFeatures.depthClamping)
|
||||
deviceFeatures.depthClamp = VK_TRUE;
|
||||
|
||||
if (enabledFeatures.nonSolidFaceFilling)
|
||||
deviceFeatures.fillModeNonSolid = VK_TRUE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user