Documentation ¶
Overview ¶
Package atom is deprecated.
Some types will be merged into gapis/api, others may be deleted.
Index ¶
- func Data(ctx context.Context, l *device.MemoryLayout, at memory.Pointer, ...) (memory.Range, id.ID)
- type FramebufferObservation
- func (FramebufferObservation) API() api.API
- func (FramebufferObservation) CmdFlags() api.CmdFlags
- func (FramebufferObservation) CmdName() string
- func (FramebufferObservation) Extras() *api.CmdExtras
- func (FramebufferObservation) Mutate(ctx context.Context, s *api.State, b *builder.Builder) error
- func (FramebufferObservation) SetThread(uint64)
- func (a *FramebufferObservation) String() string
- func (FramebufferObservation) Thread() uint64
- type Resource
- func (Resource) API() api.API
- func (Resource) CmdFlags() api.CmdFlags
- func (Resource) CmdName() string
- func (Resource) Extras() *api.CmdExtras
- func (Resource) Mutate(ctx context.Context, s *api.State, b *builder.Builder) error
- func (Resource) SetThread(uint64)
- func (a *Resource) String() string
- func (Resource) Thread() uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Data ¶
func Data(ctx context.Context, l *device.MemoryLayout, at memory.Pointer, v ...interface{}) (memory.Range, id.ID)
Data encodes and stores the value v to the database d, returning the memory range and new resource identifier. Data can be used to as a helper to AddRead and AddWrite methods on atoms.
Types ¶
type FramebufferObservation ¶
type FramebufferObservation struct { OriginalWidth uint32 `param:"OriginalWidth"` // Framebuffer width in pixels OriginalHeight uint32 `param:"OriginalHeight"` // Framebuffer height in pixels DataWidth uint32 `param:"DataWidth"` // Dimensions of downsampled data. DataHeight uint32 `param:"DataHeight"` // Dimensions of downsampled data. Data []byte `param:"Data"` // The RGBA color-buffer data }
FramebufferObservation is an Atom that holds a snapshot of the color-buffer of the bound framebuffer at the time of capture. These atoms can be used to verify that replay gave the same results as what was captured.
func (FramebufferObservation) API ¶
func (FramebufferObservation) API() api.API
func (FramebufferObservation) CmdFlags ¶
func (FramebufferObservation) CmdFlags() api.CmdFlags
func (FramebufferObservation) CmdName ¶
func (FramebufferObservation) CmdName() string
func (FramebufferObservation) Extras ¶
func (FramebufferObservation) Extras() *api.CmdExtras
func (FramebufferObservation) SetThread ¶
func (FramebufferObservation) SetThread(uint64)
func (*FramebufferObservation) String ¶
func (a *FramebufferObservation) String() string
func (FramebufferObservation) Thread ¶
func (FramebufferObservation) Thread() uint64
api.Cmd compliance
type Resource ¶
type Resource struct { ID id.ID // The resource identifier holding the memory that was observed. Data []byte // The resource data }
Resource is an Atom that embeds a blob of memory into the atom stream. These atoms are typically only used for .gfxtrace files as they are stripped from the stream on import and their resources are placed into the database.