Documentation
¶
Overview ¶
Package gputoolsdiagnostics provides Go bindings for the gputoolsdiagnostics framework.
Key Types ¶
Code generated from Apple documentation. DO NOT EDIT.
Index ¶
- func BindFunc(fptr any, name string) (err error)
- func SymbolAddress(name string) (uintptr, error)
- type GTSwizzleMTLTrackerLibraryWrapper
- func (g GTSwizzleMTLTrackerLibraryWrapper) Autorelease() GTSwizzleMTLTrackerLibraryWrapper
- func (g GTSwizzleMTLTrackerLibraryWrapper) Init() GTSwizzleMTLTrackerLibraryWrapper
- func (g GTSwizzleMTLTrackerLibraryWrapper) InitWithLibrary(library Library) GTSwizzleMTLTrackerLibraryWrapper
- func (g GTSwizzleMTLTrackerLibraryWrapper) Library() Library
- func (g GTSwizzleMTLTrackerLibraryWrapper) SetLibrary(value Library)
- type GTSwizzleMTLTrackerLibraryWrapperClass
- func (gc GTSwizzleMTLTrackerLibraryWrapperClass) Alloc() GTSwizzleMTLTrackerLibraryWrapper
- func (gc GTSwizzleMTLTrackerLibraryWrapperClass) Class() objc.Class
- func (_GTSwizzleMTLTrackerLibraryWrapperClass GTSwizzleMTLTrackerLibraryWrapperClass) LibraryWrapperWithLibrary(library Library) objectivec.IObject
- type IGTSwizzleMTLTrackerLibraryWrapper
- type Library
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindFunc ¶
BindFunc binds the gputoolsdiagnostics symbol name into fptr, which must be a pointer to a func variable.
The caller supplies the signature, and nothing checks it. A dylib records no argument count or types for a C symbol, so a wrong signature here is not a type error: it is the wrong number of machine words moved on a live stack, and the failure surfaces somewhere else entirely. Prefer a generated binding, whose signature carries recorded evidence, and reach for this only for a symbol that has none. purego.RegisterFunc panics on a signature it cannot lower; that is recovered and returned, because an escape hatch that takes down the process on a mistyped experiment is not one anybody can experiment with.
func SymbolAddress ¶
SymbolAddress returns the address of name in gputoolsdiagnostics, whether or not this package generated a binding for it.
What is generated is bounded by what is documented, and for a private framework that is whatever a manifest happened to enumerate. The dylib usually exports far more. Without this, a symbol nobody wrote down is unreachable from a package that has already loaded the image holding it, and the generated surface becomes a ceiling instead of a floor.
The lookup is scoped to this framework's handle, not RTLD_DEFAULT, so a symbol some other loaded image exports is not reported as this one's.
Types ¶
type GTSwizzleMTLTrackerLibraryWrapper ¶
type GTSwizzleMTLTrackerLibraryWrapper struct {
objectivec.Object
}
Methods ¶
- GTSwizzleMTLTrackerLibraryWrapper.Library
- GTSwizzleMTLTrackerLibraryWrapper.SetLibrary
- GTSwizzleMTLTrackerLibraryWrapper.InitWithLibrary
func GTSwizzleMTLTrackerLibraryWrapperFromID ¶
func GTSwizzleMTLTrackerLibraryWrapperFromID(id objc.ID) GTSwizzleMTLTrackerLibraryWrapper
GTSwizzleMTLTrackerLibraryWrapperFromID constructs a GTSwizzleMTLTrackerLibraryWrapper from an objc.ID.
func NewGTSwizzleMTLTrackerLibraryWrapper ¶
func NewGTSwizzleMTLTrackerLibraryWrapper() GTSwizzleMTLTrackerLibraryWrapper
NewGTSwizzleMTLTrackerLibraryWrapper creates a new GTSwizzleMTLTrackerLibraryWrapper instance.
func NewGTSwizzleMTLTrackerLibraryWrapperWithLibrary ¶
func NewGTSwizzleMTLTrackerLibraryWrapperWithLibrary(library Library) GTSwizzleMTLTrackerLibraryWrapper
func (GTSwizzleMTLTrackerLibraryWrapper) Autorelease ¶
func (g GTSwizzleMTLTrackerLibraryWrapper) Autorelease() GTSwizzleMTLTrackerLibraryWrapper
Autorelease adds the receiver to the current autorelease pool.
func (GTSwizzleMTLTrackerLibraryWrapper) Init ¶
func (g GTSwizzleMTLTrackerLibraryWrapper) Init() GTSwizzleMTLTrackerLibraryWrapper
Init initializes the instance.
func (GTSwizzleMTLTrackerLibraryWrapper) InitWithLibrary ¶
func (g GTSwizzleMTLTrackerLibraryWrapper) InitWithLibrary(library Library) GTSwizzleMTLTrackerLibraryWrapper
func (GTSwizzleMTLTrackerLibraryWrapper) Library ¶
func (g GTSwizzleMTLTrackerLibraryWrapper) Library() Library
func (GTSwizzleMTLTrackerLibraryWrapper) SetLibrary ¶
func (g GTSwizzleMTLTrackerLibraryWrapper) SetLibrary(value Library)
type GTSwizzleMTLTrackerLibraryWrapperClass ¶
type GTSwizzleMTLTrackerLibraryWrapperClass struct {
// contains filtered or unexported fields
}
func GetGTSwizzleMTLTrackerLibraryWrapperClass ¶
func GetGTSwizzleMTLTrackerLibraryWrapperClass() GTSwizzleMTLTrackerLibraryWrapperClass
GetGTSwizzleMTLTrackerLibraryWrapperClass returns the class object for GTSwizzleMTLTrackerLibraryWrapper.
func (GTSwizzleMTLTrackerLibraryWrapperClass) Alloc ¶
func (gc GTSwizzleMTLTrackerLibraryWrapperClass) Alloc() GTSwizzleMTLTrackerLibraryWrapper
Alloc allocates memory for a new instance of the class.
func (GTSwizzleMTLTrackerLibraryWrapperClass) Class ¶
func (gc GTSwizzleMTLTrackerLibraryWrapperClass) Class() objc.Class
Class returns the underlying Objective-C class pointer.
func (GTSwizzleMTLTrackerLibraryWrapperClass) LibraryWrapperWithLibrary ¶
func (_GTSwizzleMTLTrackerLibraryWrapperClass GTSwizzleMTLTrackerLibraryWrapperClass) LibraryWrapperWithLibrary(library Library) objectivec.IObject
type IGTSwizzleMTLTrackerLibraryWrapper ¶
type IGTSwizzleMTLTrackerLibraryWrapper interface {
objectivec.IObject
Library() Library
SetLibrary(value Library)
InitWithLibrary(library Library) GTSwizzleMTLTrackerLibraryWrapper
}
An interface definition for the GTSwizzleMTLTrackerLibraryWrapper class.
Methods ¶
type Library ¶
type Library struct {
Field1 objectivec.Object
Field2 objectivec.Object
Field3 objectivec.Object
Field4 bool
Field5 [7]int8
}
Library