ispc
ispc copied to clipboard
Accessing struct member in the function call causes syntax error
Accessing struct member right in the function call causes ISPC parser syntax error:
struct X {
int x;
};
uniform X getx() {
uniform X x;
return x;
}
export uniform int test(){
return getx().x;
}
Error: syntax error, unexpected '.', expecting ',' or ';'. return getx().x;