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

glsl-in: matrix operations fixes #1757

Merged
merged 3 commits into from
Mar 3, 2022
Merged

Conversation

JCapucho
Copy link
Collaborator

@JCapucho JCapucho commented Mar 2, 2022

Contains multiple fixes for matrix related binary operations:

  • Equality and inequality operations
  • Matrix by matrix division
  • Matrix by scalar division/addition/subtraction

Closes #1408

All commits can be reviewed and tested individually

|| left_rows != right_rows
|| left_width != right_width
{
parser.errors.push(Error {
Copy link
Member

Choose a reason for hiding this comment

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

is this check necessary? general validation would produce a very similar error, I think

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Checking the width and the rows is not necessary, but the columns need to be checked since otherwise code that uses matrices with different columns would either fail on validation or truncate depending on the order.

@kvark kvark merged commit af8dd4b into gfx-rs:master Mar 3, 2022
@JCapucho JCapucho deleted the glsl-matrix-ops branch March 3, 2022 15:00
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-in] matrix division
2 participants