diff --git a/bindings/cs/bgfx.cs b/bindings/cs/bgfx.cs index 2825de7fe..bafab8937 100644 --- a/bindings/cs/bgfx.cs +++ b/bindings/cs/bgfx.cs @@ -891,24 +891,6 @@ internal struct bgfx [DllImport(DllName, EntryPoint="bgfx_vertex_decl_end", CallingConvention = CallingConvention.Cdecl)] internal static extern unsafe void vertex_decl_end(VertexDecl* _this); - /// - /// Returns relative attribute offset from the vertex. - /// - [DllImport(DllName, EntryPoint="bgfx_vertex_decl_get_offset", CallingConvention = CallingConvention.Cdecl)] - internal static extern unsafe ushort vertex_decl_get_offset(VertexDecl* _this, Attrib _attrib); - - /// - /// Returns vertex stride. - /// - [DllImport(DllName, EntryPoint="bgfx_vertex_decl_get_stride", CallingConvention = CallingConvention.Cdecl)] - internal static extern unsafe ushort vertex_decl_get_stride(VertexDecl* _this); - - /// - /// Returns size of vertex buffer for number of vertices. - /// - [DllImport(DllName, EntryPoint="bgfx_vertex_decl_get_size", CallingConvention = CallingConvention.Cdecl)] - internal static extern unsafe uint vertex_decl_get_size(VertexDecl* _this, uint _num); - /// /// Pack vertex attribute into vertex stream format. /// @@ -1662,72 +1644,36 @@ internal struct bgfx [DllImport(DllName, EntryPoint="bgfx_encoder_set_uniform", CallingConvention = CallingConvention.Cdecl)] internal static extern unsafe void encoder_set_uniform(Encoder* _this, UniformHandle _handle, void* _value, ushort _num); - /// - /// Set index buffer for draw primitive. - /// - [DllImport(DllName, EntryPoint="bgfx_encoder_set_index_buffer", CallingConvention = CallingConvention.Cdecl)] - internal static extern unsafe void encoder_set_index_buffer(Encoder* _this, IndexBufferHandle _handle); - /// /// Set index buffer for draw primitive. /// [DllImport(DllName, EntryPoint="bgfx_encoder_set_index_buffer", CallingConvention = CallingConvention.Cdecl)] internal static extern unsafe void encoder_set_index_buffer(Encoder* _this, IndexBufferHandle _handle, uint _firstIndex, uint _numIndices); - /// - /// Set index buffer for draw primitive. - /// - [DllImport(DllName, EntryPoint="bgfx_encoder_set_index_buffer", CallingConvention = CallingConvention.Cdecl)] - internal static extern unsafe void encoder_set_index_buffer(Encoder* _this, DynamicIndexBufferHandle _handle); - /// /// Set index buffer for draw primitive. /// [DllImport(DllName, EntryPoint="bgfx_encoder_set_dynamic_index_buffer", CallingConvention = CallingConvention.Cdecl)] internal static extern unsafe void encoder_set_dynamic_index_buffer(Encoder* _this, DynamicIndexBufferHandle _handle, uint _firstIndex, uint _numIndices); - /// - /// Set index buffer for draw primitive. - /// - [DllImport(DllName, EntryPoint="bgfx_encoder_set_index_buffer", CallingConvention = CallingConvention.Cdecl)] - internal static extern unsafe void encoder_set_index_buffer(Encoder* _this, TransientIndexBuffer* _tib); - /// /// Set index buffer for draw primitive. /// [DllImport(DllName, EntryPoint="bgfx_encoder_set_transient_index_buffer", CallingConvention = CallingConvention.Cdecl)] internal static extern unsafe void encoder_set_transient_index_buffer(Encoder* _this, TransientIndexBuffer* _tib, uint _firstIndex, uint _numIndices); - /// - /// Set vertex buffer for draw primitive. - /// - [DllImport(DllName, EntryPoint="bgfx_encoder_set_vertex_buffer", CallingConvention = CallingConvention.Cdecl)] - internal static extern unsafe void encoder_set_vertex_buffer(Encoder* _this, byte _stream, VertexBufferHandle _handle); - /// /// Set vertex buffer for draw primitive. /// [DllImport(DllName, EntryPoint="bgfx_encoder_set_vertex_buffer", CallingConvention = CallingConvention.Cdecl)] internal static extern unsafe void encoder_set_vertex_buffer(Encoder* _this, byte _stream, VertexBufferHandle _handle, uint _startVertex, uint _numVertices, VertexDeclHandle _declHandle); - /// - /// Set vertex buffer for draw primitive. - /// - [DllImport(DllName, EntryPoint="bgfx_encoder_set_vertex_buffer", CallingConvention = CallingConvention.Cdecl)] - internal static extern unsafe void encoder_set_vertex_buffer(Encoder* _this, byte _stream, DynamicVertexBufferHandle _handle); - /// /// Set vertex buffer for draw primitive. /// [DllImport(DllName, EntryPoint="bgfx_encoder_set_dynamic_vertex_buffer", CallingConvention = CallingConvention.Cdecl)] internal static extern unsafe void encoder_set_dynamic_vertex_buffer(Encoder* _this, byte _stream, DynamicVertexBufferHandle _handle, uint _startVertex, uint _numVertices, VertexDeclHandle _declHandle); - /// - /// Set vertex buffer for draw primitive. - /// - [DllImport(DllName, EntryPoint="bgfx_encoder_set_vertex_buffer", CallingConvention = CallingConvention.Cdecl)] - internal static extern unsafe void encoder_set_vertex_buffer(Encoder* _this, byte _stream, TransientVertexBuffer* _tvb); - /// /// Set vertex buffer for draw primitive. /// @@ -1742,33 +1688,18 @@ internal struct bgfx [DllImport(DllName, EntryPoint="bgfx_encoder_set_vertex_count", CallingConvention = CallingConvention.Cdecl)] internal static extern unsafe void encoder_set_vertex_count(Encoder* _this, uint _numVertices); - /// - /// Set instance data buffer for draw primitive. - /// - [DllImport(DllName, EntryPoint="bgfx_encoder_set_instance_data_buffer", CallingConvention = CallingConvention.Cdecl)] - internal static extern unsafe void encoder_set_instance_data_buffer(Encoder* _this, InstanceDataBuffer* _idb); - /// /// Set instance data buffer for draw primitive. /// [DllImport(DllName, EntryPoint="bgfx_encoder_set_instance_data_buffer", CallingConvention = CallingConvention.Cdecl)] internal static extern unsafe void encoder_set_instance_data_buffer(Encoder* _this, InstanceDataBuffer* _idb, uint _start, uint _num); - /// - /// Set instance data buffer for draw primitive. - /// - [DllImport(DllName, EntryPoint="bgfx_encoder_set_instance_data_buffer", CallingConvention = CallingConvention.Cdecl)] - internal static extern unsafe void encoder_set_instance_data_buffer(Encoder* _this, VertexBufferHandle _handle); - /// /// Set instance data buffer for draw primitive. /// [DllImport(DllName, EntryPoint="bgfx_encoder_set_instance_data_from_vertex_buffer", CallingConvention = CallingConvention.Cdecl)] internal static extern unsafe void encoder_set_instance_data_from_vertex_buffer(Encoder* _this, VertexBufferHandle _handle, uint _startVertex, uint _num); - [DllImport(DllName, EntryPoint="bgfx_encoder_set_instance_data_buffer", CallingConvention = CallingConvention.Cdecl)] - internal static extern unsafe void encoder_set_instance_data_buffer(Encoder* _this, DynamicVertexBufferHandle _handle); - /// /// Set instance data buffer for draw primitive. /// @@ -1871,14 +1802,6 @@ internal struct bgfx [DllImport(DllName, EntryPoint="bgfx_encoder_discard", CallingConvention = CallingConvention.Cdecl)] internal static extern unsafe void encoder_discard(Encoder* _this); - /// - /// Blit 2D texture region between two 2D textures. - /// @attention Destination texture must be created with `BGFX_TEXTURE_BLIT_DST` flag. - /// @attention Availability depends on: `BGFX_CAPS_TEXTURE_BLIT`. - /// - [DllImport(DllName, EntryPoint="bgfx_encoder_blit", CallingConvention = CallingConvention.Cdecl)] - internal static extern unsafe void encoder_blit(Encoder* _this, ushort _id, TextureHandle _dst, ushort _dstX, ushort _dstY, TextureHandle _src, ushort _srcX, ushort _srcY, ushort _width, ushort _height); - /// /// Blit 2D texture region between two 2D textures. /// @attention Destination texture must be created with `BGFX_TEXTURE_BLIT_DST` flag. @@ -2035,72 +1958,36 @@ internal struct bgfx [DllImport(DllName, EntryPoint="bgfx_set_uniform", CallingConvention = CallingConvention.Cdecl)] internal static extern unsafe void set_uniform(UniformHandle _handle, void* _value, ushort _num); - /// - /// Set index buffer for draw primitive. - /// - [DllImport(DllName, EntryPoint="bgfx_set_index_buffer", CallingConvention = CallingConvention.Cdecl)] - internal static extern unsafe void set_index_buffer(IndexBufferHandle _handle); - /// /// Set index buffer for draw primitive. /// [DllImport(DllName, EntryPoint="bgfx_set_index_buffer", CallingConvention = CallingConvention.Cdecl)] internal static extern unsafe void set_index_buffer(IndexBufferHandle _handle, uint _firstIndex, uint _numIndices); - /// - /// Set index buffer for draw primitive. - /// - [DllImport(DllName, EntryPoint="bgfx_set_index_buffer", CallingConvention = CallingConvention.Cdecl)] - internal static extern unsafe void set_index_buffer(DynamicIndexBufferHandle _handle); - /// /// Set index buffer for draw primitive. /// [DllImport(DllName, EntryPoint="bgfx_set_dynamic_index_buffer", CallingConvention = CallingConvention.Cdecl)] internal static extern unsafe void set_dynamic_index_buffer(DynamicIndexBufferHandle _handle, uint _firstIndex, uint _numIndices); - /// - /// Set index buffer for draw primitive. - /// - [DllImport(DllName, EntryPoint="bgfx_set_index_buffer", CallingConvention = CallingConvention.Cdecl)] - internal static extern unsafe void set_index_buffer(TransientIndexBuffer* _tib); - /// /// Set index buffer for draw primitive. /// [DllImport(DllName, EntryPoint="bgfx_set_transient_index_buffer", CallingConvention = CallingConvention.Cdecl)] internal static extern unsafe void set_transient_index_buffer(TransientIndexBuffer* _tib, uint _firstIndex, uint _numIndices); - /// - /// Set vertex buffer for draw primitive. - /// - [DllImport(DllName, EntryPoint="bgfx_set_vertex_buffer", CallingConvention = CallingConvention.Cdecl)] - internal static extern unsafe void set_vertex_buffer(byte _stream, VertexBufferHandle _handle); - /// /// Set vertex buffer for draw primitive. /// [DllImport(DllName, EntryPoint="bgfx_set_vertex_buffer", CallingConvention = CallingConvention.Cdecl)] internal static extern unsafe void set_vertex_buffer(byte _stream, VertexBufferHandle _handle, uint _startVertex, uint _numVertices); - /// - /// Set vertex buffer for draw primitive. - /// - [DllImport(DllName, EntryPoint="bgfx_set_vertex_buffer", CallingConvention = CallingConvention.Cdecl)] - internal static extern unsafe void set_vertex_buffer(byte _stream, DynamicVertexBufferHandle _handle); - /// /// Set vertex buffer for draw primitive. /// [DllImport(DllName, EntryPoint="bgfx_set_dynamic_vertex_buffer", CallingConvention = CallingConvention.Cdecl)] internal static extern unsafe void set_dynamic_vertex_buffer(byte _stream, DynamicVertexBufferHandle _handle, uint _startVertex, uint _numVertices); - /// - /// Set vertex buffer for draw primitive. - /// - [DllImport(DllName, EntryPoint="bgfx_set_vertex_buffer", CallingConvention = CallingConvention.Cdecl)] - internal static extern unsafe void set_vertex_buffer(byte _stream, TransientVertexBuffer* _tvb); - /// /// Set vertex buffer for draw primitive. /// @@ -2115,33 +2002,18 @@ internal struct bgfx [DllImport(DllName, EntryPoint="bgfx_set_vertex_count", CallingConvention = CallingConvention.Cdecl)] internal static extern unsafe void set_vertex_count(uint _numVertices); - /// - /// Set instance data buffer for draw primitive. - /// - [DllImport(DllName, EntryPoint="bgfx_set_instance_data_buffer", CallingConvention = CallingConvention.Cdecl)] - internal static extern unsafe void set_instance_data_buffer(InstanceDataBuffer* _idb); - /// /// Set instance data buffer for draw primitive. /// [DllImport(DllName, EntryPoint="bgfx_set_instance_data_buffer", CallingConvention = CallingConvention.Cdecl)] internal static extern unsafe void set_instance_data_buffer(InstanceDataBuffer* _idb, uint _start, uint _num); - /// - /// Set instance data buffer for draw primitive. - /// - [DllImport(DllName, EntryPoint="bgfx_set_instance_data_buffer", CallingConvention = CallingConvention.Cdecl)] - internal static extern unsafe void set_instance_data_buffer(VertexBufferHandle _handle); - /// /// Set instance data buffer for draw primitive. /// [DllImport(DllName, EntryPoint="bgfx_set_instance_data_from_vertex_buffer", CallingConvention = CallingConvention.Cdecl)] internal static extern unsafe void set_instance_data_from_vertex_buffer(VertexBufferHandle _handle, uint _startVertex, uint _num); - [DllImport(DllName, EntryPoint="bgfx_set_instance_data_buffer", CallingConvention = CallingConvention.Cdecl)] - internal static extern unsafe void set_instance_data_buffer(DynamicVertexBufferHandle _handle); - /// /// Set instance data buffer for draw primitive. /// @@ -2244,14 +2116,6 @@ internal struct bgfx [DllImport(DllName, EntryPoint="bgfx_discard", CallingConvention = CallingConvention.Cdecl)] internal static extern unsafe void discard(); - /// - /// Blit 2D texture region between two 2D textures. - /// @attention Destination texture must be created with `BGFX_TEXTURE_BLIT_DST` flag. - /// @attention Availability depends on: `BGFX_CAPS_TEXTURE_BLIT`. - /// - [DllImport(DllName, EntryPoint="bgfx_blit", CallingConvention = CallingConvention.Cdecl)] - internal static extern unsafe void blit(ushort _id, TextureHandle _dst, ushort _dstX, ushort _dstY, TextureHandle _src, ushort _srcX, ushort _srcY, ushort _width, ushort _height); - /// /// Blit 2D texture region between two 2D textures. /// @attention Destination texture must be created with `BGFX_TEXTURE_BLIT_DST` flag. diff --git a/scripts/bindings-cs.lua b/scripts/bindings-cs.lua index d10e75208..a26f8af45 100644 --- a/scripts/bindings-cs.lua +++ b/scripts/bindings-cs.lua @@ -276,6 +276,10 @@ end function converter.funcs(func) + if func.cpponly then + return + end + if func.comments ~= nil then yield("/// ") for _, line in ipairs(func.comments) do