GS output variables

In the spec it’s written that for EmitVertex

On return from this call, the values of output variables are undefined.

Does this means GS can’t have output variables or that we just set an output variable and call EmitVertex and that it will be automatically undefined for us to set it’s value for the next vertex and it’s perfectly fine?

The point of that statement is that you have to set the value of all out variables in the GS for each vertex you EmitVertex on. You can’t set it once and then EmitVertex it multiple times without resetting it to that value.

1 Like