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

packUnorm4x8 (and possibly related functions) do not function properly/as-expected. #4031

Closed
ArielG-NV opened this issue Apr 25, 2024 · 0 comments · Fixed by #4033
Closed
Assignees
Labels
goal:client support Feature or fix needed for a current slang user. kind:bug something doesn't work like it should

Comments

@ArielG-NV
Copy link
Contributor

ArielG-NV commented Apr 25, 2024

uint tt = packUnorm4x8(float4(1, 0, 0, 1));
hit.color = unpackUnorm4x8(tt);

hit.color != float4(1, 0, 0, 1)

@ArielG-NV ArielG-NV added kind:bug something doesn't work like it should goal:client support Feature or fix needed for a current slang user. labels Apr 25, 2024
jkwak-work added a commit to jkwak-work/slang that referenced this issue Apr 25, 2024
Fixes shader-slang#4031

Each component of unpackU/Snorm4x8 had to be masked for 8bits.
csyonghe pushed a commit that referenced this issue Apr 25, 2024
Fixes #4031

Each component of unpackU/Snorm4x8 had to be masked for 8bits.
djohansson pushed a commit to djohansson/slang that referenced this issue Sep 21, 2024
Fixes shader-slang#4031

Each component of unpackU/Snorm4x8 had to be masked for 8bits.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
goal:client support Feature or fix needed for a current slang user. kind:bug something doesn't work like it should
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants