mirror of https://github.com/bkaradzic/bgfx
Updated IDL.
This commit is contained in:
parent
008a5cdf7e
commit
9a3e653efe
|
@ -2202,6 +2202,7 @@ func.setState
|
||||||
--- - `BGFX_STATE_PT_[TRISTRIP/LINES/POINTS]` - Primitive type.
|
--- - `BGFX_STATE_PT_[TRISTRIP/LINES/POINTS]` - Primitive type.
|
||||||
.rgba "uint32_t" --- Sets blend factor used by `BGFX_STATE_BLEND_FACTOR` and
|
.rgba "uint32_t" --- Sets blend factor used by `BGFX_STATE_BLEND_FACTOR` and
|
||||||
--- `BGFX_STATE_BLEND_INV_FACTOR` blend modes.
|
--- `BGFX_STATE_BLEND_INV_FACTOR` blend modes.
|
||||||
|
{ default = 0 }
|
||||||
|
|
||||||
--- Set condition for rendering.
|
--- Set condition for rendering.
|
||||||
func.setCondition
|
func.setCondition
|
||||||
|
@ -2215,6 +2216,7 @@ func.setStencil
|
||||||
.fstencil "uint32_t" --- Front stencil state.
|
.fstencil "uint32_t" --- Front stencil state.
|
||||||
.bstencil "uint32_t" --- Back stencil state. If back is set to `BGFX_STENCIL_NONE`
|
.bstencil "uint32_t" --- Back stencil state. If back is set to `BGFX_STENCIL_NONE`
|
||||||
--- _fstencil is applied to both front and back facing primitives.
|
--- _fstencil is applied to both front and back facing primitives.
|
||||||
|
{ default = "BGFX_STENCIL_NONE" }
|
||||||
|
|
||||||
--- Set scissor for draw primitive.
|
--- Set scissor for draw primitive.
|
||||||
---
|
---
|
||||||
|
@ -2236,6 +2238,7 @@ func.setScissor
|
||||||
func.setScissor { cname = "set_scissor_cached" }
|
func.setScissor { cname = "set_scissor_cached" }
|
||||||
"void"
|
"void"
|
||||||
.cache "uint16_t" --- Index in scissor cache.
|
.cache "uint16_t" --- Index in scissor cache.
|
||||||
|
{ default = UINT16_MAX }
|
||||||
|
|
||||||
--- Set model matrix for draw primitive. If it is not called,
|
--- Set model matrix for draw primitive. If it is not called,
|
||||||
--- the model will be rendered with an identity model matrix.
|
--- the model will be rendered with an identity model matrix.
|
||||||
|
@ -2250,6 +2253,7 @@ func.setTransform { cname = "set_transform_cached" }
|
||||||
"void"
|
"void"
|
||||||
.cache "uint32_t" --- Index in matrix cache.
|
.cache "uint32_t" --- Index in matrix cache.
|
||||||
.num "uint16_t" --- Number of matrices from cache.
|
.num "uint16_t" --- Number of matrices from cache.
|
||||||
|
{ default = 1 }
|
||||||
|
|
||||||
--- Reserve matrices in internal matrix cache.
|
--- Reserve matrices in internal matrix cache.
|
||||||
---
|
---
|
||||||
|
@ -2267,6 +2271,7 @@ func.setUniform
|
||||||
.value "const void*" --- Pointer to uniform data.
|
.value "const void*" --- Pointer to uniform data.
|
||||||
.num "uint16_t" --- Number of elements. Passing `UINT16_MAX` will
|
.num "uint16_t" --- Number of elements. Passing `UINT16_MAX` will
|
||||||
--- use the _num passed on uniform creation.
|
--- use the _num passed on uniform creation.
|
||||||
|
{ default = 1 }
|
||||||
|
|
||||||
--- Set index buffer for draw primitive.
|
--- Set index buffer for draw primitive.
|
||||||
func.setIndexBuffer { cpponly }
|
func.setIndexBuffer { cpponly }
|
||||||
|
@ -2403,15 +2408,15 @@ func.setInstanceCount
|
||||||
--- Set texture stage for draw primitive.
|
--- Set texture stage for draw primitive.
|
||||||
func.setTexture
|
func.setTexture
|
||||||
"void"
|
"void"
|
||||||
.stage "uint8_t" --- Texture unit.
|
.stage "uint8_t" --- Texture unit.
|
||||||
.sampler "UniformHandle" --- Program sampler.
|
.sampler "UniformHandle" --- Program sampler.
|
||||||
.handle "TextureHandle" --- Texture handle.
|
.handle "TextureHandle" --- Texture handle.
|
||||||
.flags "uint32_t" --- Texture sampling mode. Default value UINT32_MAX uses
|
.flags "uint32_t" --- Texture sampling mode. Default value UINT32_MAX uses
|
||||||
--- texture sampling settings from the texture.
|
{ default = UINT32_MAX } --- texture sampling settings from the texture.
|
||||||
--- - `BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP]` - Mirror or clamp to edge wrap
|
--- - `BGFX_SAMPLER_[U/V/W]_[MIRROR/CLAMP]` - Mirror or clamp to edge wrap
|
||||||
--- mode.
|
--- mode.
|
||||||
--- - `BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic
|
--- - `BGFX_SAMPLER_[MIN/MAG/MIP]_[POINT/ANISOTROPIC]` - Point or anisotropic
|
||||||
--- sampling.
|
--- sampling.
|
||||||
|
|
||||||
--- Submit an empty primitive for rendering. Uniforms and draw state
|
--- Submit an empty primitive for rendering. Uniforms and draw state
|
||||||
--- will be applied but no geometry will be submitted.
|
--- will be applied but no geometry will be submitted.
|
||||||
|
@ -2429,7 +2434,9 @@ func.submit
|
||||||
.id "ViewId" --- View id.
|
.id "ViewId" --- View id.
|
||||||
.program "ProgramHandle" --- Program.
|
.program "ProgramHandle" --- Program.
|
||||||
.depth "uint32_t" --- Depth for sorting.
|
.depth "uint32_t" --- Depth for sorting.
|
||||||
|
{ default = 0 }
|
||||||
.preserveState "bool" --- Preserve internal draw state for next draw call submit.
|
.preserveState "bool" --- Preserve internal draw state for next draw call submit.
|
||||||
|
{ default = false }
|
||||||
|
|
||||||
--- Submit primitive with occlusion query for rendering.
|
--- Submit primitive with occlusion query for rendering.
|
||||||
func.submit { cname = "submit_occlusion_query" }
|
func.submit { cname = "submit_occlusion_query" }
|
||||||
|
@ -2438,7 +2445,9 @@ func.submit { cname = "submit_occlusion_query" }
|
||||||
.program "ProgramHandle" --- Program.
|
.program "ProgramHandle" --- Program.
|
||||||
.occlusionQuery "OcclusionQueryHandle" --- Occlusion query.
|
.occlusionQuery "OcclusionQueryHandle" --- Occlusion query.
|
||||||
.depth "uint32_t" --- Depth for sorting.
|
.depth "uint32_t" --- Depth for sorting.
|
||||||
|
{ default = 0 }
|
||||||
.preserveState "bool" --- Preserve internal draw state for next draw call submit.
|
.preserveState "bool" --- Preserve internal draw state for next draw call submit.
|
||||||
|
{ default = false }
|
||||||
|
|
||||||
--- Submit primitive for rendering with index and instance data info from
|
--- Submit primitive for rendering with index and instance data info from
|
||||||
--- indirect buffer.
|
--- indirect buffer.
|
||||||
|
@ -2448,9 +2457,13 @@ func.submit { cname = "submit_indirect" }
|
||||||
.program "ProgramHandle" --- Program.
|
.program "ProgramHandle" --- Program.
|
||||||
.indirectHandle "IndirectBufferHandle" --- Indirect buffer.
|
.indirectHandle "IndirectBufferHandle" --- Indirect buffer.
|
||||||
.start "uint16_t" --- First element in indirect buffer.
|
.start "uint16_t" --- First element in indirect buffer.
|
||||||
|
{ default = 0 }
|
||||||
.num "uint16_t" --- Number of dispatches.
|
.num "uint16_t" --- Number of dispatches.
|
||||||
|
{ default = 1 }
|
||||||
.depth "uint32_t" --- Depth for sorting.
|
.depth "uint32_t" --- Depth for sorting.
|
||||||
|
{ default = 0 }
|
||||||
.preserveState "bool" --- Preserve internal draw state for next draw call submit.
|
.preserveState "bool" --- Preserve internal draw state for next draw call submit.
|
||||||
|
{ default = false }
|
||||||
|
|
||||||
--- Set compute index buffer.
|
--- Set compute index buffer.
|
||||||
func.setBuffer { cname = "set_compute_index_buffer" }
|
func.setBuffer { cname = "set_compute_index_buffer" }
|
||||||
|
@ -2490,11 +2503,12 @@ func.setBuffer { cname = "set_compute_indirect_buffer" }
|
||||||
--- Set compute image from texture.
|
--- Set compute image from texture.
|
||||||
func.setImage
|
func.setImage
|
||||||
"void"
|
"void"
|
||||||
.stage "uint8_t" --- Compute stage.
|
.stage "uint8_t" --- Compute stage.
|
||||||
.handle "TextureHandle" --- Texture handle.
|
.handle "TextureHandle" --- Texture handle.
|
||||||
.mip "uint8_t" --- Mip level.
|
.mip "uint8_t" --- Mip level.
|
||||||
.access "Access::Enum" --- Image access. See `Access::Enum`.
|
.access "Access::Enum" --- Image access. See `Access::Enum`.
|
||||||
.format "TextureFormat::Enum" { default = "TextureFormat::Count" } --- Texture format. See: `TextureFormat::Enum`.
|
.format "TextureFormat::Enum" --- Texture format. See: `TextureFormat::Enum`.
|
||||||
|
{ default = "TextureFormat::Count" }
|
||||||
|
|
||||||
--- Dispatch compute.
|
--- Dispatch compute.
|
||||||
func.dispatch
|
func.dispatch
|
||||||
|
@ -2502,8 +2516,11 @@ func.dispatch
|
||||||
.id "ViewId" --- View id.
|
.id "ViewId" --- View id.
|
||||||
.program "ProgramHandle" --- Compute program.
|
.program "ProgramHandle" --- Compute program.
|
||||||
.numX "uint32_t" --- Number of groups X.
|
.numX "uint32_t" --- Number of groups X.
|
||||||
|
{ deafult = 1 }
|
||||||
.numY "uint32_t" --- Number of groups Y.
|
.numY "uint32_t" --- Number of groups Y.
|
||||||
|
{ deafult = 1 }
|
||||||
.numZ "uint32_t" --- Number of groups Z.
|
.numZ "uint32_t" --- Number of groups Z.
|
||||||
|
{ deafult = 1 }
|
||||||
|
|
||||||
--- Dispatch compute indirect.
|
--- Dispatch compute indirect.
|
||||||
func.dispatch { cname = "dispatch_indirect" }
|
func.dispatch { cname = "dispatch_indirect" }
|
||||||
|
@ -2512,7 +2529,9 @@ func.dispatch { cname = "dispatch_indirect" }
|
||||||
.program "ProgramHandle" --- Compute program.
|
.program "ProgramHandle" --- Compute program.
|
||||||
.indirectHandle "IndirectBufferHandle" --- Indirect buffer.
|
.indirectHandle "IndirectBufferHandle" --- Indirect buffer.
|
||||||
.start "uint16_t" --- First element in indirect buffer.
|
.start "uint16_t" --- First element in indirect buffer.
|
||||||
|
{ deafult = 0 }
|
||||||
.num "uint16_t" --- Number of dispatches.
|
.num "uint16_t" --- Number of dispatches.
|
||||||
|
{ deafult = 1 }
|
||||||
|
|
||||||
--- Discard all previously set state for draw or compute call.
|
--- Discard all previously set state for draw or compute call.
|
||||||
func.discard
|
func.discard
|
||||||
|
|
Loading…
Reference in New Issue