From 14426c32c9e637c01c7ff2263365d415bcd21baf Mon Sep 17 00:00:00 2001 From: Scott Campbell Date: Fri, 11 Jul 2025 17:34:54 +1000 Subject: [PATCH] Beef binding using int instead of int32 (#3440) * int32_t changed to int, should have been int32 * Update bgfx.bf from idl gen --- bindings/bf/bgfx.bf | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/bindings/bf/bgfx.bf b/bindings/bf/bgfx.bf index f520bc317..eefd6dad8 100644 --- a/bindings/bf/bgfx.bf +++ b/bindings/bf/bgfx.bf @@ -2282,8 +2282,8 @@ public static class bgfx public uint16 numVertexLayouts; public int64 textureMemoryUsed; public int64 rtMemoryUsed; - public int transientVbUsed; - public int transientIbUsed; + public int32 transientVbUsed; + public int32 transientIbUsed; public uint32[5] numPrims; public int64 gpuMemoryMax; public int64 gpuMemoryUsed; @@ -2761,7 +2761,7 @@ public static class bgfx /// Static index buffer name length (if length is INT32_MAX, it's expected that _name is zero terminated string. /// [LinkName("bgfx_set_index_buffer_name")] - public static extern void set_index_buffer_name(IndexBufferHandle _handle, char8* _name, int _len); + public static extern void set_index_buffer_name(IndexBufferHandle _handle, char8* _name, int32 _len); /// /// Destroy static index buffer. @@ -2810,7 +2810,7 @@ public static class bgfx /// Static vertex buffer name length (if length is INT32_MAX, it's expected that _name is zero terminated string. /// [LinkName("bgfx_set_vertex_buffer_name")] - public static extern void set_vertex_buffer_name(VertexBufferHandle _handle, char8* _name, int _len); + public static extern void set_vertex_buffer_name(VertexBufferHandle _handle, char8* _name, int32 _len); /// /// Destroy static vertex buffer. @@ -3033,7 +3033,7 @@ public static class bgfx /// Shader name length (if length is INT32_MAX, it's expected that _name is zero terminated string). /// [LinkName("bgfx_set_shader_name")] - public static extern void set_shader_name(ShaderHandle _handle, char8* _name, int _len); + public static extern void set_shader_name(ShaderHandle _handle, char8* _name, int32 _len); /// /// Destroy shader. @@ -3262,7 +3262,7 @@ public static class bgfx /// Texture name length (if length is INT32_MAX, it's expected that _name is zero terminated string. /// [LinkName("bgfx_set_texture_name")] - public static extern void set_texture_name(TextureHandle _handle, char8* _name, int _len); + public static extern void set_texture_name(TextureHandle _handle, char8* _name, int32 _len); /// /// Returns texture direct access pointer. @@ -3356,7 +3356,7 @@ public static class bgfx /// Frame buffer name length (if length is INT32_MAX, it's expected that _name is zero terminated string. /// [LinkName("bgfx_set_frame_buffer_name")] - public static extern void set_frame_buffer_name(FrameBufferHandle _handle, char8* _name, int _len); + public static extern void set_frame_buffer_name(FrameBufferHandle _handle, char8* _name, int32 _len); /// /// Obtain texture handle of frame buffer attachment. @@ -3444,7 +3444,7 @@ public static class bgfx /// Number of pixels that passed test. This argument can be `NULL` if result of occlusion query is not needed. /// [LinkName("bgfx_get_result")] - public static extern OcclusionQueryResult get_result(OcclusionQueryHandle _handle, int* _result); + public static extern OcclusionQueryResult get_result(OcclusionQueryHandle _handle, int32* _result); /// /// Destroy occlusion query. @@ -3504,7 +3504,7 @@ public static class bgfx /// View name length (if length is INT32_MAX, it's expected that _name is zero terminated string. /// [LinkName("bgfx_set_view_name")] - public static extern void set_view_name(ViewId _id, char8* _name, int _len); + public static extern void set_view_name(ViewId _id, char8* _name, int32 _len); /// /// Set view rectangle. Draw primitive outside view will be clipped. @@ -3661,7 +3661,7 @@ public static class bgfx /// Marker name length (if length is INT32_MAX, it's expected that _name is zero terminated string. /// [LinkName("bgfx_encoder_set_marker")] - public static extern void encoder_set_marker(Encoder* _this, char8* _name, int _len); + public static extern void encoder_set_marker(Encoder* _this, char8* _name, int32 _len); /// /// Set render states for draw primitive. @@ -4165,7 +4165,7 @@ public static class bgfx /// Timeout in milliseconds. /// [LinkName("bgfx_render_frame")] - public static extern RenderFrame render_frame(int _msecs); + public static extern RenderFrame render_frame(int32 _msecs); /// /// Set platform data. @@ -4230,7 +4230,7 @@ public static class bgfx /// Marker name length (if length is INT32_MAX, it's expected that _name is zero terminated string. /// [LinkName("bgfx_set_marker")] - public static extern void set_marker(char8* _name, int _len); + public static extern void set_marker(char8* _name, int32 _len); /// /// Set render states for draw primitive.