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

Method addDebugMarker

gapis/api/vulkan/graph_visualization.go:98–105  ·  view source on GitHub ↗

addDebugMarker adds a new debug marker from the last debug_marker_begin Label to the current Label.

()

Source from the content-addressed store, hash-verified

96
97// addDebugMarker adds a new debug marker from the last debug_marker_begin Label to the current Label.
98func (dm *debugMarkerStack) addDebugMarker() {
99 position := dm.positionsOfDebugMarkersBegin[dm.getSize()-1]
100 size := dm.labels[position].GetSize()
101 dm.debugMarkerID++
102 for i := position; i < len(dm.labels); i++ {
103 dm.labels[i].Insert(size-1, VK_CMD_DEBUG_MARKER, dm.debugMarkerID)
104 }
105}
106
107func (dm *debugMarkerStack) checkDebugMarkers(label *api.Label) {
108 // It preserves Labels with no-decreasing sizes in the stack of debug_markers_begin avoiding

Callers 1

checkDebugMarkersMethod · 0.95

Calls 3

getSizeMethod · 0.95
InsertMethod · 0.65
GetSizeMethod · 0.45

Tested by

no test coverage detected