Skip to content

Commit

Permalink
Removed non-existing C++ overloads from IDL.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkaradzic committed Jun 20, 2023
1 parent 02e67ff commit 6c8700d
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 38 deletions.
4 changes: 2 additions & 2 deletions bindings/bf/bgfx.bf
Original file line number Diff line number Diff line change
Expand Up @@ -3870,7 +3870,7 @@ public static class bgfx
///
/// <param name="_handle">Vertex buffer.</param>
/// <param name="_startVertex">First instance data.</param>
/// <param name="_num">Number of data instances. Set instance data buffer for draw primitive.</param>
/// <param name="_num">Number of data instances.</param>
///
[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);
Expand Down Expand Up @@ -4448,7 +4448,7 @@ public static class bgfx
///
/// <param name="_handle">Vertex buffer.</param>
/// <param name="_startVertex">First instance data.</param>
/// <param name="_num">Number of data instances. Set instance data buffer for draw primitive.</param>
/// <param name="_num">Number of data instances.</param>
///
[LinkName("bgfx_set_instance_data_from_vertex_buffer")]
public static extern void set_instance_data_from_vertex_buffer(VertexBufferHandle _handle, uint32 _startVertex, uint32 _num);
Expand Down
4 changes: 2 additions & 2 deletions bindings/cs/bgfx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3827,7 +3827,7 @@ public struct VertexLayoutHandle {
///
/// <param name="_handle">Vertex buffer.</param>
/// <param name="_startVertex">First instance data.</param>
/// <param name="_num">Number of data instances. Set instance data buffer for draw primitive.</param>
/// <param name="_num">Number of data instances.</param>
///
[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);
Expand Down Expand Up @@ -4405,7 +4405,7 @@ public struct VertexLayoutHandle {
///
/// <param name="_handle">Vertex buffer.</param>
/// <param name="_startVertex">First instance data.</param>
/// <param name="_num">Number of data instances. Set instance data buffer for draw primitive.</param>
/// <param name="_num">Number of data instances.</param>
///
[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);
Expand Down
4 changes: 0 additions & 4 deletions bindings/d/funcs.d
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion bindings/d/types.d
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
6 changes: 3 additions & 3 deletions bindings/zig/bgfx.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1700,7 +1700,7 @@ pub const Init = extern struct {
/// Set instance data buffer for draw primitive.
/// <param name="_handle">Vertex buffer.</param>
/// <param name="_startVertex">First instance data.</param>
/// <param name="_num">Number of data instances. Set instance data buffer for draw primitive.</param>
/// <param name="_num">Number of data instances.</param>
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);
}
Expand Down Expand Up @@ -3067,7 +3067,7 @@ extern fn bgfx_encoder_set_instance_data_buffer(self: ?*Encoder, _idb: [*c]const
/// Set instance data buffer for draw primitive.
/// <param name="_handle">Vertex buffer.</param>
/// <param name="_startVertex">First instance data.</param>
/// <param name="_num">Number of data instances. Set instance data buffer for draw primitive.</param>
/// <param name="_num">Number of data instances.</param>
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.
Expand Down Expand Up @@ -3498,7 +3498,7 @@ extern fn bgfx_set_instance_data_buffer(_idb: [*c]const InstanceDataBuffer, _sta
/// Set instance data buffer for draw primitive.
/// <param name="_handle">Vertex buffer.</param>
/// <param name="_startVertex">First instance data.</param>
/// <param name="_num">Number of data instances. Set instance data buffer for draw primitive.</param>
/// <param name="_num">Number of data instances.</param>
pub inline fn setInstanceDataFromVertexBuffer(_handle: VertexBufferHandle, _startVertex: u32, _num: u32) void {
return bgfx_set_instance_data_from_vertex_buffer(_handle, _startVertex, _num);
}
Expand Down
2 changes: 0 additions & 2 deletions include/bgfx/c99/bgfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion include/bgfx/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
22 changes: 1 addition & 21 deletions scripts/bgfx.idl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- vim: syntax=lua
-- bgfx interface

version(120)
version(121)

typedef "bool"
typedef "char"
Expand Down Expand Up @@ -2375,23 +2375,13 @@ 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"
.handle "VertexBufferHandle" --- Vertex buffer.
.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"
Expand Down Expand Up @@ -2955,23 +2945,13 @@ 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"
.handle "VertexBufferHandle" --- 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"
Expand Down
4 changes: 2 additions & 2 deletions src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
*
*/

#define BGFX_REV_NUMBER 8495
#define BGFX_REV_SHA1 "498c34273b59b957504c82fe396595a75dcfb3b0"
#define BGFX_REV_NUMBER 8496
#define BGFX_REV_SHA1 "02e67ff4044888df55ad8a8043673f0ce320c9c7"

0 comments on commit 6c8700d

Please sign in to comment.