Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.24.0/tests/ptr-23.ispc
2025-05-18 13:04:45 +08:00

20 lines
349 B
Plaintext

#include "../test_static.isph"
struct Foo {
int a;
uniform float b;
};
void update(varying float<3> * uniform vp) {
vp->x = 0;
}
task void f_f(uniform float RET[], uniform float aFOO[]) {
float<3> v = { 1, 2, 3 };
update(&v);
RET[programIndex] = v.x;
}
task void result(uniform float RET[]) {
RET[programIndex] = 0;
}