mirror of https://github.com/bkaradzic/bgfx
D bindings: Fix a casing error (#3350)
* Fix error in dynamic version of D bindings Dazed and confused but trying to continue * Fix dispatch_indirect still using uint16_t in bgfx.idl * D bindings: Mark enum conv. functions `nothrow @nogc pure @safe` * D bindings: Fix a casing error
This commit is contained in:
parent
eaec8ddf3b
commit
f29c1b7cde
|
@ -163,12 +163,12 @@ enum StencilFuncRef: StencilFuncRef_{
|
||||||
StencilFuncRef_ toStencilFuncRef(uint v) nothrow @nogc pure @safe{ return (v << StencilFuncRef.shift) & StencilFuncRef.mask; }
|
StencilFuncRef_ toStencilFuncRef(uint v) nothrow @nogc pure @safe{ return (v << StencilFuncRef.shift) & StencilFuncRef.mask; }
|
||||||
|
|
||||||
///Set stencil rmask value.
|
///Set stencil rmask value.
|
||||||
alias StencilFuncRmask_ = uint;
|
alias StencilFuncRMask_ = uint;
|
||||||
enum StencilFuncRmask: StencilFuncRmask_{
|
enum StencilFuncRMask: StencilFuncRMask_{
|
||||||
shift = 8,
|
shift = 8,
|
||||||
mask = 0x0000_FF00,
|
mask = 0x0000_FF00,
|
||||||
}
|
}
|
||||||
StencilFuncRmask_ toStencilFuncRmask(uint v) nothrow @nogc pure @safe{ return (v << StencilFuncRmask.shift) & StencilFuncRmask.mask; }
|
StencilFuncRMask_ toStencilFuncRMask(uint v) nothrow @nogc pure @safe{ return (v << StencilFuncRMask.shift) & StencilFuncRMask.mask; }
|
||||||
|
|
||||||
alias Stencil_ = uint;
|
alias Stencil_ = uint;
|
||||||
enum Stencil: Stencil_{
|
enum Stencil: Stencil_{
|
||||||
|
|
|
@ -136,6 +136,7 @@ local capsRepl = {
|
||||||
decrsat = "decrSat", incrsat = "incrSat", revsub = "revSub",
|
decrsat = "decrSat", incrsat = "incrSat", revsub = "revSub",
|
||||||
linestrip = "lineStrip", tristrip = "triStrip",
|
linestrip = "lineStrip", tristrip = "triStrip",
|
||||||
bstencil = "bStencil", fstencil = "fStencil",
|
bstencil = "bStencil", fstencil = "fStencil",
|
||||||
|
Rmask = "RMask",
|
||||||
}
|
}
|
||||||
|
|
||||||
local function abbrevsToUpper(name)
|
local function abbrevsToUpper(name)
|
||||||
|
|
Loading…
Reference in New Issue