File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -3697,7 +3697,7 @@ impl Device {
3697
3697
3698
3698
if attribute. shader_location >= self . limits . max_vertex_attributes {
3699
3699
return Err (
3700
- pipeline:: CreateRenderPipelineError :: TooManyVertexAttributes {
3700
+ pipeline:: CreateRenderPipelineError :: VertexAttributeLocationTooLarge {
3701
3701
given : attribute. shader_location ,
3702
3702
limit : self . limits . max_vertex_attributes ,
3703
3703
} ,
Original file line number Diff line number Diff line change @@ -624,6 +624,8 @@ pub enum CreateRenderPipelineError {
624
624
TooManyVertexBuffers { given : u32 , limit : u32 } ,
625
625
#[ error( "The total number of vertex attributes {given} exceeds the limit {limit}" ) ]
626
626
TooManyVertexAttributes { given : u32 , limit : u32 } ,
627
+ #[ error( "Vertex attribute location {given} must be less than limit {limit}" ) ]
628
+ VertexAttributeLocationTooLarge { given : u32 , limit : u32 } ,
627
629
#[ error( "Vertex buffer {index} stride {given} exceeds the limit {limit}" ) ]
628
630
VertexStrideTooLarge { index : u32 , given : u32 , limit : u32 } ,
629
631
#[ error( "Vertex attribute at location {location} stride {given} exceeds the limit {limit}" ) ]
@@ -708,6 +710,7 @@ impl WebGpuError for CreateRenderPipelineError {
708
710
| Self :: InvalidSampleCount ( _)
709
711
| Self :: TooManyVertexBuffers { .. }
710
712
| Self :: TooManyVertexAttributes { .. }
713
+ | Self :: VertexAttributeLocationTooLarge { .. }
711
714
| Self :: VertexStrideTooLarge { .. }
712
715
| Self :: UnalignedVertexStride { .. }
713
716
| Self :: InvalidVertexAttributeOffset { .. }
You can’t perform that action at this time.
0 commit comments