Updated IDL.

This commit is contained in:
Бранимир Караџић 2019-03-09 23:21:50 -08:00
parent 008a5cdf7e
commit 9a3e653efe
1 changed files with 33 additions and 14 deletions

View File

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