Skip to content
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

glsl-in: Fix matrix multiplication check #1953

Merged
merged 1 commit into from
May 30, 2022

Conversation

JCapucho
Copy link
Collaborator

The previous check compared rows to rows and columns to columns but
multiplication of matrices only needs the columns of the left matrix to
be equal to the rows of the right matrix.

closes #1947

Copy link
Member

@jimblandy jimblandy left a comment

Choose a reason for hiding this comment

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

Thank you!

One suggestion:

src/front/glsl/context.rs Outdated Show resolved Hide resolved
The previous check compared rows to rows and columns to columns but
multiplication of matrices only needs the columns of the left matrix to
be equal to the rows of the right matrix.
@JCapucho JCapucho enabled auto-merge (rebase) May 30, 2022 21:50
@JCapucho JCapucho merged commit e461d30 into gfx-rs:master May 30, 2022
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.

[glsl] Translating matrix multiplication from WGSL->GLSL and validating throws error
2 participants