OSDN Git Service

Transform feedback varyings gather operation
authorAlexis Hetu <sugoi@google.com>
Thu, 2 Jul 2015 14:59:51 +0000 (10:59 -0400)
committerAlexis Hétu <sugoi@google.com>
Tue, 7 Jul 2015 13:54:47 +0000 (13:54 +0000)
commite2b43f0084b33b2e2d64f82d2fb59a3efc74d1c3
tree02ee350227fdaff6a4333927233807099d65726f
parenta734c0f30298c7b607d80e9ebff460d2e629324c
Transform feedback varyings gather operation

A few small things were missing to get the transform
feedback varyings gather operation to work properly:
- A basic implementation of
  Program::gatherTransformFeedbackLinkedVaryings()
  has been made as a first step.
- transformFeedbackBufferMode is now initialized in
  the constructor
- transformFeedbackLinkedVaryings are now properly
  reset

Also:
- Removed useless DirectX semantic information from
  the LinkedVarying class
- ++it is more efficient than it++ in a loop, because
  it++ create a temporary object to return the
  original state of the iterator, so I made the
  changes where applicable in Program.cpp.

Change-Id: I78513f185ef5ef1a17448606b5c598c22d0d217e
Reviewed-on: https://swiftshader-review.googlesource.com/3621
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
src/OpenGL/libGLESv2/Program.cpp
src/OpenGL/libGLESv2/Program.h