Add support for enums.
This commit is contained in:
16
tests/enum-1.ispc
Normal file
16
tests/enum-1.ispc
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
enum Foo {
|
||||
ZERO,
|
||||
ONE,
|
||||
TWO
|
||||
};
|
||||
|
||||
export uniform int width() { return programCount; }
|
||||
|
||||
export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
|
||||
RET[programIndex] = ONE;
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) {
|
||||
RET[programIndex] = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user