gpu/command_buffer/build_cmd_buffer_lib.py
def GetValidClientSideCmdArg(self, func):
    """Gets a valid value for this argument."""
    valid_arg = func.GetValidArg(self)
    if valid_arg != None:
      return valid_arg

    valid = self.named_type.GetValidValues()
    if valid:
      return valid[0]

    try:
      index = func.GetOriginalArgs().index(self)
      return str(index + 1)
    except ValueError:
      pass
    index = func.GetCmdArgs().index(self)
    return str(index + 1)
Gets a valid value for this argument.
Gets a valid value for this argument.
Gets a valid value for this argument .
def GetValidClientSideCmdArg(self, func):
    valid_arg = func.GetValidArg(self)
    if valid_arg != None:
      return valid_arg
    valid = self.named_type.GetValidValues()
    if valid:
      return valid[0]
    try:
      index = func.GetOriginalArgs().index(self)
      return str(index + 1)
    except ValueError:
      pass
    index = func.GetCmdArgs().index(self)
    return str(index + 1)
def GetValidClientSideCmdArg ( self , func ) : valid_arg = func . GetValidArg ( self ) if valid_arg != None : return valid_arg valid = self . named_type . GetValidValues ( ) if valid : return valid [ 0 ] try : index = func . GetOriginalArgs ( ) . index ( self ) return str ( index + 1 ) except ValueError : pass index = func . GetCmdArgs ( ) . index ( self ) return str ( index + 1 )
Gets a valid value for this argument.
Gets a valid value for this argument .
"""Gets a valid value for this argument."""
self
func