-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add clip distances validation for maxInterStageShaderVariables
#8762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Add clip distances validation for maxInterStageShaderVariables
#8762
Conversation
2004d9a to
f70488b
Compare
9a8ea87 to
152fedd
Compare
6454d73 to
4a816bf
Compare
| ViewIndex, | ||
| BaseInstance, | ||
| BaseVertex, | ||
| ClipDistance { array_size: u32 }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thoughts on putting array_size: Option<u32> in the naga type rather then duplicating the whole thing?
| debug_assert_eq!(stride, 4); | ||
|
|
||
| let naga::ArraySize::Constant(array_size) = size else { | ||
| // TODO: Should we accept override expressions? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does naga allow it? I don't think it should be legal based on:
The only valid use of a fixed-size array with an element count that is an override-expression that is not a const-expression is as a memory view in the workgroup address space.
4a816bf to
ca04a30
Compare
Shortly, we're going to add our own functionality to it.
…hader_variables` limit check
ca04a30 to
6a58c70
Compare
| /// When a pipeline's [`crate::pipeline::RenderPipelineDescriptor::primitive`] is set to | ||
| /// [`wgt::PrimitiveTopology::PointList`]. | ||
| PointListPrimitiveTopology, | ||
| ClipDistance { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo: We should add docs. here, like has been added with the other variants since this draft was started.
Connections
maxInterStageShaderComponentstomaxInterStageShaderVariables(minus coverage ofclip-distances) #8652.Testing
New CTS tests have been enabled that cover this functionality, which were previously failing.
Squash or Rebase?
Rebase.