diff --git a/docs/backends.rst b/docs/backends.rst index dbee99f0..4d45eac5 100644 --- a/docs/backends.rst +++ b/docs/backends.rst @@ -183,6 +183,7 @@ The first two require that you enable the feature ``"multi-draw-indirect"``. .. py:function:: wgpu.backends.wgpu_native.multi_draw_indexed_indirect(render_pass_encoder, buffer, *, offset=0, count): Equivalent to:: + for i in range(count): render_pass_encoder.draw_indexed_indirect(buffer, offset + i * 2-) @@ -202,6 +203,7 @@ an unsigned 32-bit integer. The ``count`` is the minimum of this value and ``max .. py:function:: wgpu.backends.wgpu_native.multi_draw_indirect_count(render_pass_encoder, buffer, *, offset=0, count_buffer, count_offset=0, max_count): Equivalent to:: + count = min(, max_count) for i in range(count): render_pass_encoder.draw_indirect(buffer, offset + i * 16)