Fix Native Window Type IDL/Bindings; (#3163)
This commit is contained in:
parent
c18122226e
commit
b68dc2b13e
@ -2016,6 +2016,22 @@ public static class bgfx
|
|||||||
Count
|
Count
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[AllowDuplicates]
|
||||||
|
public enum NativeWindowHandleType : uint32
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Platform default handle type (X11 on Linux).
|
||||||
|
/// </summary>
|
||||||
|
Default,
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Wayland.
|
||||||
|
/// </summary>
|
||||||
|
Wayland,
|
||||||
|
|
||||||
|
Count
|
||||||
|
}
|
||||||
|
|
||||||
[AllowDuplicates]
|
[AllowDuplicates]
|
||||||
public enum RenderFrame : uint32
|
public enum RenderFrame : uint32
|
||||||
{
|
{
|
||||||
@ -2108,6 +2124,7 @@ public static class bgfx
|
|||||||
public void* context;
|
public void* context;
|
||||||
public void* backBuffer;
|
public void* backBuffer;
|
||||||
public void* backBufferDS;
|
public void* backBufferDS;
|
||||||
|
public NativeWindowHandleType type;
|
||||||
}
|
}
|
||||||
|
|
||||||
[CRepr]
|
[CRepr]
|
||||||
|
@ -2002,6 +2002,21 @@ public static partial class bgfx
|
|||||||
Count
|
Count
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public enum NativeWindowHandleType
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Platform default handle type (X11 on Linux).
|
||||||
|
/// </summary>
|
||||||
|
Default,
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Wayland.
|
||||||
|
/// </summary>
|
||||||
|
Wayland,
|
||||||
|
|
||||||
|
Count
|
||||||
|
}
|
||||||
|
|
||||||
public enum RenderFrame
|
public enum RenderFrame
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -2088,6 +2103,7 @@ public static partial class bgfx
|
|||||||
public void* context;
|
public void* context;
|
||||||
public void* backBuffer;
|
public void* backBuffer;
|
||||||
public void* backBufferDS;
|
public void* backBufferDS;
|
||||||
|
public NativeWindowHandleType type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public unsafe struct Resolution
|
public unsafe struct Resolution
|
||||||
|
@ -839,6 +839,13 @@ enum ViewMode: bgfx.fakeenum.ViewMode.Enum{
|
|||||||
count = bgfx.fakeenum.ViewMode.Enum.count,
|
count = bgfx.fakeenum.ViewMode.Enum.count,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///Native window handle type.
|
||||||
|
enum NativeWindowHandleType: bgfx.fakeenum.NativeWindowHandleType.Enum{
|
||||||
|
default_ = bgfx.fakeenum.NativeWindowHandleType.Enum.default_,
|
||||||
|
wayland = bgfx.fakeenum.NativeWindowHandleType.Enum.wayland,
|
||||||
|
count = bgfx.fakeenum.NativeWindowHandleType.Enum.count,
|
||||||
|
}
|
||||||
|
|
||||||
///Render frame enum.
|
///Render frame enum.
|
||||||
enum RenderFrame: bgfx.fakeenum.RenderFrame.Enum{
|
enum RenderFrame: bgfx.fakeenum.RenderFrame.Enum{
|
||||||
noContext = bgfx.fakeenum.RenderFrame.Enum.noContext,
|
noContext = bgfx.fakeenum.RenderFrame.Enum.noContext,
|
||||||
@ -1073,6 +1080,7 @@ extern(C++, "bgfx") struct PlatformData{
|
|||||||
depth/stencil surface.
|
depth/stencil surface.
|
||||||
*/
|
*/
|
||||||
void* backBufferDS;
|
void* backBufferDS;
|
||||||
|
NativeWindowHandleType type; ///Handle type. Needed for platforms having more than one option.
|
||||||
}
|
}
|
||||||
|
|
||||||
///Backbuffer resolution and reset parameters.
|
///Backbuffer resolution and reset parameters.
|
||||||
|
@ -1260,6 +1260,16 @@ pub const ViewMode = enum(c_int) {
|
|||||||
Count
|
Count
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub const NativeWindowHandleType = enum(c_int) {
|
||||||
|
/// Platform default handle type (X11 on Linux).
|
||||||
|
Default,
|
||||||
|
|
||||||
|
/// Wayland.
|
||||||
|
Wayland,
|
||||||
|
|
||||||
|
Count
|
||||||
|
};
|
||||||
|
|
||||||
pub const RenderFrame = enum(c_int) {
|
pub const RenderFrame = enum(c_int) {
|
||||||
/// Renderer context is not created yet.
|
/// Renderer context is not created yet.
|
||||||
NoContext,
|
NoContext,
|
||||||
@ -1332,6 +1342,7 @@ pub const Caps = extern struct {
|
|||||||
context: ?*anyopaque,
|
context: ?*anyopaque,
|
||||||
backBuffer: ?*anyopaque,
|
backBuffer: ?*anyopaque,
|
||||||
backBufferDS: ?*anyopaque,
|
backBufferDS: ?*anyopaque,
|
||||||
|
type: NativeWindowHandleType,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const Resolution = extern struct {
|
pub const Resolution = extern struct {
|
||||||
|
@ -690,6 +690,12 @@ enum.ViewMode { underscore, comment = "View modes:" }
|
|||||||
.DepthDescending --- Sort draw call depth in descending order.
|
.DepthDescending --- Sort draw call depth in descending order.
|
||||||
()
|
()
|
||||||
|
|
||||||
|
--- Native window handle type.
|
||||||
|
enum.NativeWindowHandleType { underscore, comment = "Native Window handle type:" }
|
||||||
|
.Default --- Platform default handle type (X11 on Linux).
|
||||||
|
.Wayland --- Wayland.
|
||||||
|
()
|
||||||
|
|
||||||
--- Render frame enum.
|
--- Render frame enum.
|
||||||
enum.RenderFrame { underscore, comment = "" }
|
enum.RenderFrame { underscore, comment = "" }
|
||||||
.NoContext --- Renderer context is not created yet.
|
.NoContext --- Renderer context is not created yet.
|
||||||
@ -774,15 +780,16 @@ struct.InternalData
|
|||||||
|
|
||||||
--- Platform data.
|
--- Platform data.
|
||||||
struct.PlatformData { ctor }
|
struct.PlatformData { ctor }
|
||||||
.ndt "void*" --- Native display type (*nix specific).
|
.ndt "void*" --- Native display type (*nix specific).
|
||||||
.nwh "void*" --- Native window handle. If `NULL`, bgfx will create a headless
|
.nwh "void*" --- Native window handle. If `NULL`, bgfx will create a headless
|
||||||
--- context/device, provided the rendering API supports it.
|
--- context/device, provided the rendering API supports it.
|
||||||
.context "void*" --- GL context, D3D device, or Vulkan device. If `NULL`, bgfx
|
.context "void*" --- GL context, D3D device, or Vulkan device. If `NULL`, bgfx
|
||||||
--- will create context/device.
|
--- will create context/device.
|
||||||
.backBuffer "void*" --- GL back-buffer, or D3D render target view. If `NULL` bgfx will
|
.backBuffer "void*" --- GL back-buffer, or D3D render target view. If `NULL` bgfx will
|
||||||
--- create back-buffer color surface.
|
--- create back-buffer color surface.
|
||||||
.backBufferDS "void*" --- Backbuffer depth/stencil. If `NULL`, bgfx will create a back-buffer
|
.backBufferDS "void*" --- Backbuffer depth/stencil. If `NULL`, bgfx will create a back-buffer
|
||||||
--- depth/stencil surface.
|
--- depth/stencil surface.
|
||||||
|
.type "NativeWindowHandleType::Enum" --- Handle type. Needed for platforms having more than one option.
|
||||||
|
|
||||||
--- Backbuffer resolution and reset parameters.
|
--- Backbuffer resolution and reset parameters.
|
||||||
struct.Resolution { ctor }
|
struct.Resolution { ctor }
|
||||||
|
Loading…
Reference in New Issue
Block a user