gpu/command_buffer/build_cmd_buffer_lib.py
def WriteHandlerDeferReadWrite(self, func, f):
    """Writes the code to handle deferring reads or writes."""
    defer_draws = func.GetInfo('defer_draws')
    defer_reads = func.GetInfo('defer_reads')
    if defer_draws or defer_reads:
      f.write("  error::Error error;\n")
    if defer_draws:
      f.write("  error = WillAccessBoundFramebufferForDraw();\n")
      f.write("  if (error != error::kNoError)\n")
      f.write("    return error;\n")
    if defer_reads:
      f.write("  error = WillAccessBoundFramebufferForRead();\n")
      f.write("  if (error != error::kNoError)\n")
      f.write("    return error;\n")
Writes the code to handle deferring reads or writes.
Writes the code to handle deferring reads or writes.
Writes the code to handle deferring reads or writes .
def WriteHandlerDeferReadWrite(self, func, f):
    defer_draws = func.GetInfo('defer_draws')
    defer_reads = func.GetInfo('defer_reads')
    if defer_draws or defer_reads:
      f.write("  error::Error error;\n")
    if defer_draws:
      f.write("  error = WillAccessBoundFramebufferForDraw();\n")
      f.write("  if (error != error::kNoError)\n")
      f.write("    return error;\n")
    if defer_reads:
      f.write("  error = WillAccessBoundFramebufferForRead();\n")
      f.write("  if (error != error::kNoError)\n")
      f.write("    return error;\n")
def WriteHandlerDeferReadWrite ( self , func , f ) : defer_draws = func . GetInfo ( 'defer_draws' ) defer_reads = func . GetInfo ( 'defer_reads' ) if defer_draws or defer_reads : f . write ( "  error::Error error;\n" ) if defer_draws : f . write ( "  error = WillAccessBoundFramebufferForDraw();\n" ) f . write ( "  if (error != error::kNoError)\n" ) f . write ( "    return error;\n" ) if defer_reads : f . write ( "  error = WillAccessBoundFramebufferForRead();\n" ) f . write ( "  if (error != error::kNoError)\n" ) f . write ( "    return error;\n" )
Writes the code to handle deferring reads or writes.
Writes the code to handle deferring reads or writes .
"""Writes the code to handle deferring reads or writes."""
self
func
f