Documentation
¶
Overview ¶
Package capture contains all the core GAPIS functionality for dealing with loaded captures.
Index ¶
- Constants
- func Captures() []*path.Capture
- func Export(ctx context.Context, p *path.Capture, w io.Writer) error
- func Get(ctx context.Context) *path.Capture
- func Import(ctx context.Context, name string, data []byte) (*path.Capture, error)
- func New(ctx context.Context, name string, header *Header, cmds []api.Cmd) (*path.Capture, error)
- func NewState(ctx context.Context) (*api.State, error)
- func Put(ctx context.Context, c *path.Capture) context.Context
- type Capture
- type FBO
- func (FBO) API() api.API
- func (FBO) Caller() api.CmdID
- func (FBO) CmdFlags(context.Context, *api.State) api.CmdFlags
- func (FBO) CmdName() string
- func (FBO) Extras() *api.CmdExtras
- func (FBO) Mutate(ctx context.Context, s *api.State, b *rb.Builder) error
- func (FBO) SetCaller(api.CmdID)
- func (FBO) SetThread(uint64)
- func (a *FBO) String() string
- func (FBO) Thread() uint64
Constants ¶
const FBOName = "<FBO>"
FBOName is the special name given to FBO commands.
Variables ¶
This section is empty.
Functions ¶
func Export ¶
Export encodes the given capture and associated resources and writes it to the supplied io.Writer in the pack file format, producing output suitable for use with Import or opening in the trace editor.
func New ¶
New returns a path to a new capture with the given name, header and commands. The new capture is stored in the database.
Types ¶
type Capture ¶
type Capture struct {
Name string
Header *Header
Commands []api.Cmd
APIs []api.API
Observed interval.U64RangeList
}
func ResolveFromID ¶
ResolveFromID resolves a single capture with the ID id.
func ResolveFromPath ¶
ResolveFromPath resolves a single capture with the path p.
func (*Capture) Export ¶
Export encodes the given capture and associated resources and writes it to the supplied io.Writer in the .gfxtrace format.
type FBO ¶ added in v0.6.0
type FBO 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
}
FBO is a deserialized FramebufferObservation.