OSDN Git Service

Pack texelFetch LOD as sampling coordinate's w component.
authorMeng-Lin Wu <marleymoo@google.com>
Tue, 14 Jun 2016 15:11:25 +0000 (11:11 -0400)
committerMeng-Lin Wu <marleymoo@google.com>
Wed, 15 Jun 2016 17:46:24 +0000 (17:46 +0000)
commit9d62c486034d107ed778e061760be668ba47e026
tree7cb69ed86fd0f621531165afcafcb99783a82d7c
parentb14ed8021f2c9101e4f791d2bc5acad15305a193
Pack texelFetch LOD as sampling coordinate's w component.

One less argument is emitted.

Vertex/PixelProgram sampleTexture function signature simplified.

Change-Id: I7aef3eb100ccb51a8bd9d5fd600c73b4843d30d9
Reviewed-on: https://swiftshader-review.googlesource.com/5600
Tested-by: Meng-Lin Wu <marleymoo@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
src/OpenGL/compiler/OutputASM.cpp
src/Shader/PixelProgram.cpp
src/Shader/PixelProgram.hpp
src/Shader/SamplerCore.cpp
src/Shader/VertexProgram.cpp
src/Shader/VertexProgram.hpp