Skip to content

Commit 225fe7c

Browse files
committed
Add missing ClipDistance and CullDistance capabilities to all-builtins test
The Rust SPIR-V validator correctly checks that BuiltIn decoration operands have their required capabilities declared. The clip_distance and cull_distance builtins require the ClipDistance and CullDistance capabilities respectively.
1 parent fffe6b4 commit 225fe7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/compiletests/ui/spirv-attr/all-builtins.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// build-pass
22
// only-vulkan1.1
3-
// compile-flags: -Ctarget-feature=+DeviceGroup,+DrawParameters,+FragmentBarycentricNV,+FragmentBarycentricKHR,+FragmentDensityEXT,+FragmentFullyCoveredEXT,+Geometry,+GroupNonUniform,+GroupNonUniformBallot,+MeshShadingNV,+MultiView,+MultiViewport,+RayTracingKHR,+SampleRateShading,+ShaderSMBuiltinsNV,+ShaderStereoViewNV,+ShaderViewportIndexLayerEXT,+ShaderViewportMaskNV,+StencilExportEXT,+Tessellation,+ext:SPV_AMD_shader_explicit_vertex_parameter,+ext:SPV_EXT_fragment_fully_covered,+ext:SPV_EXT_fragment_invocation_density,+ext:SPV_EXT_shader_stencil_export,+ext:SPV_KHR_ray_tracing,+ext:SPV_NV_fragment_shader_barycentric,+ext:SPV_NV_mesh_shader,+ext:SPV_NV_shader_sm_builtins,+ext:SPV_NV_stereo_view_rendering,+ext:SPV_NV_viewport_array2
3+
// compile-flags: -Ctarget-feature=+ClipDistance,+CullDistance,+DeviceGroup,+DrawParameters,+FragmentBarycentricNV,+FragmentBarycentricKHR,+FragmentDensityEXT,+FragmentFullyCoveredEXT,+Geometry,+GroupNonUniform,+GroupNonUniformBallot,+MeshShadingNV,+MultiView,+MultiViewport,+RayTracingKHR,+SampleRateShading,+ShaderSMBuiltinsNV,+ShaderStereoViewNV,+ShaderViewportIndexLayerEXT,+ShaderViewportMaskNV,+StencilExportEXT,+Tessellation,+ext:SPV_AMD_shader_explicit_vertex_parameter,+ext:SPV_EXT_fragment_fully_covered,+ext:SPV_EXT_fragment_invocation_density,+ext:SPV_EXT_shader_stencil_export,+ext:SPV_KHR_ray_tracing,+ext:SPV_NV_fragment_shader_barycentric,+ext:SPV_NV_mesh_shader,+ext:SPV_NV_shader_sm_builtins,+ext:SPV_NV_stereo_view_rendering,+ext:SPV_NV_viewport_array2
44

55
use spirv_std::glam::*;
66
use spirv_std::matrix::Matrix4x3;

0 commit comments

Comments
 (0)