Skip to content

Commit 6fa5ac1

Browse files
authoredJan 20, 2025
Check depthClampZeroOne feature bit. (#1084)
The presence of the DepthClampZeroOne extension isn't enough to verify it's usable, the `depthClampZeroOne` feature flag also needs to be checked in the features structure.
1 parent 4ef1707 commit 6fa5ac1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎samples/config_helper_vulkan.cc

+4
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,10 @@ amber::Result ConfigHelperVulkan::CheckVulkanPhysicalDeviceRequirements(
10241024
supports_.ray_tracing_pipeline =
10251025
ray_tracing_pipeline_features.rayTracingPipeline;
10261026
}
1027+
if (supports_.depth_clamp_zero_one) {
1028+
supports_.depth_clamp_zero_one =
1029+
depth_clamp_zero_one_features.depthClampZeroOne;
1030+
}
10271031

10281032
std::vector<std::string> required_features1;
10291033
for (const auto& feature : required_features) {

0 commit comments

Comments
 (0)