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

17 lines
495 B
Plaintext

#include "../test_static.isph"
task void f_fu(uniform float ret[], uniform float aa[], uniform float b) {
uniform int foo[10];
for (uniform int i = 0; i < 10; ++i)
foo[i] = 10+i;
int bb = b;
// Pragma included for testing running run_test.py for entire suite wothout warnings
// Remove pragma to view warning
#pragma ignore warning
foo[bb] = 0;
ret[programIndex] = foo[4] + foo[5];
}
task void result(uniform float ret[]) {
ret[programIndex] = 14;
}