Descriptioncommand_buffer: Use GLSL core version that matches the OpenGL version
Use GLSL core version that matches OpenGL version as specified in the
corresponding OpenGL specification.
This makes it simpler to support GL extensions that depend on specific
GLSL feature and are specified to be supported on contexts implementing
the GLSL language version.
Using the specified version as opposed to a hand-picked specific version
should minimize the kind of regressions caused by forcing a specific
core GLSL version in the past.
The idea is that when implementing a client-side feature that requires
a specific service-side GLSL feature, the feature_info can just check
the corresponding GL context version. Typically context version of an
extension is selected so that GLSL features match.
Needed in implementing EXT_blend_func_extended in the client. The
service side will be implemented with ARB_blend_func_extended, which
uses custom outputs. Using compatibility output from ANGLE would result
in gl_ built-ins as well as custom outputs, which is not allowed.
BUG=471960
Committed: https://crrev.com/48854200686afcc6f5ff26b3316cb5ae59c365dc
Cr-Commit-Position: refs/heads/master@{#343172}
Patch Set 1 #
Total comments: 5
Patch Set 2 : address review comments #Patch Set 3 : #Patch Set 4 : fix android compile problem and rebase #
Messages
Total messages: 26 (10 generated)
|