Updated bindings. (#3611)

This commit is contained in:
Branimir Karadžić
2026-02-28 00:10:19 -08:00
committed by GitHub
parent 7600e5e0eb
commit 874a013bf0
8 changed files with 8 additions and 26 deletions

View File

@@ -2215,7 +2215,7 @@ public static class bgfx
public uint32 maxEncoders;
public uint32 minResourceCbSize;
public uint32 maxTransientVbSize;
public uint32 maxTansientIbSize;
public uint32 maxTransientIbSize;
public uint32 minUniformBufferSize;
}

View File

@@ -1463,7 +1463,7 @@ struct CapsLimits
// Maximum transient vertex buffer size.
uint maxTransientVbSize;
// Maximum transient index buffer size.
uint maxTansientIbSize;
uint maxTransientIbSize;
// Mimimum uniform buffer size.
uint minUniformBufferSize;
}

View File

@@ -2194,7 +2194,7 @@ public static partial class bgfx
public uint maxEncoders;
public uint minResourceCbSize;
public uint maxTransientVbSize;
public uint maxTansientIbSize;
public uint maxTransientIbSize;
public uint minUniformBufferSize;
}

View File

@@ -1065,7 +1065,7 @@ extern(C++, "bgfx") struct Caps{
uint maxEncoders; ///Maximum number of encoder threads.
uint minResourceCBSize; ///Minimum resource command buffer size.
uint maxTransientVBSize; ///Maximum transient vertex buffer size.
uint maxTansientIBSize; ///Maximum transient index buffer size.
uint maxTransientIBSize; ///Maximum transient index buffer size.
uint minUniformBufferSize; ///Mimimum uniform buffer size.
}

View File

@@ -1388,7 +1388,7 @@ pub const Caps = extern struct {
maxEncoders: u32,
minResourceCbSize: u32,
maxTransientVbSize: u32,
maxTansientIbSize: u32,
maxTransientIbSize: u32,
minUniformBufferSize: u32,
};

View File

