gpu/command_buffer/build_cmd_buffer_lib.py
def WriteImmediateCmdComputeSize(self, _func, f):
    """Writes the size computation code for the immediate version of a cmd."""
    f.write("  static uint32_t ComputeSize(uint32_t size_in_bytes) {\n")
    f.write("    return static_cast<uint32_t>(\n")
    f.write("        sizeof(ValueType) +  // NOLINT\n")
    f.write("        RoundSizeToMultipleOfEntries(size_in_bytes));\n")
    f.write("  }\n")
    f.write("\n")
Writes the size computation code for the immediate version of a cmd.
Writes the size computation code for the immediate version of a cmd.
Writes the size computation code for the immediate version of a cmd .
def WriteImmediateCmdComputeSize(self, _func, f):
    f.write("  static uint32_t ComputeSize(uint32_t size_in_bytes) {\n")
    f.write("    return static_cast<uint32_t>(\n")
    f.write("        sizeof(ValueType) +  // NOLINT\n")
    f.write("        RoundSizeToMultipleOfEntries(size_in_bytes));\n")
    f.write("  }\n")
    f.write("\n")
def WriteImmediateCmdComputeSize ( self , _func , f ) : f . write ( "  static uint32_t ComputeSize(uint32_t size_in_bytes) {\n" ) f . write ( "    return static_cast<uint32_t>(\n" ) f . write ( "        sizeof(ValueType) +  // NOLINT\n" ) f . write ( "        RoundSizeToMultipleOfEntries(size_in_bytes));\n" ) f . write ( "  }\n" ) f . write ( "\n" )
Writes the size computation code for the immediate version of a cmd.
Writes the size computation code for the immediate version of a cmd .
"""Writes the size computation code for the immediate version of a cmd."""
self
_func
f