chrisforbes / mesa

chrisf's mesa hacks
2 stars 0 forks source link

ARB_gpu_shader5: implement interpolateAt* builtins #13

Closed chrisforbes closed 10 years ago

chrisforbes commented 11 years ago

interpolateAtCentroid interpolateAtSample interpolateAtOffset

These are bizarre -- they take a thing that looks like a plain rvalue in the type system, but is actually required to be a varying.

This allows you to use the same varying with different interpolation modes, rather than having to decorate the varying with an interpolation qualifier.

chrisforbes commented 10 years ago

This is pretty much done now.