Some fixes in function names and more tests was added.
This commit is contained in:
11
tests/psubs_vi16-2.ispc
Normal file
11
tests/psubs_vi16-2.ispc
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
export uniform int width() { return programCount; }
|
||||
|
||||
export void f_f(uniform float RET[], uniform float aFOO[]) {
|
||||
varying int16 a = 32767, b = aFOO[programIndex]; // min unsigned int16
|
||||
RET[programIndex] = saturating_sub(a, -b);
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) {
|
||||
RET[programIndex] = (varying int16) 32767;
|
||||
}
|
||||
Reference in New Issue
Block a user