Skip to content

Commit

Permalink
Check depthClampZeroOne feature bit. (#1084)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dj2 authored Jan 20, 2025
1 parent 4ef1707 commit 6fa5ac1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions samples/config_helper_vulkan.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,10 @@ amber::Result ConfigHelperVulkan::CheckVulkanPhysicalDeviceRequirements(
supports_.ray_tracing_pipeline =
ray_tracing_pipeline_features.rayTracingPipeline;
}
if (supports_.depth_clamp_zero_one) {
supports_.depth_clamp_zero_one =
depth_clamp_zero_one_features.depthClampZeroOne;
}

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

0 comments on commit 6fa5ac1

Please sign in to comment.