redorav / hlslpp

Math library using HLSL syntax with multiplatform SIMD support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Benualdo opened this issue · comments

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

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

image

A potential suspect ... :)

image

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.

Fixed via fb35628, thanks for reporting!