MCPcopy Create free account
hub / github.com/google/gapid / top

Method top

gapis/api/vulkan/graph_visualization.go:74–82  ·  view source on GitHub ↗

top returns the Label of the last debug_marker_begin command if exists.

()

Source from the content-addressed store, hash-verified

72
73// top returns the Label of the last debug_marker_begin command if exists.
74func (dm *debugMarkerStack) top() *api.Label {
75 if dm.getSize() > 0 {
76 position := dm.positionsOfDebugMarkersBegin[dm.getSize()-1]
77 if position < len(dm.labels) {
78 return dm.labels[position]
79 }
80 }
81 return &api.Label{}
82}
83
84func (dm *debugMarkerStack) pop() {
85 if dm.getSize() > 0 {

Callers 1

checkDebugMarkersMethod · 0.95

Calls 1

getSizeMethod · 0.95

Tested by

no test coverage detected