/* * Copyright 2021 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef skgpu_graphite_Uniform_DEFINED #define skgpu_graphite_Uniform_DEFINED #include "src/core/SkSLTypeShared.h" namespace skgpu::graphite { // TODO: can SkRuntimeEffect::Uniform be absorbed into this class!? /** * Describes a uniform. Uniforms consist of: * name: The constant string name to use in the generated SkSL (with mangling) * type: The type of the uniform * count: Number of elements of 'type' in the array or kNonArray if not an array. */ class Uniform { … }; } // namespace skgpu::graphite #endif // skgpu_graphite_Uniform_DEFINED