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

16 lines
436 B
Plaintext

#include "../test_static.isph"
// rule: skip on arch=*
// rule: run on arch=xe64
// TODO: the test should be reworked when atomic operation on Xe are available.
// It is hard to check taskIndex now.
task void f_t(uniform float RET[]) {
RET[taskIndex] = taskIndex;
}
task void result_t(uniform float RET[], uniform int groupSpaceWidth, uniform int groupSpaceHeight) {
foreach(i = 0 ... taskCount) {
RET[i] = i;
}
}