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

Method glGenFramebuffer

gapis/api/gles/tweaker.go:248–255  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

246}
247
248func (t *tweaker) glGenFramebuffer(ctx context.Context) FramebufferId {
249 id := FramebufferId(newUnusedID(ctx, 'F', func(x uint32) bool { return !t.c.Objects().Framebuffers().Get(FramebufferId(x)).IsNil() }))
250 tmp := t.AllocData(ctx, id)
251 t.doAndUndo(ctx,
252 t.cb.GlGenFramebuffers(1, tmp.Ptr()).AddWrite(tmp.Data()),
253 t.cb.GlDeleteFramebuffers(1, tmp.Ptr()).AddRead(tmp.Data()))
254 return id
255}
256
257func (t *tweaker) glGenTexture(ctx context.Context) TextureId {
258 id := TextureId(newUnusedID(ctx, 'T', func(x uint32) bool { return !t.c.Objects().Textures().Get(TextureId(x)).IsNil() }))

Callers 3

copyDepthToColorGLESFunction · 0.80
addMethod · 0.80
postFBDataFunction · 0.80

Calls 9

AllocDataMethod · 0.95
doAndUndoMethod · 0.95
PtrMethod · 0.80
newUnusedIDFunction · 0.70
GetMethod · 0.65
DataMethod · 0.65
IsNilMethod · 0.45
AddWriteMethod · 0.45
AddReadMethod · 0.45

Tested by

no test coverage detected