@@ -33,23 +33,23 @@ impl MaxVertexShaderOutputDeduction {
3333/// [`StageError::FragmentInputLocationTooLarge`].
3434#[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
3535pub enum MaxFragmentShaderInputDeduction {
36- InterStageBuiltIn ( InterStageBuiltIn ) ,
36+ InterStageBuiltIn ( InterStageFragmentInputBuiltIn ) ,
3737}
3838
3939impl MaxFragmentShaderInputDeduction {
4040 pub fn for_variables ( self ) -> u32 {
4141 match self {
4242 Self :: InterStageBuiltIn ( builtin) => match builtin {
43- InterStageBuiltIn :: FrontFacing
44- | InterStageBuiltIn :: SampleIndex
45- | InterStageBuiltIn :: SampleMask
46- | InterStageBuiltIn :: PrimitiveIndex
47- | InterStageBuiltIn :: SubgroupInvocationId
48- | InterStageBuiltIn :: SubgroupSize
49- | InterStageBuiltIn :: ViewIndex
50- | InterStageBuiltIn :: PointCoord => 1 ,
51- InterStageBuiltIn :: Barycentric => 3 ,
52- InterStageBuiltIn :: Position => 0 ,
43+ InterStageFragmentInputBuiltIn :: FrontFacing
44+ | InterStageFragmentInputBuiltIn :: SampleIndex
45+ | InterStageFragmentInputBuiltIn :: SampleMask
46+ | InterStageFragmentInputBuiltIn :: PrimitiveIndex
47+ | InterStageFragmentInputBuiltIn :: SubgroupInvocationId
48+ | InterStageFragmentInputBuiltIn :: SubgroupSize
49+ | InterStageFragmentInputBuiltIn :: ViewIndex
50+ | InterStageFragmentInputBuiltIn :: PointCoord => 1 ,
51+ InterStageFragmentInputBuiltIn :: Barycentric => 3 ,
52+ InterStageFragmentInputBuiltIn :: Position => 0 ,
5353 } ,
5454 }
5555 }
@@ -58,16 +58,16 @@ impl MaxFragmentShaderInputDeduction {
5858 use naga:: BuiltIn ;
5959
6060 Some ( Self :: InterStageBuiltIn ( match builtin {
61- BuiltIn :: Position { .. } => InterStageBuiltIn :: Position ,
62- BuiltIn :: FrontFacing => InterStageBuiltIn :: FrontFacing ,
63- BuiltIn :: SampleIndex => InterStageBuiltIn :: SampleIndex ,
64- BuiltIn :: SampleMask => InterStageBuiltIn :: SampleMask ,
65- BuiltIn :: PrimitiveIndex => InterStageBuiltIn :: PrimitiveIndex ,
66- BuiltIn :: SubgroupSize => InterStageBuiltIn :: SubgroupSize ,
67- BuiltIn :: SubgroupInvocationId => InterStageBuiltIn :: SubgroupInvocationId ,
68- BuiltIn :: PointCoord => InterStageBuiltIn :: PointCoord ,
69- BuiltIn :: Barycentric { .. } => InterStageBuiltIn :: Barycentric ,
70- BuiltIn :: ViewIndex => InterStageBuiltIn :: ViewIndex ,
61+ BuiltIn :: Position { .. } => InterStageFragmentInputBuiltIn :: Position ,
62+ BuiltIn :: FrontFacing => InterStageFragmentInputBuiltIn :: FrontFacing ,
63+ BuiltIn :: SampleIndex => InterStageFragmentInputBuiltIn :: SampleIndex ,
64+ BuiltIn :: SampleMask => InterStageFragmentInputBuiltIn :: SampleMask ,
65+ BuiltIn :: PrimitiveIndex => InterStageFragmentInputBuiltIn :: PrimitiveIndex ,
66+ BuiltIn :: SubgroupSize => InterStageFragmentInputBuiltIn :: SubgroupSize ,
67+ BuiltIn :: SubgroupInvocationId => InterStageFragmentInputBuiltIn :: SubgroupInvocationId ,
68+ BuiltIn :: PointCoord => InterStageFragmentInputBuiltIn :: PointCoord ,
69+ BuiltIn :: Barycentric { .. } => InterStageFragmentInputBuiltIn :: Barycentric ,
70+ BuiltIn :: ViewIndex => InterStageFragmentInputBuiltIn :: ViewIndex ,
7171 BuiltIn :: BaseInstance
7272 | BuiltIn :: BaseVertex
7373 | BuiltIn :: ClipDistance
@@ -116,7 +116,7 @@ impl MaxFragmentShaderInputDeduction {
116116///
117117/// See also <https://www.w3.org/TR/webgpu/#inter-stage-builtins>.
118118#[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
119- pub enum InterStageBuiltIn {
119+ pub enum InterStageFragmentInputBuiltIn {
120120 // Standard for WebGPU
121121 Position ,
122122 FrontFacing ,
0 commit comments