From 0c2f902238010903388b7d9a3af00979340eff2c Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Tue, 13 Aug 2024 13:18:24 +1000 Subject: add debug draw bbox and add topology to draw calls --- src/ral/ral_impl.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/ral/ral_impl.h') diff --git a/src/ral/ral_impl.h b/src/ral/ral_impl.h index 2ca75d6..3374d91 100644 --- a/src/ral/ral_impl.h +++ b/src/ral/ral_impl.h @@ -80,8 +80,11 @@ void GPU_EncodeSetDefaults(GPU_CmdEncoder* encoder); PUB void GPU_EncodeSetVertexBuffer(GPU_CmdEncoder* encoder, BufferHandle buf); PUB void GPU_EncodeSetIndexBuffer(GPU_CmdEncoder* encoder, BufferHandle buf); -PUB void GPU_EncodeDraw(GPU_CmdEncoder* encoder, u64 count); -PUB void GPU_EncodeDrawIndexed(GPU_CmdEncoder* encoder, u64 index_count); +PUB void GPU_EncodeDraw(GPU_CmdEncoder* encoder, PrimitiveTopology topology, u64 count); +PUB void GPU_EncodeDrawIndexed(GPU_CmdEncoder* encoder, PrimitiveTopology topology, u64 index_count); +// convenience versions of the above +PUB void GPU_EncodeDrawTris(GPU_CmdEncoder* encoder, u64 count); +PUB void GPU_EncodeDrawIndexedTris(GPU_CmdEncoder* encoder, u64 index_count); PUB void GPU_EncodeDrawInstanced(GPU_CmdEncoder* encoder, u64 index_count, u64 instance_count); // TODO: implement instanced rendering -- cgit v1.2.3-70-g09d2