This commit is contained in:
Бранимир Караџић
2024-03-29 16:36:55 -07:00
parent 8ec4b71303
commit 2ad67a4dfd
15 changed files with 218 additions and 189 deletions

View File

@@ -3496,9 +3496,10 @@ public static class bgfx
///
/// <param name="_id">View id.</param>
/// <param name="_name">View name.</param>
/// <param name="_len">View name length (if length is INT32_MAX, it's expected that _name is zero terminated string.</param>
///
[LinkName("bgfx_set_view_name")]
public static extern void set_view_name(ViewId _id, char8* _name);
public static extern void set_view_name(ViewId _id, char8* _name, int _len);
/// <summary>
/// Set view rectangle. Draw primitive outside view will be clipped.
@@ -3651,10 +3652,11 @@ public static class bgfx
/// graphics debugging tools.
/// </summary>
///
/// <param name="_marker">Marker string.</param>
/// <param name="_name">Marker name.</param>
/// <param name="_len">Marker name length (if length is INT32_MAX, it's expected that _name is zero terminated string.</param>
///
[LinkName("bgfx_encoder_set_marker")]
public static extern void encoder_set_marker(Encoder* _this, char8* _marker);
public static extern void encoder_set_marker(Encoder* _this, char8* _name, int _len);
/// <summary>
/// Set render states for draw primitive.
@@ -4219,10 +4221,11 @@ public static class bgfx
/// graphics debugging tools.
/// </summary>
///
/// <param name="_marker">Marker string.</param>
/// <param name="_name">Marker name.</param>
/// <param name="_len">Marker name length (if length is INT32_MAX, it's expected that _name is zero terminated string.</param>
///
[LinkName("bgfx_set_marker")]
public static extern void set_marker(char8* _marker);
public static extern void set_marker(char8* _name, int _len);
/// <summary>
/// Set render states for draw primitive.

View File

@@ -3452,9 +3452,10 @@ public static partial class bgfx
///
/// <param name="_id">View id.</param>
/// <param name="_name">View name.</param>
/// <param name="_len">View name length (if length is INT32_MAX, it's expected that _name is zero terminated string.</param>
///
[DllImport(DllName, EntryPoint="bgfx_set_view_name", CallingConvention = CallingConvention.Cdecl)]
public static extern unsafe void set_view_name(ushort _id, [MarshalAs(UnmanagedType.LPStr)] string _name);
public static extern unsafe void set_view_name(ushort _id, [MarshalAs(UnmanagedType.LPStr)] string _name, int _len);
/// <summary>
/// Set view rectangle. Draw primitive outside view will be clipped.
@@ -3607,10 +3608,11 @@ public static partial class bgfx
/// graphics debugging tools.
/// </summary>
///
/// <param name="_marker">Marker string.</param>
/// <param name="_name">Marker name.</param>
/// <param name="_len">Marker name length (if length is INT32_MAX, it's expected that _name is zero terminated string.</param>
///
[DllImport(DllName, EntryPoint="bgfx_encoder_set_marker", CallingConvention = CallingConvention.Cdecl)]
public static extern unsafe void encoder_set_marker(Encoder* _this, [MarshalAs(UnmanagedType.LPStr)] string _marker);
public static extern unsafe void encoder_set_marker(Encoder* _this, [MarshalAs(UnmanagedType.LPStr)] string _name, int _len);
/// <summary>
/// Set render states for draw primitive.
@@ -4175,10 +4177,11 @@ public static partial class bgfx
/// graphics debugging tools.
/// </summary>
///
/// <param name="_marker">Marker string.</param>
/// <param name="_name">Marker name.</param>
/// <param name="_len">Marker name length (if length is INT32_MAX, it's expected that _name is zero terminated string.</param>
///
[DllImport(DllName, EntryPoint="bgfx_set_marker", CallingConvention = CallingConvention.Cdecl)]
public static extern unsafe void set_marker([MarshalAs(UnmanagedType.LPStr)] string _marker);
public static extern unsafe void set_marker([MarshalAs(UnmanagedType.LPStr)] string _name, int _len);
/// <summary>
/// Set render states for draw primitive.

View File

