DescriptionThe Shader class now support deferred shader compiling.
In preperation for deferring the shader compiles within the gles2
command decoder, I have added additional shader states which contains
all the information we need to support deferred shader compiling.
Once RequestCompile() is called, when DoCompile() is called it will
compile the last shader set when RequestCompile() was called.
RequestCompile() must be called before DoCompile(), or it is assumed
the user did not call glCompileShader and the shader will continually
be invalid.
Additionally, the |signature_source_| has been renamed to a more
descriptive |last_compiled_source_|. The |last_compiled_source_|
corresponds to the last shader set during either RequestCompile().
This string should be used as the key for any shader caches before
linking.
R=kbr@chromium.org, vmiura@chromium.org
BUG=450690
TEST=gpu_unittests && trybots
Committed: https://crrev.com/ef47e29f950b03afa9a3ec81282480476138a20f
Cr-Commit-Position: refs/heads/master@{#314817}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Made RequestCompile() mandatory when using shader compiler #
Total comments: 3
Messages
Total messages: 15 (2 generated)
|