Reputation: 1428
I have a small question about transform feedbacks in OpenGL.
Is it possible for my output to be a different size than my output ? Let say a VS like:
in vec3 pos;
in vec3 move;
out vec3 newPos;
void main()
{
newPos = pos + move;
}
So my output buffer would just be the new position!
Or the other way around, have more outputs than inputs.
Upvotes: 0
Views: 331
Reputation: 1691
Sure. Transform feedback saves the out values from a vertex shader. They don't need to match the inputs in either type or number when being passed to geometry or fragment shaders, so don't need to match for transform feedback either.
The OpenGL SuperBible has a good section on transform feedback.
Upvotes: 1