atom

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package atom is deprecated.

Some types will be merged into gapis/api, others may be deleted.

Index

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) CmdFlags

func (FramebufferObservation) CmdFlags() api.CmdFlags

func (FramebufferObservation) CmdName

func (FramebufferObservation) CmdName() string

func (FramebufferObservation) Extras

func (FramebufferObservation) Mutate

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.

func (Resource) API

func (Resource) API() api.API

func (Resource) CmdFlags

func (Resource) CmdFlags() api.CmdFlags

func (Resource) CmdName

func (Resource) CmdName() string

func (Resource) Extras

func (Resource) Extras() *api.CmdExtras

func (Resource) Mutate

func (Resource) Mutate(ctx context.Context, s *api.State, b *builder.Builder) error

func (Resource) SetThread

func (Resource) SetThread(uint64)

func (*Resource) String

func (a *Resource) String() string

func (Resource) Thread

func (Resource) Thread() uint64

Directories

Path Synopsis
Package atom_pb describes the serialization format for general atom information.
Package atom_pb describes the serialization format for general atom information.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL