Documentation
¶
Overview ¶
Package shapes_go_gx are Go bindings to the GX package: shapes.
Automatically generated by gx/golang/binder/gobindings/bindings.go.tmpl.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DType ¶
type DType struct {
// contains filtered or unexported fields
}
DType stores the handle of DType on a backend.
type Factory ¶
type Factory struct {
Package *Package
}
Factory create new instance of types used in the package. The compiler associated with the factory defines on what device and with which options methods of the instances created by the factory are compiled for.
type Package ¶
type Package struct { Package *PackageIR Device *api.Device Factory *Factory // contains filtered or unexported fields }
Package is a GX package for a given device. Functions and methods are compiled specifically for that device.
func BuildFor ¶
BuildFor loads the GX package shapes then returns that package for a given device and options.
func (*Package) AppendOptions ¶
func (cmpl *Package) AppendOptions(options ...options.PackageOptionFactory)
AppendOptions appends options to the compiler.
func (*Package) MarshalDType ¶
MarshalDType populates the receiver fields with device handles.
type PackageIR ¶
PackageIR is the GX package intermediate representation built for a given runtime, but not yet for a specific device.