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

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 force-pushed the glsl-in-linear-algebra branch from dd06d27 to c2143fa Compare May 30, 2022 21:49
@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 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.

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