GrShaderUtils.h 542 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright 2019 Google LLC
  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. #ifndef GrShaderUtils_DEFINED
  8. #define GrShaderUtils_DEFINED
  9. #include "include/core/SkTypes.h"
  10. #include "include/gpu/GrContextOptions.h"
  11. #include "src/sksl/SkSLString.h"
  12. namespace GrShaderUtils {
  13. SkSL::String PrettyPrint(const SkSL::String& string);
  14. void PrintLineByLine(const char* header, const SkSL::String& text);
  15. GrContextOptions::ShaderErrorHandler* DefaultShaderErrorHandler();
  16. }
  17. #endif