diff options
author | Brian Salomon <bsalomon@google.com> | 2018-04-03 17:11:30 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-04-04 13:42:51 +0000 |
commit | 7e1dd2017a59a748c6cb10160868780d2dffdbc0 (patch) | |
tree | beaf82a79579144b3751233c8f8262b63e147994 /src/sksl/ir/SkSLProgram.h | |
parent | c412b59582fe802471214a0e1d183edfd7b796b7 (diff) |
Make SkSL GLSL generator declare sk_FragColor inout when EXT fb fetch is used.
Change-Id: I5e6e3263bb49febc757cd63d5d6c1518f174322d
Reviewed-on: https://skia-review.googlesource.com/118420
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/sksl/ir/SkSLProgram.h')
-rw-r--r-- | src/sksl/ir/SkSLProgram.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sksl/ir/SkSLProgram.h b/src/sksl/ir/SkSLProgram.h index cbb9dfe1a7..03a94fa03f 100644 --- a/src/sksl/ir/SkSLProgram.h +++ b/src/sksl/ir/SkSLProgram.h @@ -71,6 +71,8 @@ struct Program { // if false, sk_FragCoord is exactly the same as gl_FragCoord. If true, the y coordinate // must be flipped. bool fFlipY = false; + // If true the destination fragment color is read sk_FragColor. It must be declared inout. + bool fFragColorIsInOut = false; // if true, Setting objects (e.g. sk_Caps.fbFetchSupport) should be replaced with their // constant equivalents during compilation bool fReplaceSettings = true; |