Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

Validate Compose, Unary, Binary, Select, and Relational #599

Merged
merged 3 commits into from
Mar 19, 2021

Conversation

kvark
Copy link
Member

@kvark kvark commented Mar 19, 2021

More steps towards #59

bors bot added a commit to gfx-rs/wgpu-rs that referenced this pull request Mar 19, 2021
803: Shader fixes with binary expressions r=kvark a=kvark

Goes along with gfx-rs/naga#599

Co-authored-by: Dzmitry Malyshau <kvark@fastmail.com>
Copy link
Collaborator

@Timo-DK Timo-DK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! We are one step closer!

Some(Sk::Uint) | Some(Sk::Sint) | Some(Sk::Float) => true,
Some(Sk::Bool) | None => false,
};
//TODO: should we be more restrictive here? I.e. expect scalar only to the left.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say yes, because it can be crucial for the back-ends processing. However, not really needed for now I guess. It is better to push this validation forward first, and iron out the minor things later.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed on both accounts!

@kvark kvark merged commit d5fbb19 into gfx-rs:master Mar 19, 2021
@kvark kvark deleted the sample-mask branch March 19, 2021 14:39
kvark added a commit to kvark/wgpu that referenced this pull request Jun 3, 2021
803: Shader fixes with binary expressions r=kvark a=kvark

Goes along with gfx-rs/naga#599

Co-authored-by: Dzmitry Malyshau <kvark@fastmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants