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

Function FindLinkProgramExtra

gapis/api/gles/extras.go:127–134  ·  view source on GitHub ↗

FindLinkProgramExtra searches for the LinkProgramExtra in the extras, returning the LinkProgramExtra if found, otherwise nil.

(a arena.Arena, extras *api.CmdExtras)

Source from the content-addressed store, hash-verified

125// FindLinkProgramExtra searches for the LinkProgramExtra in the extras,
126// returning the LinkProgramExtra if found, otherwise nil.
127func FindLinkProgramExtra(a arena.Arena, extras *api.CmdExtras) LinkProgramExtraʳ {
128 for _, e := range extras.All() {
129 if pi, ok := e.(LinkProgramExtra); ok {
130 return MakeLinkProgramExtraʳ(a).Set(pi)
131 }
132 }
133 return NilLinkProgramExtraʳ
134}
135
136// FindValidateProgramExtra searches for the ValidateProgramExtra in the extras,
137// returning the ValidateProgramExtra if found, otherwise nil.

Callers 5

TransformMethod · 0.85
buildStubProgramFunction · 0.85
bindAttribLocationsFunction · 0.85
bindUniformBlocksFunction · 0.85
GetLinkProgramExtraMethod · 0.85

Calls 2

SetMethod · 0.65
AllMethod · 0.45

Tested by

no test coverage detected