GPUCommandList

from panda3d._rplight import GPUCommandList
class GPUCommandList

Bases: DTOOL_SUPER_BASE

This is a class to store a list of GPUCommands. It provides functionality to only provide the a given amount of commands at one time.

Inheritance diagram

Inheritance diagram of GPUCommandList

__init__(*args, **kwargs)
addCommand()

C++ Interface: add_command(const GPUCommandList self, const GPUCommand cmd)

/**
  • @brief Pushes a GPUCommand to the command list.

  • @details This adds a new GPUCommand to the list of commands to be processed.

  • @param cmd The command to add

*/

add_command()

C++ Interface: add_command(const GPUCommandList self, const GPUCommand cmd)

/**
  • @brief Pushes a GPUCommand to the command list.

  • @details This adds a new GPUCommand to the list of commands to be processed.

  • @param cmd The command to add

*/

getNumCommands()

C++ Interface: get_num_commands(GPUCommandList self)

/**
  • @brief Returns the number of commands in this list.

  • @details This returns the amount of commands which are currently stored in this

  • list, and are waiting to get processed.

  • @return Amount of commands

*/

get_num_commands()

C++ Interface: get_num_commands(GPUCommandList self)

/**
  • @brief Returns the number of commands in this list.

  • @details This returns the amount of commands which are currently stored in this

  • list, and are waiting to get processed.

  • @return Amount of commands

*/

num_commands
writeCommandsTo()

C++ Interface: write_commands_to(const GPUCommandList self, const PointerToArray dest, int limit)

/**
  • @brief Writes the first n-commands to a destination.

  • @details This takes the first #limit commands, and writes them to the

  • destination using GPUCommand::write_to. See GPUCommand::write_to for

  • further information about #dest. The limit controls after how much

  • commands the processing will be stopped. All commands which got processed

  • will get removed from the list.

  • @param dest Destination to write to, see GPUCommand::write_to

  • @param limit Maximum amount of commands to process

  • @return Amount of commands processed, between 0 and #limit.

*/

write_commands_to()

C++ Interface: write_commands_to(const GPUCommandList self, const PointerToArray dest, int limit)

/**
  • @brief Writes the first n-commands to a destination.

  • @details This takes the first #limit commands, and writes them to the

  • destination using GPUCommand::write_to. See GPUCommand::write_to for

  • further information about #dest. The limit controls after how much

  • commands the processing will be stopped. All commands which got processed

  • will get removed from the list.

  • @param dest Destination to write to, see GPUCommand::write_to

  • @param limit Maximum amount of commands to process

  • @return Amount of commands processed, between 0 and #limit.

*/