diff --git a/bindings/bf/bgfx.bf b/bindings/bf/bgfx.bf index b51d52a90..e010c4969 100644 --- a/bindings/bf/bgfx.bf +++ b/bindings/bf/bgfx.bf @@ -3870,7 +3870,7 @@ public static class bgfx /// /// Vertex buffer. /// First instance data. - /// Number of data instances. Set instance data buffer for draw primitive. + /// Number of data instances. /// [LinkName("bgfx_encoder_set_instance_data_from_vertex_buffer")] public static extern void encoder_set_instance_data_from_vertex_buffer(Encoder* _this, VertexBufferHandle _handle, uint32 _startVertex, uint32 _num); @@ -4448,7 +4448,7 @@ public static class bgfx /// /// Vertex buffer. /// First instance data. - /// Number of data instances. Set instance data buffer for draw primitive. + /// Number of data instances. /// [LinkName("bgfx_set_instance_data_from_vertex_buffer")] public static extern void set_instance_data_from_vertex_buffer(VertexBufferHandle _handle, uint32 _startVertex, uint32 _num); diff --git a/bindings/cs/bgfx.cs b/bindings/cs/bgfx.cs index f9847b3f2..7f0a1ba89 100644 --- a/bindings/cs/bgfx.cs +++ b/bindings/cs/bgfx.cs @@ -3827,7 +3827,7 @@ public static partial class bgfx /// /// Vertex buffer. /// First instance data. - /// Number of data instances. Set instance data buffer for draw primitive. + /// Number of data instances. /// [DllImport(DllName, EntryPoint="bgfx_encoder_set_instance_data_from_vertex_buffer", CallingConvention = CallingConvention.Cdecl)] public static extern unsafe void encoder_set_instance_data_from_vertex_buffer(Encoder* _this, VertexBufferHandle _handle, uint _startVertex, uint _num); @@ -4405,7 +4405,7 @@ public static partial class bgfx /// /// Vertex buffer. /// First instance data. - /// Number of data instances. Set instance data buffer for draw primitive. + /// Number of data instances. /// [DllImport(DllName, EntryPoint="bgfx_set_instance_data_from_vertex_buffer", CallingConvention = CallingConvention.Cdecl)] public static extern unsafe void set_instance_data_from_vertex_buffer(VertexBufferHandle _handle, uint _startVertex, uint _num); diff --git a/bindings/d/funcs.d b/bindings/d/funcs.d index 561556ba5..624414700 100644 --- a/bindings/d/funcs.d +++ b/bindings/d/funcs.d @@ -1455,7 +1455,6 @@ version(BindBgfx_Static) * _handle = Vertex buffer. * _startVertex = First instance data. * _num = Number of data instances. - * Set instance data buffer for draw primitive. */ void bgfx_encoder_set_instance_data_from_vertex_buffer(bgfx_encoder_t* _this, bgfx_vertex_buffer_handle_t _handle, uint _startVertex, uint _num); @@ -1976,7 +1975,6 @@ version(BindBgfx_Static) * _handle = Vertex buffer. * _startVertex = First instance data. * _num = Number of data instances. - * Set instance data buffer for draw primitive. */ void bgfx_set_instance_data_from_vertex_buffer(bgfx_vertex_buffer_handle_t _handle, uint _startVertex, uint _num); @@ -3766,7 +3764,6 @@ else * _handle = Vertex buffer. * _startVertex = First instance data. * _num = Number of data instances. - * Set instance data buffer for draw primitive. */ alias da_bgfx_encoder_set_instance_data_from_vertex_buffer = void function(bgfx_encoder_t* _this, bgfx_vertex_buffer_handle_t _handle, uint _startVertex, uint _num); da_bgfx_encoder_set_instance_data_from_vertex_buffer bgfx_encoder_set_instance_data_from_vertex_buffer; @@ -4333,7 +4330,6 @@ else * _handle = Vertex buffer. * _startVertex = First instance data. * _num = Number of data instances. - * Set instance data buffer for draw primitive. */ alias da_bgfx_set_instance_data_from_vertex_buffer = void function(bgfx_vertex_buffer_handle_t _handle, uint _startVertex, uint _num); da_bgfx_set_instance_data_from_vertex_buffer bgfx_set_instance_data_from_vertex_buffer; diff --git a/bindings/d/types.d b/bindings/d/types.d index 0f7a20273..4fb8fe835 100644 --- a/bindings/d/types.d +++ b/bindings/d/types.d @@ -18,7 +18,7 @@ enum expandEnum(EnumType, string fqnEnumType = EnumType.stringof) = (){ extern(C) @nogc nothrow: -enum uint BGFX_API_VERSION = 120; +enum uint BGFX_API_VERSION = 121; alias bgfx_view_id_t = ushort; diff --git a/bindings/zig/bgfx.zig b/bindings/zig/bgfx.zig index cd71c84a0..04a1f9d54 100644 --- a/bindings/zig/bgfx.zig +++ b/bindings/zig/bgfx.zig @@ -1700,7 +1700,7 @@ pub const Init = extern struct { /// Set instance data buffer for draw primitive. /// Vertex buffer. /// First instance data. - /// Number of data instances. Set instance data buffer for draw primitive. + /// Number of data instances. pub inline fn setInstanceDataFromVertexBuffer(self: ?*Encoder, _handle: VertexBufferHandle, _startVertex: u32, _num: u32) void { return bgfx_encoder_set_instance_data_from_vertex_buffer(self, _handle, _startVertex, _num); } @@ -3067,7 +3067,7 @@ extern fn bgfx_encoder_set_instance_data_buffer(self: ?*Encoder, _idb: [*c]const /// Set instance data buffer for draw primitive. /// Vertex buffer. /// First instance data. -/// Number of data instances. Set instance data buffer for draw primitive. +/// Number of data instances. extern fn bgfx_encoder_set_instance_data_from_vertex_buffer(self: ?*Encoder, _handle: VertexBufferHandle, _startVertex: u32, _num: u32) void; /// Set instance data buffer for draw primitive. @@ -3498,7 +3498,7 @@ extern fn bgfx_set_instance_data_buffer(_idb: [*c]const InstanceDataBuffer, _sta /// Set instance data buffer for draw primitive. /// Vertex buffer. /// First instance data. -/// Number of data instances. Set instance data buffer for draw primitive. +/// Number of data instances. pub inline fn setInstanceDataFromVertexBuffer(_handle: VertexBufferHandle, _startVertex: u32, _num: u32) void { return bgfx_set_instance_data_from_vertex_buffer(_handle, _startVertex, _num); } diff --git a/include/bgfx/c99/bgfx.h b/include/bgfx/c99/bgfx.h index df5c6818a..cf2e9c283 100644 --- a/include/bgfx/c99/bgfx.h +++ b/include/bgfx/c99/bgfx.h @@ -2596,7 +2596,6 @@ BGFX_C_API void bgfx_encoder_set_instance_data_buffer(bgfx_encoder_t* _this, con * @param[in] _handle Vertex buffer. * @param[in] _startVertex First instance data. * @param[in] _num Number of data instances. - * Set instance data buffer for draw primitive. * */ BGFX_C_API void bgfx_encoder_set_instance_data_from_vertex_buffer(bgfx_encoder_t* _this, bgfx_vertex_buffer_handle_t _handle, uint32_t _startVertex, uint32_t _num); @@ -3180,7 +3179,6 @@ BGFX_C_API void bgfx_set_instance_data_buffer(const bgfx_instance_data_buffer_t* * @param[in] _handle Vertex buffer. * @param[in] _startVertex First instance data. * @param[in] _num Number of data instances. - * Set instance data buffer for draw primitive. * */ BGFX_C_API void bgfx_set_instance_data_from_vertex_buffer(bgfx_vertex_buffer_handle_t _handle, uint32_t _startVertex, uint32_t _num); diff --git a/include/bgfx/defines.h b/include/bgfx/defines.h index 38f12eea2..9dd91f842 100644 --- a/include/bgfx/defines.h +++ b/include/bgfx/defines.h @@ -15,7 +15,7 @@ #ifndef BGFX_DEFINES_H_HEADER_GUARD #define BGFX_DEFINES_H_HEADER_GUARD -#define BGFX_API_VERSION UINT32_C(120) +#define BGFX_API_VERSION UINT32_C(121) /** * Color RGB/alpha/depth write. When it's not specified write will be disabled. diff --git a/scripts/bgfx.idl b/scripts/bgfx.idl index 075c58828..dadf726a4 100644 --- a/scripts/bgfx.idl +++ b/scripts/bgfx.idl @@ -1,7 +1,7 @@ -- vim: syntax=lua -- bgfx interface -version(120) +version(121) typedef "bool" typedef "char" @@ -2375,11 +2375,6 @@ func.Encoder.setInstanceDataBuffer .start "uint32_t" --- First instance data. .num "uint32_t" --- Number of data instances. ---- Set instance data buffer for draw primitive. -func.Encoder.setInstanceDataBuffer { cpponly } - "void" - .handle "VertexBufferHandle" --- Vertex buffer. - --- Set instance data buffer for draw primitive. func.Encoder.setInstanceDataBuffer { cname = "set_instance_data_from_vertex_buffer" } "void" @@ -2387,11 +2382,6 @@ func.Encoder.setInstanceDataBuffer { cname = "set_instance_data_from_vertex_buff .startVertex "uint32_t" --- First instance data. .num "uint32_t" --- Number of data instances. - --- Set instance data buffer for draw primitive. -func.Encoder.setInstanceDataBuffer { cpponly } - "void" - .handle "DynamicVertexBufferHandle" --- Dynamic vertex buffer. - --- Set instance data buffer for draw primitive. func.Encoder.setInstanceDataBuffer { cname = "set_instance_data_from_dynamic_vertex_buffer" } "void" @@ -2955,11 +2945,6 @@ func.setInstanceDataBuffer .start "uint32_t" --- First instance data. .num "uint32_t" --- Number of data instances. ---- Set instance data buffer for draw primitive. -func.setInstanceDataBuffer { cpponly } - "void" - .handle "VertexBufferHandle" --- Vertex buffer. - --- Set instance data buffer for draw primitive. func.setInstanceDataBuffer { cname = "set_instance_data_from_vertex_buffer" } "void" @@ -2967,11 +2952,6 @@ func.setInstanceDataBuffer { cname = "set_instance_data_from_vertex_buffer" } .startVertex "uint32_t" --- First instance data. .num "uint32_t" --- Number of data instances. - --- Set instance data buffer for draw primitive. -func.setInstanceDataBuffer { cpponly } - "void" - .handle "DynamicVertexBufferHandle" --- Dynamic vertex buffer. - --- Set instance data buffer for draw primitive. func.setInstanceDataBuffer { cname = "set_instance_data_from_dynamic_vertex_buffer" } "void" diff --git a/src/version.h b/src/version.h index 660934cd0..c3e27f5ec 100644 --- a/src/version.h +++ b/src/version.h @@ -9,5 +9,5 @@ * */ -#define BGFX_REV_NUMBER 8495 -#define BGFX_REV_SHA1 "498c34273b59b957504c82fe396595a75dcfb3b0" +#define BGFX_REV_NUMBER 8496 +#define BGFX_REV_SHA1 "02e67ff4044888df55ad8a8043673f0ce320c9c7"