0b8bb88cbb
When in GL backend, adds a "Shaders" section to the debug menu. "Load" scrapes all of the vertex and fragment shaders being used, then displays them. They can be edited, and "Save" pushes the results. Note: It is trivial to trigger an assert by saving a shader that doesn't compile. I'd like to make the program builder more robust in a follow-up CL, to fall back to the "real" SkSL, not draw, or something along those lines. Change-Id: I841fe2ee76a3c2eae58b64ef587fcbe25b95cc7e Reviewed-on: https://skia-review.googlesource.com/c/skia/+/206905 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
22 lines
491 B
Plaintext
22 lines
491 B
Plaintext
# Copyright 2016 Google Inc.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
declare_args() {
|
|
}
|
|
|
|
import("../third_party.gni")
|
|
|
|
third_party("imgui") {
|
|
public_include_dirs = [ "../externals/imgui" ]
|
|
|
|
sources = [
|
|
"../externals/imgui/imgui.cpp",
|
|
"../externals/imgui/imgui_demo.cpp",
|
|
"../externals/imgui/imgui_draw.cpp",
|
|
"../externals/imgui/imgui_widgets.cpp",
|
|
"../externals/imgui/misc/cpp/imgui_stdlib.cpp",
|
|
]
|
|
}
|