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

Method declareBufferFuncs

gapil/compiler/buffer.go:19–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17import "github.com/google/gapid/core/codegen"
18
19func (c *C) declareBufferFuncs() {
20 // Note these function names are intentionally different from those declared
21 // in runtime.h. These are reimplemented by the compiler so they can be
22 // inlined.
23 c.buf.init = c.M.Function(c.T.Void, "gapil_init_buffer", c.T.CtxPtr, c.T.BufPtr, c.T.Uint32).
24 Inline().
25 LinkPrivate()
26
27 c.buf.term = c.M.Function(c.T.Void, "gapil_term_buffer", c.T.BufPtr).
28 Inline().
29 LinkPrivate()
30
31 c.buf.append = c.M.Function(c.T.Void, "gapil_apnd_buffer", c.T.BufPtr, c.T.Uint32, c.T.VoidPtr).
32 Inline().
33 LinkPrivate()
34}
35
36func (c *C) buildBufferFuncs() {
37 c.Build(c.buf.init, func(s *S) {

Callers 1

compileMethod · 0.95

Calls 3

InlineMethod · 0.80
LinkPrivateMethod · 0.45
FunctionMethod · 0.45

Tested by

no test coverage detected