# {py:mod}`simvx.graphics.renderer.gpu_batch` ```{py:module} simvx.graphics.renderer.gpu_batch ``` ```{autodoc2-docstring} simvx.graphics.renderer.gpu_batch :allowtitles: ``` ## Module Contents ### Classes ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`GPUBatch ` - ```{autodoc2-docstring} simvx.graphics.renderer.gpu_batch.GPUBatch :summary: ``` ```` ### Data ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`log ` - ```{autodoc2-docstring} simvx.graphics.renderer.gpu_batch.log :summary: ``` * - {py:obj}`__all__ ` - ```{autodoc2-docstring} simvx.graphics.renderer.gpu_batch.__all__ :summary: ``` ```` ### API ````{py:data} log :canonical: simvx.graphics.renderer.gpu_batch.log :value: > 'getLogger(...)' ```{autodoc2-docstring} simvx.graphics.renderer.gpu_batch.log ``` ```` ````{py:data} __all__ :canonical: simvx.graphics.renderer.gpu_batch.__all__ :value: > ['GPUBatch'] ```{autodoc2-docstring} simvx.graphics.renderer.gpu_batch.__all__ ``` ```` `````{py:class} GPUBatch(device: typing.Any, physical_device: typing.Any, max_draws: int = 1000, *, use_mdi: bool = True) :canonical: simvx.graphics.renderer.gpu_batch.GPUBatch ```{autodoc2-docstring} simvx.graphics.renderer.gpu_batch.GPUBatch ``` ```{rubric} Initialization ``` ```{autodoc2-docstring} simvx.graphics.renderer.gpu_batch.GPUBatch.__init__ ``` ````{py:method} add_draw(index_count: int, instance_count: int = 1, first_index: int = 0, vertex_offset: int = 0, first_instance: int = 0) -> int :canonical: simvx.graphics.renderer.gpu_batch.GPUBatch.add_draw ```{autodoc2-docstring} simvx.graphics.renderer.gpu_batch.GPUBatch.add_draw ``` ```` ````{py:method} add_draws(index_count: int, first_instances: numpy.ndarray | list[int]) -> int :canonical: simvx.graphics.renderer.gpu_batch.GPUBatch.add_draws ```{autodoc2-docstring} simvx.graphics.renderer.gpu_batch.GPUBatch.add_draws ``` ```` ````{py:method} upload() -> None :canonical: simvx.graphics.renderer.gpu_batch.GPUBatch.upload ```{autodoc2-docstring} simvx.graphics.renderer.gpu_batch.GPUBatch.upload ``` ```` ````{py:method} draw(cmd: typing.Any) -> None :canonical: simvx.graphics.renderer.gpu_batch.GPUBatch.draw ```{autodoc2-docstring} simvx.graphics.renderer.gpu_batch.GPUBatch.draw ``` ```` ````{py:method} draw_range(cmd: typing.Any, offset: int, count: int) -> None :canonical: simvx.graphics.renderer.gpu_batch.GPUBatch.draw_range ```{autodoc2-docstring} simvx.graphics.renderer.gpu_batch.GPUBatch.draw_range ``` ```` ````{py:method} reset() -> None :canonical: simvx.graphics.renderer.gpu_batch.GPUBatch.reset ```{autodoc2-docstring} simvx.graphics.renderer.gpu_batch.GPUBatch.reset ``` ```` ````{py:method} destroy() -> None :canonical: simvx.graphics.renderer.gpu_batch.GPUBatch.destroy ```{autodoc2-docstring} simvx.graphics.renderer.gpu_batch.GPUBatch.destroy ``` ```` `````