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

uint4 components stored in reverse (w, z, y, x) order ? (SSE) #35

Closed
Benualdo opened this issue Sep 12, 2020 · 4 comments
Closed

uint4 components stored in reverse (w, z, y, x) order ? (SSE) #35

Benualdo opened this issue Sep 12, 2020 · 4 comments
Assignees
Labels

Comments

@Benualdo
Copy link
Contributor

Considering the following declarations :

float4 f(1, 2, 3, 4);
uint4 u(1, 2, 3, 4);

float4 components are in expected order (x, y, z, w) in memory, but uint4 components are in reverse order (w, z, y, x)

image

@Benualdo
Copy link
Contributor Author

Benualdo commented Sep 12, 2020

(int4 does not have the issue by the way.)

image

@Benualdo
Copy link
Contributor Author

Benualdo commented Sep 12, 2020

A potential suspect ... :)

image

@redorav
Copy link
Owner

redorav commented Sep 12, 2020

Hi @Benualdo, you are absolutely right, what a silly mistake. Thanks for reporting and even looking into it. I will fix that asap. I still haven't gotten to doing the uint unit tests so that very simple thing slipped.

@redorav
Copy link
Owner

redorav commented Sep 12, 2020

Fixed via fb35628, thanks for reporting!

@redorav redorav closed this as completed Sep 12, 2020
@redorav redorav self-assigned this Sep 12, 2020
@redorav redorav added the bug label Sep 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants