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

Support constant expression calculated by matrixCompMult. #3465

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jimihem
Copy link
Contributor

@jimihem jimihem commented Dec 27, 2023

glslang report error for "const mat2 cval = matrixCompMult(mat2(1.0), mat2(1.0));".
Spec says:
The value returned by certain built-in function calls whose arguments are all constant expressions is also constant expressions.

@jimihem
Copy link
Contributor Author

jimihem commented Feb 1, 2024

@ncesario-lunarg Please review this PR.

@arcady-lunarg arcady-lunarg self-requested a review February 1, 2024 21:12
@jimihem
Copy link
Contributor Author

jimihem commented Apr 26, 2024

@arcady-lunarg Please help review this PR.

Copy link
Contributor

@arcady-lunarg arcady-lunarg left a comment

Choose a reason for hiding this comment

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

The idea of this change is sound, I do wonder if this is the best place to do this though. Why not put it in fold directly?

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.

None yet

2 participants