Use 32-bit arguments for indirect draw APIs.

This commit is contained in:
Бранимир Караџић
2024-01-26 20:18:24 -08:00
parent f421348760
commit b927f9e187
11 changed files with 72 additions and 72 deletions

View File

@@ -1,7 +1,7 @@
-- vim: syntax=lua
-- bgfx interface
version(124)
version(125)
typedef "bool"
typedef "char"
@@ -2467,9 +2467,9 @@ func.Encoder.submit { cname = "submit_indirect" }
.id "ViewId" --- View id.
.program "ProgramHandle" --- Program.
.indirectHandle "IndirectBufferHandle" --- Indirect buffer.
.start "uint16_t" --- First element in indirect buffer.
.start "uint32_t" --- First element in indirect buffer.
{ default = 0 }
.num "uint16_t" --- Number of draws.
.num "uint32_t" --- Number of draws.
{ default = 1 }
.depth "uint32_t" --- Depth for sorting.
{ default = 0 }
@@ -2486,7 +2486,7 @@ func.Encoder.submit { cname = "submit_indirect_count" }
.id "ViewId" --- View id.
.program "ProgramHandle" --- Program.
.indirectHandle "IndirectBufferHandle" --- Indirect buffer.
.start "uint16_t" --- First element in indirect buffer.
.start "uint32_t" --- First element in indirect buffer.
.numHandle "IndexBufferHandle" --- Buffer for number of draws. Must be
--- created with `BGFX_BUFFER_INDEX32` and `BGFX_BUFFER_DRAW_INDIRECT`.
.numIndex "uint32_t" --- Element in number buffer.
@@ -2563,9 +2563,9 @@ func.Encoder.dispatch { cname = "dispatch_indirect" }
.id "ViewId" --- View id.
.program "ProgramHandle" --- Compute program.
.indirectHandle "IndirectBufferHandle" --- Indirect buffer.
.start "uint16_t" --- First element in indirect buffer.
.start "uint32_t" --- First element in indirect buffer.
{ default = 0 }
.num "uint16_t" --- Number of dispatches.
.num "uint32_t" --- Number of dispatches.
{ default = 1 }
.flags "uint8_t" --- Discard or preserve states. See `BGFX_DISCARD_*`.
{ default = "BGFX_DISCARD_ALL" }
@@ -3037,9 +3037,9 @@ func.submit { cname = "submit_indirect" }
.id "ViewId" --- View id.
.program "ProgramHandle" --- Program.
.indirectHandle "IndirectBufferHandle" --- Indirect buffer.
.start "uint16_t" --- First element in indirect buffer.
.start "uint32_t" --- First element in indirect buffer.
{ default = 0 }
.num "uint16_t" --- Number of draws.
.num "uint32_t" --- Number of draws.
{ default = 1 }
.depth "uint32_t" --- Depth for sorting.
{ default = 0 }
@@ -3056,7 +3056,7 @@ func.submit { cname = "submit_indirect_count" }
.id "ViewId" --- View id.
.program "ProgramHandle" --- Program.
.indirectHandle "IndirectBufferHandle" --- Indirect buffer.
.start "uint16_t" --- First element in indirect buffer.
.start "uint32_t" --- First element in indirect buffer.
.numHandle "IndexBufferHandle" --- Buffer for number of draws. Must be
--- created with `BGFX_BUFFER_INDEX32` and `BGFX_BUFFER_DRAW_INDIRECT`.
.numIndex "uint32_t" --- Element in number buffer.