Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.24.0/tests/unif-struct-test-112.ispc
2025-05-18 13:04:45 +08:00

13 lines
292 B
Plaintext

#include "../test_static.isph"
task void f_v(uniform float RET[]) {
uniform struct { uniform struct { float x, y; } q; int i; } a[3];
a[1].q.x = 1;
a[1].q.y = 2;
RET[programIndex] = a[1].q.x + a[1].q.y;
}
task void result(uniform float RET[]) {
RET[programIndex] = 3;
}