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

Implement math intrinsics for WGSL #5078

Merged

Conversation

jkwak-work
Copy link
Collaborator

This commit implements math related intrinsics and a few others for WGSL.

The implementation is based on the following doc,
https://www.w3.org/TR/WGSL

@jkwak-work jkwak-work added the pr: non-breaking PRs without breaking changes label Sep 17, 2024
@jkwak-work jkwak-work self-assigned this Sep 17, 2024
csyonghe
csyonghe previously approved these changes Sep 17, 2024
Copy link
Collaborator

@csyonghe csyonghe left a comment

Choose a reason for hiding this comment

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

Looks good!

@jkwak-work
Copy link
Collaborator Author

Many CI actions are failing but they don't seem to be related to my change, because they seem to be failing to checkout from github repository.
The important one, "Windows Release", is passing, which is a good sign.

I will re-trigger the failed tests later and see if it works out.

@csyonghe
Copy link
Collaborator

@jkwak-work any idea on the failed CI runs?

@jkwak-work
Copy link
Collaborator Author

@jkwak-work any idea on the failed CI runs?

I am still investigating.

@jkwak-work
Copy link
Collaborator Author

jkwak-work commented Sep 17, 2024

It turned out that the CI failures are due to my change.
It was hitting an assertion failure when I reproduced it on WSL debug build at

static PassThroughFlags _getPassThroughFlagsForTarget(SlangCompileTarget target)

The target, SLANG_WGSL, was not handled in this function.
I am working on a fix.

This commit implements math related intrinsics and a few others for
WGSL.

The implementation is based on the following doc,
 https://www.w3.org/TR/WGSL
slang-test was looking for the downstream compiler for WGSL even though
it is not used.
This commit adds a minimal change to avoid the crash.
@jkwak-work
Copy link
Collaborator Author

All CI are now passing.
Merging now.

@jkwak-work jkwak-work merged commit 0716646 into shader-slang:master Sep 17, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: non-breaking PRs without breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants