Skip to content

Conversation

@ErichDonGubler
Copy link
Member

Connections

Testing

New CTS tests have been enabled that cover this functionality, which were previously failing.

Squash or Rebase?

Rebase.

@ErichDonGubler ErichDonGubler force-pushed the max_inter_stage_shader_variables-clip_distances branch 3 times, most recently from 2004d9a to f70488b Compare December 19, 2025 22:22
@ErichDonGubler ErichDonGubler force-pushed the max_inter_stage_shader_variables-clip_distances branch 2 times, most recently from 9a8ea87 to 152fedd Compare December 19, 2025 23:34
@ErichDonGubler ErichDonGubler force-pushed the max_inter_stage_shader_variables-clip_distances branch 7 times, most recently from 6454d73 to 4a816bf Compare December 22, 2025 22:33
ViewIndex,
BaseInstance,
BaseVertex,
ClipDistance { array_size: u32 },
Copy link
Contributor

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?
Copy link
Contributor

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.

@ErichDonGubler ErichDonGubler force-pushed the max_inter_stage_shader_variables-clip_distances branch from 4a816bf to ca04a30 Compare December 23, 2025 21:03
@ErichDonGubler ErichDonGubler force-pushed the max_inter_stage_shader_variables-clip_distances branch from ca04a30 to 6a58c70 Compare December 23, 2025 21:10
/// When a pipeline's [`crate::pipeline::RenderPipelineDescriptor::primitive`] is set to
/// [`wgt::PrimitiveTopology::PointList`].
PointListPrimitiveTopology,
ClipDistance {
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants