joshualitt | 30ba436 | 2014-08-21 20:18:45 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2014 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #ifndef GrGLShaderStringBuilder_DEFINED |
| 9 | #define GrGLShaderStringBuilder_DEFINED |
| 10 | |
| 11 | #include "GrAllocator.h" |
mtklein | b9eb4ac | 2015-02-02 18:26:03 -0800 | [diff] [blame] | 12 | #include "GrGpu.h" |
joshualitt | 30ba436 | 2014-08-21 20:18:45 -0700 | [diff] [blame] | 13 | #include "gl/GrGLContext.h" |
ethannicholas | 5961bc9 | 2016-10-12 06:39:56 -0700 | [diff] [blame] | 14 | #include "SkSLGLSLCodeGenerator.h" |
joshualitt | 30ba436 | 2014-08-21 20:18:45 -0700 | [diff] [blame] | 15 | #include "SkTypes.h" |
| 16 | |
| 17 | GrGLuint GrGLCompileAndAttachShader(const GrGLContext& glCtx, |
| 18 | GrGLuint programId, |
| 19 | GrGLenum type, |
Brian Salomon | e334c59 | 2017-05-15 11:00:58 -0400 | [diff] [blame] | 20 | const char** skslStrings, |
joshualitt | 43466a1 | 2015-02-13 17:18:27 -0800 | [diff] [blame] | 21 | int* lengths, |
| 22 | int count, |
Ethan Nicholas | 941e7e2 | 2016-12-12 15:33:30 -0500 | [diff] [blame] | 23 | GrGpu::Stats*, |
| 24 | const SkSL::Program::Settings& settings, |
| 25 | SkSL::Program::Inputs* inputs); |
joshualitt | 30ba436 | 2014-08-21 20:18:45 -0700 | [diff] [blame] | 26 | |
Brian Salomon | e334c59 | 2017-05-15 11:00:58 -0400 | [diff] [blame] | 27 | void GrGLPrintShader(const GrGLContext&, GrGLenum type, const char** skslStrings, int* lengths, |
| 28 | int count, const SkSL::Program::Settings&); |
| 29 | |
joshualitt | 30ba436 | 2014-08-21 20:18:45 -0700 | [diff] [blame] | 30 | #endif |