@@ -576,7 +576,7 @@ typedef struct bgfx_caps_limits_s
uint32_t maxEncoders; /** Maximum number of encoder threads. */
uint32_t minResourceCbSize; /** Minimum resource command buffer size. */
uint32_t maxTransientVbSize; /** Maximum transient vertex buffer size. */
uint32_t maxTansientIbSize; /** Maximum transient index buffer size. */
uint32_t maxTransientIbSize; /** Maximum transient index buffer size. */
uint32_t minUniformBufferSize; /** Mimimum uniform buffer size. */
} bgfx_caps_limits_t;
@@ -1181,7 +1181,7 @@ BGFX_C_API void bgfx_topology_sort_tri_list(bgfx_topology_sort_t _sort, void* _d
* Returns supported backend API renderers.
*
* @param[in] _max Maximum number of elements in _enum array.
* @param[inout] _enum Array where supported renderers will be written.
* @param[in,out] _enum Array where supported renderers will be written.
*
* @returns Number of supported renderers.
*

View File

@@ -152,7 +152,6 @@
*
*/
#define BGFX_STATE_RESERVED_SHIFT 61
#define BGFX_STATE_RESERVED_MASK UINT64_C(0xe000000000000000)
/**
@@ -160,7 +159,6 @@
*
*/
#define BGFX_STENCIL_FUNC_REF_SHIFT 0
#define BGFX_STENCIL_FUNC_REF_MASK UINT32_C(0x000000ff)
#define BGFX_STENCIL_FUNC_REF(v) ( ( (uint32_t)(v)<<BGFX_STENCIL_FUNC_REF_SHIFT )&BGFX_STENCIL_FUNC_REF_MASK)
@@ -169,7 +167,6 @@
*
*/
#define BGFX_STENCIL_FUNC_RMASK_SHIFT 8
#define BGFX_STENCIL_FUNC_RMASK_MASK UINT32_C(0x0000ff00)
#define BGFX_STENCIL_FUNC_RMASK(v) ( ( (uint32_t)(v)<<BGFX_STENCIL_FUNC_RMASK_SHIFT )&BGFX_STENCIL_FUNC_RMASK_MASK)
@@ -287,14 +284,12 @@
#define BGFX_BUFFER_COMPUTE_FORMAT_32X2 UINT16_C(0x0008) //!< 2 x 32-bit values
#define BGFX_BUFFER_COMPUTE_FORMAT_32X4 UINT16_C(0x0009) //!< 4 x 32-bit values
#define BGFX_BUFFER_COMPUTE_FORMAT_SHIFT 0
#define BGFX_BUFFER_COMPUTE_FORMAT_MASK UINT16_C(0x000f)
#define BGFX_BUFFER_COMPUTE_TYPE_INT UINT16_C(0x0010) //!< Type `int`.
#define BGFX_BUFFER_COMPUTE_TYPE_UINT UINT16_C(0x0020) //!< Type `uint`.
#define BGFX_BUFFER_COMPUTE_TYPE_FLOAT UINT16_C(0x0030) //!< Type `float`.
#define BGFX_BUFFER_COMPUTE_TYPE_SHIFT 4
#define BGFX_BUFFER_COMPUTE_TYPE_MASK UINT16_C(0x0030)
#define BGFX_BUFFER_NONE UINT16_C(0x0000)
@@ -323,12 +318,10 @@
#define BGFX_TEXTURE_RT_MSAA_X8 UINT64_C(0x0000004000000000) //!< Render target MSAAx8 mode.
#define BGFX_TEXTURE_RT_MSAA_X16 UINT64_C(0x0000005000000000) //!< Render target MSAAx16 mode.
#define BGFX_TEXTURE_RT_MSAA_SHIFT 36
#define BGFX_TEXTURE_RT_MSAA_MASK UINT64_C(0x0000007000000000)
#define BGFX_TEXTURE_RT_WRITE_ONLY UINT64_C(0x0000008000000000) //!< Render target will be used for writing
#define BGFX_TEXTURE_RT_SHIFT 36
#define BGFX_TEXTURE_RT_MASK UINT64_C(0x000000f000000000)
/**
@@ -339,38 +332,32 @@
#define BGFX_SAMPLER_U_CLAMP UINT32_C(0x00000002) //!< Wrap U mode: Clamp
#define BGFX_SAMPLER_U_BORDER UINT32_C(0x00000003) //!< Wrap U mode: Border
#define BGFX_SAMPLER_U_SHIFT 0
#define BGFX_SAMPLER_U_MASK UINT32_C(0x00000003)
#define BGFX_SAMPLER_V_MIRROR UINT32_C(0x00000004) //!< Wrap V mode: Mirror
#define BGFX_SAMPLER_V_CLAMP UINT32_C(0x00000008) //!< Wrap V mode: Clamp
#define BGFX_SAMPLER_V_BORDER UINT32_C(0x0000000c) //!< Wrap V mode: Border
#define BGFX_SAMPLER_V_SHIFT 2
#define BGFX_SAMPLER_V_MASK UINT32_C(0x0000000c)
#define BGFX_SAMPLER_W_MIRROR UINT32_C(0x00000010) //!< Wrap W mode: Mirror
#define BGFX_SAMPLER_W_CLAMP UINT32_C(0x00000020) //!< Wrap W mode: Clamp
#define BGFX_SAMPLER_W_BORDER UINT32_C(0x00000030) //!< Wrap W mode: Border
#define BGFX_SAMPLER_W_SHIFT 4
#define BGFX_SAMPLER_W_MASK UINT32_C(0x00000030)
#define BGFX_SAMPLER_MIN_POINT UINT32_C(0x00000040) //!< Min sampling mode: Point
#define BGFX_SAMPLER_MIN_ANISOTROPIC UINT32_C(0x00000080) //!< Min sampling mode: Anisotropic
#define BGFX_SAMPLER_MIN_SHIFT 6
#define BGFX_SAMPLER_MIN_MASK UINT32_C(0x000000c0)
#define BGFX_SAMPLER_MAG_POINT UINT32_C(0x00000100) //!< Mag sampling mode: Point
#define BGFX_SAMPLER_MAG_ANISOTROPIC UINT32_C(0x00000200) //!< Mag sampling mode: Anisotropic
#define BGFX_SAMPLER_MAG_SHIFT 8
#define BGFX_SAMPLER_MAG_MASK UINT32_C(0x00000300)
#define BGFX_SAMPLER_MIP_POINT UINT32_C(0x00000400) //!< Mip sampling mode: Point
#define BGFX_SAMPLER_MIP_SHIFT 10
#define BGFX_SAMPLER_MIP_MASK UINT32_C(0x00000400)
#define BGFX_SAMPLER_COMPARE_LESS UINT32_C(0x00010000) //!< Compare when sampling depth texture: less.
@@ -382,16 +369,13 @@
#define BGFX_SAMPLER_COMPARE_NEVER UINT32_C(0x00070000) //!< Compare when sampling depth texture: never.
#define BGFX_SAMPLER_COMPARE_ALWAYS UINT32_C(0x00080000) //!< Compare when sampling depth texture: always.
#define BGFX_SAMPLER_COMPARE_SHIFT 16
#define BGFX_SAMPLER_COMPARE_MASK UINT32_C(0x000f0000)
#define BGFX_SAMPLER_BORDER_COLOR_SHIFT 24
#define BGFX_SAMPLER_BORDER_COLOR_MASK UINT32_C(0x0f000000)
#define BGFX_SAMPLER_BORDER_COLOR(v) ( ( (uint32_t)(v)<<BGFX_SAMPLER_BORDER_COLOR_SHIFT )&BGFX_SAMPLER_BORDER_COLOR_MASK)
#define BGFX_SAMPLER_RESERVED_SHIFT 28
#define BGFX_SAMPLER_RESERVED_MASK UINT32_C(0xf0000000)
#define BGFX_SAMPLER_NONE UINT32_C(0x00000000)
@@ -436,7 +420,6 @@
#define BGFX_RESET_MSAA_X8 UINT32_C(0x00000030) //!< Enable 8x MSAA.
#define BGFX_RESET_MSAA_X16 UINT32_C(0x00000040) //!< Enable 16x MSAA.
#define BGFX_RESET_MSAA_SHIFT 4
#define BGFX_RESET_MSAA_MASK UINT32_C(0x00000070)
#define BGFX_RESET_NONE UINT32_C(0x00000000) //!< No reset flags.
@@ -457,7 +440,6 @@
#define BGFX_RESET_TRANSPARENT_BACKBUFFER UINT32_C(0x00100000) //!< Transparent backbuffer. Availability depends on: `BGFX_CAPS_TRANSPARENT_BACKBUFFER`.
#define BGFX_RESET_FULLSCREEN_SHIFT 0
#define BGFX_RESET_FULLSCREEN_MASK UINT32_C(0x00000001)
#define BGFX_RESET_RESERVED_SHIFT 31 //!< Internal bit shift

View File

@@ -881,7 +881,7 @@ local function text_with_comments(items, item, cstyle, is_classmember, name_alig
else
if cstyle then
text = string.format("%s %s/** %s%s */",
text, namealign(text, comment_align), item.comment[1], namealign(item.comment[1], 40))
text, namealign(text, 40), item.comment[1], namealign(item.comment[1], 40))
else
local comment_col = math.max(#text + 1, comment_align)
local padding = string.rep(" ", comment_col - #text)