blob: 60ab09f7970f412d7755b708ad74df427d5b87d2 [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 memory
import (
"android.googlesource.com/platform/tools/gpu/framework/binary"
)
// SliceInfo is the common data between all slice types.
type SliceInfo struct {
binary.Generate `java:"MemorySliceInfo"`
Root uint64 // Original pointer this slice derives from.
Base uint64 // Address of first element.
Count uint64 // Number of elements in the slice.
Pool PoolID // The pool identifier.
}
// SliceMetadata is the meta information about a slice.
type SliceMetadata struct {
binary.Generate `java:"MemorySliceMetadata"`
ElementTypeName string // The name of the type that elements of the slice have.
}