@@ -10,7 +10,7 @@ import bindbc.bgfx.config;
import bindbc.common.types: c_int64, c_uint64, va_list;
static import bgfx.fakeenum;
enum uint apiVersion = 126;
enum uint apiVersion = 127;
alias ViewID = ushort;
@@ -1386,9 +1386,11 @@ extern(C++, "bgfx") struct Encoder{
Sets a debug marker. This allows you to group graphics calls together for easy browsing in
graphics debugging tools.
Params:
marker = Marker string.
name = Marker name.
len = Marker name length (if length is INT32_MAX, it's expected
that _name is zero terminated string.
*/
{q{void}, q{setMarker}, q{const(char)* marker}, ext: `C++`},
{q{void}, q{setMarker}, q{const(char)* name, int len=int.max}, ext: `C++`},
/**
Set render states for draw primitive.
@@ -2872,8 +2874,10 @@ mixin(joinFnBinds((){
Params:
id = View id.
name = View name.
len = View name length (if length is INT32_MAX, it's expected
that _name is zero terminated string.
*/
{q{void}, q{setViewName}, q{ViewID id, const(char)* name}, ext: `C++, "bgfx"`},
{q{void}, q{setViewName}, q{ViewID id, const(char)* name, int len=int.max}, ext: `C++, "bgfx"`},
/**
* Set view rectangle. Draw primitive outside view will be clipped.
@@ -3084,9 +3088,11 @@ mixin(joinFnBinds((){
* Sets a debug marker. This allows you to group graphics calls together for easy browsing in
* graphics debugging tools.
Params:
marker = Marker string.
name = Marker name.
len = Marker name length (if length is INT32_MAX, it's expected
that _name is zero terminated string.
*/
{q{void}, q{setMarker}, q{const(char)* marker}, ext: `C++, "bgfx"`},
{q{void}, q{setMarker}, q{const(char)* name, int len=int.max}, ext: `C++, "bgfx"`},
/**
* Set render states for draw primitive.

View File

@@ -1549,9 +1549,10 @@ pub const Init = extern struct {
pub const Encoder = opaque {
/// Sets a debug marker. This allows you to group graphics calls together for easy browsing in
/// graphics debugging tools.
/// <param name="_marker">Marker string.</param>
pub inline fn setMarker(self: ?*Encoder, _marker: [*c]const u8) void {
return bgfx_encoder_set_marker(self, _marker);
/// <param name="_name">Marker name.</param>
/// <param name="_len">Marker name length (if length is INT32_MAX, it's expected that _name is zero terminated string.</param>
pub inline fn setMarker(self: ?*Encoder, _name: [*c]const u8, _len: i32) void {
return bgfx_encoder_set_marker(self, _name, _len);
}
/// Set render states for draw primitive.
/// @remarks
@@ -2811,10 +2812,11 @@ extern fn bgfx_set_palette_color_rgba8(_index: u8, _rgba: u32) void;
/// +------ view id
/// <param name="_id">View id.</param>
/// <param name="_name">View name.</param>
pub inline fn setViewName(_id: ViewId, _name: [*c]const u8) void {
return bgfx_set_view_name(_id, _name);
/// <param name="_len">View name length (if length is INT32_MAX, it's expected that _name is zero terminated string.</param>
pub inline fn setViewName(_id: ViewId, _name: [*c]const u8, _len: i32) void {
return bgfx_set_view_name(_id, _name, _len);
}
extern fn bgfx_set_view_name(_id: ViewId, _name: [*c]const u8) void;
extern fn bgfx_set_view_name(_id: ViewId, _name: [*c]const u8, _len: i32) void;
/// Set view rectangle. Draw primitive outside view will be clipped.
/// <param name="_id">View id.</param>
@@ -2941,8 +2943,9 @@ extern fn bgfx_encoder_end(_encoder: ?*Encoder) void;
/// Sets a debug marker. This allows you to group graphics calls together for easy browsing in
/// graphics debugging tools.
/// <param name="_marker">Marker string.</param>
extern fn bgfx_encoder_set_marker(self: ?*Encoder, _marker: [*c]const u8) void;
/// <param name="_name">Marker name.</param>
/// <param name="_len">Marker name length (if length is INT32_MAX, it's expected that _name is zero terminated string.</param>
extern fn bgfx_encoder_set_marker(self: ?*Encoder, _name: [*c]const u8, _len: i32) void;
/// Set render states for draw primitive.
/// @remarks
@@ -3303,11 +3306,12 @@ extern fn bgfx_override_internal_texture(_handle: TextureHandle, _width: u16, _h
/// Sets a debug marker. This allows you to group graphics calls together for easy browsing in
/// graphics debugging tools.
/// <param name="_marker">Marker string.</param>
pub inline fn setMarker(_marker: [*c]const u8) void {
return bgfx_set_marker(_marker);
/// <param name="_name">Marker name.</param>
/// <param name="_len">Marker name length (if length is INT32_MAX, it's expected that _name is zero terminated string.</param>
pub inline fn setMarker(_name: [*c]const u8, _len: i32) void {
return bgfx_set_marker(_name, _len);
}
extern fn bgfx_set_marker(_marker: [*c]const u8) void;
extern fn bgfx_set_marker(_name: [*c]const u8, _len: i32) void;
/// Set render states for draw primitive.
/// @remarks