panda3d._rplight.GPUCommandList

class GPUCommandList

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__() → None

This constructs a new GPUCommandList. By default, there are no commands in the list.

__init__(param0: GPUCommandList) → None
addCommand(cmd: GPUCommand) → None

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

getNumCommands() → size_t

This returns the amount of commands which are currently stored in this list, and are waiting to get processed.

Return type

size_t

writeCommandsTo(dest: PTA_uchar, limit: size_t) → size_t

This takes the first #limit commands, and writes them to the destination using GPUCommand.writeTo(). See GPUCommand.writeTo() 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.

Return type

size_t

property num_commands

This returns the amount of commands which are currently stored in this list, and are waiting to get processed.

Return type

size_t