gpu/command_buffer/build_cmd_buffer_lib.py
def WriteCmdSet(self, f):
    """Writes the cmd's Set function."""
    copy_args = self.MakeCmdArgString("_", False)
    f.write("  void* Set(void* cmd%s) {\n" %
               self.MakeTypedCmdArgString("_", True))
    f.write("    static_cast<ValueType*>(cmd)->Init(%s);\n" % copy_args)
    f.write("    return NextCmdAddress<ValueType>(cmd);\n")
    f.write("  }\n")
    f.write("\n")
Writes the cmd's Set function.
Writes the cmd's Set function.
Writes the cmd ' s Set function .
def WriteCmdSet(self, f):
    copy_args = self.MakeCmdArgString("_", False)
    f.write("  void* Set(void* cmd%s) {\n" %
               self.MakeTypedCmdArgString("_", True))
    f.write("    static_cast<ValueType*>(cmd)->Init(%s);\n" % copy_args)
    f.write("    return NextCmdAddress<ValueType>(cmd);\n")
    f.write("  }\n")
    f.write("\n")
def WriteCmdSet ( self , f ) : copy_args = self . MakeCmdArgString ( "_" , False ) f . write ( "  void* Set(void* cmd%s) {\n" % self . MakeTypedCmdArgString ( "_" , True ) ) f . write ( "    static_cast<ValueType*>(cmd)->Init(%s);\n" % copy_args ) f . write ( "    return NextCmdAddress<ValueType>(cmd);\n" ) f . write ( "  }\n" ) f . write ( "\n" )
Writes the cmd's Set function.
Writes the cmd ' s Set function .
"""Writes the cmd's Set function."""
self
f