Files
UnrealEngine/Engine/Source/ThirdParty/Intel/ISPC/ispc-1.16.1/tests/enum-8.ispc
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

25 lines
380 B
Plaintext

enum Foo {
ZERO,
ONE,
TWO,
TEN = 10,
ELEVEN
};
enum Bar {
FIFTY = 50,
THOUSAND = 1000
};
Foo Func(Foo f) { return ++f; }
Bar Func(Bar b) { return FIFTY; }
export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
RET[programIndex] = (int)Func(ONE);
}
export void result(uniform float RET[]) {
RET[programIndex] = 2;
}