mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 12:42:34 +01:00
Added Init.fallback option. Cleanup. (#3522)
This commit is contained in:
committed by
GitHub
parent
3ddf1ed032
commit
241e9c3330
@@ -2237,6 +2237,7 @@ public static class bgfx
|
||||
public uint64 capabilities;
|
||||
public uint8 debug;
|
||||
public uint8 profile;
|
||||
public uint8 fallback;
|
||||
public PlatformData platformData;
|
||||
public Resolution resolution;
|
||||
public Limits limits;
|
||||
|
||||
@@ -1581,6 +1581,8 @@ struct Init
|
||||
bool debug;
|
||||
// Enable device for profiling.
|
||||
bool profile;
|
||||
// Enable fallback to next available renderer.
|
||||
bool fallback;
|
||||
// Platform data.
|
||||
PlatformData platformData;
|
||||
// Backbuffer resolution and reset parameters. See: `bgfx::Resolution`.
|
||||
|
||||
@@ -2211,6 +2211,7 @@ public static partial class bgfx
|
||||
public ulong capabilities;
|
||||
public byte debug;
|
||||
public byte profile;
|
||||
public byte fallback;
|
||||
public PlatformData platformData;
|
||||
public Resolution resolution;
|
||||
public Limits limits;
|
||||
|
||||
@@ -9,7 +9,7 @@ import bindbc.common.types: c_int64, c_uint64, va_list;
|
||||
import bindbc.bgfx.config;
|
||||
static import bgfx.impl;
|
||||
|
||||
enum uint apiVersion = 135;
|
||||
enum uint apiVersion = 136;
|
||||
|
||||
alias ViewID = ushort;
|
||||
|
||||
@@ -1199,6 +1199,7 @@ extern(C++, "bgfx") struct Init{
|
||||
c_uint64 capabilities; ///Capabilities initialization mask (default: UINT64_MAX).
|
||||
bool debug_; ///Enable device for debugging.
|
||||
bool profile; ///Enable device for profiling.
|
||||
bool fallback; ///Enable fallback to next available renderer.
|
||||
PlatformData platformData; ///Platform data.
|
||||
Resolution resolution; ///Backbuffer resolution and reset parameters. See: `bgfx::Resolution`.
|
||||
Limits limits; ///Configurable runtime limits parameters.
|
||||
|
||||
@@ -1419,6 +1419,7 @@ pub const Init = extern struct {
|
||||
capabilities: u64,
|
||||
debug: bool,
|
||||
profile: bool,
|
||||
fallback: bool,
|
||||
platformData: PlatformData,
|
||||
resolution: Resolution,
|
||||
limits: Limits,
|
||||
|
||||
Reference in New Issue
Block a user