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

Function getBoundFramebufferID

gapis/api/gles/read_framebuffer.go:47–56  ·  view source on GitHub ↗
(thread uint64, s *api.GlobalState)

Source from the content-addressed store, hash-verified

45}
46
47func getBoundFramebufferID(thread uint64, s *api.GlobalState) (FramebufferId, error) {
48 c := GetContext(s, thread)
49 if c.IsNil() {
50 return 0, fmt.Errorf("No OpenGL ES context")
51 }
52 if c.Bound().DrawFramebuffer().IsNil() {
53 return 0, fmt.Errorf("No framebuffer bound")
54 }
55 return c.Bound().DrawFramebuffer().GetID(), nil
56}
57
58func (t *readFramebuffer) depth(
59 id api.CmdID,

Callers 1

postFBDataFunction · 0.85

Calls 3

GetContextFunction · 0.85
IsNilMethod · 0.45
GetIDMethod · 0.45

Tested by

no test coverage detected