GPUCommandList

from acron._rplight import GPUCommandList
class GPUCommandList

Bases:

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

digraph inheritance42d89fcad7 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "GPUCommandList" [URL="acron._rplight.GPUCommandList.html#acron._rplight.GPUCommandList",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "GPUCommandList" [arrowsize=0.75,style=""]; }
__init__()

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

add_command()

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

get_num_commands()

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

property num_commands → int

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

write_commands_to()

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.