mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 12:42:34 +01:00
D bindings: deterministic sub-struct order (#3127)
* Reformatted comments; fixed a couple of oversights * D bindings: deterministic sub-struct order * Added missing default to IDL * Fixed sub-struct linkage; regenerate D binds
This commit is contained in:
@@ -963,8 +963,13 @@ pragma(inline,true) nothrow @nogc pure @safe{
|
||||
|
||||
///Renderer capabilities.
|
||||
extern(C++, "bgfx") struct Caps{
|
||||
///GPU info.
|
||||
extern(C++) struct GPU{
|
||||
ushort vendorID; ///Vendor PCI id. See `BGFX_PCI_ID_*`.
|
||||
ushort deviceID; ///Device id.
|
||||
}
|
||||
///Renderer runtime limits.
|
||||
extern(C++, "bgfx") struct Limits{
|
||||
extern(C++) struct Limits{
|
||||
uint maxDrawCalls; ///Maximum number of draw calls.
|
||||
uint maxBlits; ///Maximum number of blit calls.
|
||||
uint maxTextureSize; ///Maximum texture size.
|
||||
@@ -990,11 +995,6 @@ extern(C++, "bgfx") struct Caps{
|
||||
uint transientVBSize; ///Maximum transient vertex buffer size.
|
||||
uint transientIBSize; ///Maximum transient index buffer size.
|
||||
}
|
||||
///GPU info.
|
||||
extern(C++, "bgfx") struct GPU{
|
||||
ushort vendorID; ///Vendor PCI id. See `BGFX_PCI_ID_*`.
|
||||
ushort deviceID; ///Device id.
|
||||
}
|
||||
|
||||
RendererType rendererType; ///Renderer backend type. See: `bgfx::RendererType`
|
||||
|
||||
@@ -1095,7 +1095,7 @@ extern(C++, "bgfx") struct Resolution{
|
||||
///Initialization parameters used by `bgfx::init`.
|
||||
extern(C++, "bgfx") struct Init{
|
||||
///Configurable runtime limits parameters.
|
||||
extern(C++, "bgfx") struct Limits{
|
||||
extern(C++) struct Limits{
|
||||
ushort maxEncoders; ///Maximum number of encoder threads.
|
||||
uint minResourceCBSize; ///Minimum resource command buffer size.
|
||||
uint transientVBSize; ///Maximum transient vertex buffer size.
|
||||
@@ -3018,7 +3018,7 @@ mixin(joinFnBinds((){
|
||||
Params:
|
||||
forThread = Explicitly request an encoder for a worker thread.
|
||||
*/
|
||||
[q{Encoder*}, q{begin}, q{bool forThread}, `C++, "bgfx"`],
|
||||
[q{Encoder*}, q{begin}, q{bool forThread=false}, `C++, "bgfx"`],
|
||||
|
||||
/**
|
||||
* End submitting draw calls from thread.
|
||||
|
||||
Reference in New Issue
Block a user