gpu/command_buffer/build_cmd_buffer_lib.py
def WriteImmediateCmdHelper(self, func, f):
    """Writes the cmd helper definition for the immediate version of a cmd."""
    code = """  void %(name)s(%(typed_args)s) {
    const uint32_t s = 0;
    %(lp)s::cmds::%(name)s* c =
        GetImmediateCmdSpaceTotalSize<%(lp)s::cmds::%(name)s>(s);
    if (c) {
      c->Init(%(args)s);
    }
  }

"""
    f.write(code % {
           "lp" : _lower_prefix,
           "name": func.name,
           "typed_args": func.MakeTypedCmdArgString(""),
           "args": func.MakeCmdArgString(""),
        })
Writes the cmd helper definition for the immediate version of a cmd.
Writes the cmd helper definition for the immediate version of a cmd.
Writes the cmd helper definition for the immediate version of a cmd .
def WriteImmediateCmdHelper(self, func, f):
    code = """  void %(name)s(%(typed_args)s) {
    const uint32_t s = 0;
    %(lp)s::cmds::%(name)s* c =
        GetImmediateCmdSpaceTotalSize<%(lp)s::cmds::%(name)s>(s);
    if (c) {
      c->Init(%(args)s);
    }
  }
"""
    f.write(code % {
           "lp" : _lower_prefix,
           "name": func.name,
           "typed_args": func.MakeTypedCmdArgString(""),
           "args": func.MakeCmdArgString(""),
        })
def WriteImmediateCmdHelper ( self , func , f ) : code = """  void %(name)s(%(typed_args)s) {
    const uint32_t s = 0;
    %(lp)s::cmds::%(name)s* c =
        GetImmediateCmdSpaceTotalSize<%(lp)s::cmds::%(name)s>(s);
    if (c) {
      c->Init(%(args)s);
    }
  }

""" f . write ( code % { "lp" : _lower_prefix , "name" : func . name , "typed_args" : func . MakeTypedCmdArgString ( "" ) , "args" : func . MakeCmdArgString ( "" ) , } )
Writes the cmd helper definition for the immediate version of a cmd.
Writes the cmd helper definition for the immediate version of a cmd .
"""Writes the cmd helper definition for the immediate version of a cmd."""
self
func
f