Skip to content

Commit

Permalink
D bindings: Fix a casing error (#3350)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ichordev authored Sep 4, 2024
1 parent eaec8dd commit f29c1b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bindings/d/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ enum StencilFuncRef: StencilFuncRef_{
StencilFuncRef_ toStencilFuncRef(uint v) nothrow @nogc pure @safe{ return (v << StencilFuncRef.shift) & StencilFuncRef.mask; }

///Set stencil rmask value.
alias StencilFuncRmask_ = uint;
enum StencilFuncRmask: StencilFuncRmask_{
alias StencilFuncRMask_ = uint;
enum StencilFuncRMask: StencilFuncRMask_{
shift = 8,
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;
enum Stencil: Stencil_{
Expand Down
1 change: 1 addition & 0 deletions scripts/bindings-d.lua
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ local capsRepl = {
decrsat = "decrSat", incrsat = "incrSat", revsub = "revSub",
linestrip = "lineStrip", tristrip = "triStrip",
bstencil = "bStencil", fstencil = "fStencil",
Rmask = "RMask",
}

local function abbrevsToUpper(name)
Expand Down

0 comments on commit f29c1b7

Please sign in to comment.