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

Function FindValidateProgramPipelineExtra

gapis/api/gles/extras.go:149–156  ·  view source on GitHub ↗

FindValidateProgramPipelineExtra searches for the ValidateProgramPipelineExtra in the extras, returning the ValidateProgramPipelineExtra if found, otherwise nil.

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

Source from the content-addressed store, hash-verified

147// FindValidateProgramPipelineExtra searches for the ValidateProgramPipelineExtra in the extras,
148// returning the ValidateProgramPipelineExtra if found, otherwise nil.
149func FindValidateProgramPipelineExtra(a arena.Arena, extras *api.CmdExtras) ValidateProgramPipelineExtraʳ {
150 for _, e := range extras.All() {
151 if pi, ok := e.(ValidateProgramPipelineExtra); ok {
152 return MakeValidateProgramPipelineExtraʳ(a).Set(pi)
153 }
154 }
155 return NilValidateProgramPipelineExtraʳ
156}
157
158// FindStaticContextState searches for the StaticContextState in the extras,
159// returning the StaticContextState if found, otherwise nil.

Callers 1

Calls 2

SetMethod · 0.65
AllMethod · 0.45

Tested by

no test coverage detected