Documentation ¶
Overview ¶
Package testcmd provides fake commands used for testing.
Index ¶
- Variables
- type A
- type API
- func (API) ConstantSets() *constset.Pack
- func (API) Context(*api.State, uint64) api.Context
- func (API) CreateCmd(name string) api.Cmd
- func (API) GetFramebufferAttachmentInfo(*api.State, uint64, api.FramebufferAttachment) (uint32, uint32, uint32, *image.Format, error)
- func (API) ID() api.ID
- func (API) Index() uint8
- func (API) Name() string
- type B
- type CmdAndID
- type CmdAndIDList
- type IntːStructPtr
- type Pointer
- func (p Pointer) Address() uint64
- func (p *Pointer) Assign(o interface{}) bool
- func (p Pointer) ElementSize(m *device.MemoryLayout) uint64
- func (p Pointer) ElementType() reflect.Type
- func (p Pointer) ISlice(start, end uint64, m *device.MemoryLayout) memory.Slice
- func (p Pointer) IsNullptr() bool
- func (p Pointer) Offset(n uint64) memory.Pointer
- func (p Pointer) Pool() memory.PoolID
- func (p Pointer) String() string
- type StringːString
- type Struct
- type Writer
- type X
Constants ¶
This section is empty.
Variables ¶
View Source
var ( APIID = api.ID{1, 2, 3} P = &X{ Str: "aaa", Sli: []bool{true, false, true}, Ref: &Struct{Str: "ccc", Ref: &Struct{Str: "ddd"}}, Ptr: Pointer{0x123, 0x456}, Map: StringːString{"cat": "meow", "dog": "woof"}, PMap: IntːStructPtr{}, } Q = &X{ Str: "xyz", Sli: []bool{false, true, false}, Ptr: Pointer{0x321, 0x654}, Map: StringːString{"bird": "tweet", "fox": "?"}, PMap: IntːStructPtr{ 100: &Struct{Str: "baldrick"}, }, } )
Functions ¶
This section is empty.
Types ¶
type CmdAndIDList ¶
type CmdAndIDList []CmdAndID
func List ¶
func List(cmds ...interface{}) CmdAndIDList
List takes a mix of Atoms and CmdIDsAndCmd and returns a CmdIDListAndCmd. Atoms are transformed into CmdIDsAndCmd by using the ID field as the atom id.
type IntːStructPtr ¶
type Pointer ¶
type Pointer struct {
// contains filtered or unexported fields
}
func (Pointer) ElementSize ¶
func (p Pointer) ElementSize(m *device.MemoryLayout) uint64
func (Pointer) ElementType ¶
type StringːString ¶
type Writer ¶
Writer is a transform.Writer that record all commands that pass through it.
func (*Writer) MutateAndWrite ¶
type X ¶
type X struct { Str string `param:"Str"` Sli []bool `param:"Sli"` Ref *Struct `param:"Ref"` Ptr Pointer `param:"Ptr"` Map StringːString `param:"Map"` PMap IntːStructPtr `param:"PMap"` }
Click to show internal directories.
Click to hide internal directories.