Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(272)

Unified Diff: gpu/command_buffer/service/shader_translator.cc

Issue 15846014: Added support for EXT_frag_depth (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/shader_translator.cc
diff --git a/gpu/command_buffer/service/shader_translator.cc b/gpu/command_buffer/service/shader_translator.cc
index 3bd2a97259d4f0a04b422397e88e7cf1b7922b2c..5129bfce73433168f7f9fe2488bf01e8d7ac41fe 100644
--- a/gpu/command_buffer/service/shader_translator.cc
+++ b/gpu/command_buffer/service/shader_translator.cc
@@ -209,7 +209,7 @@ bool ShaderTranslator::Translate(const char* shader) {
std::string ShaderTranslator::GetStringForOptionsThatWouldEffectCompilation()
const {
- const size_t kNumIntFields = 15;
+ const size_t kNumIntFields = 16;
const size_t kNumEnumFields = 1;
const size_t kNumFunctionPointerFields = 1;
struct MustMatchShBuiltInResource {
@@ -258,7 +258,9 @@ std::string ShaderTranslator::GetStringForOptionsThatWouldEffectCompilation()
":MaxExpressionComplexity:" +
base::IntToString(compiler_options_.MaxExpressionComplexity) +
":MaxCallStackDepth:" +
- base::IntToString(compiler_options_.MaxCallStackDepth));
+ base::IntToString(compiler_options_.MaxCallStackDepth) +
+ ":EXT_frag_depth:" +
+ base::IntToString(compiler_options_.EXT_frag_depth));
}
const char* ShaderTranslator::translated_shader() const {
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698