blob: e227b3e76629eee1657fe4108b33f894f373dc71 [file] [log] [blame]
// Copyright (C) 2016 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Package all is used to import all known gfxapi APIs for their side effects.
package all
import (
"android.googlesource.com/platform/tools/gpu/framework/binary/registry"
"android.googlesource.com/platform/tools/gpu/framework/binary/schema"
"android.googlesource.com/platform/tools/gpu/gapid/atom"
"android.googlesource.com/platform/tools/gpu/gapid/gfxapi/gles"
"android.googlesource.com/platform/tools/gpu/gapid/gfxapi/vulkan"
)
var GraphicsNamespace = registry.NewNamespace()
func init() {
GraphicsNamespace.Add((*atom.FramebufferObservation)(nil).Class())
GraphicsNamespace.AddFallbacks(gles.Namespace)
GraphicsNamespace.AddFallbacks(vulkan.Namespace)
}
func VisitConstantSets(visitor func(schema.ConstantSet)) {
for _, c := range gles.ConstantValues {
visitor(c)
}
}