Skip to content

Commit

Permalink
Fix stencilFaceStateDescriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
Kangz authored and kainino0x committed Oct 2, 2019
1 parent bade160 commit acba607
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/library_webgpu.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,10 +511,8 @@ var LibraryWebGPU = {
depthWriteEnabled: {{{ gpu.makeGetBool('dssPtr', C_STRUCTS.DawnDepthStencilStateDescriptor.depthWriteEnabled) }}},
depthCompare: WebGPU.CompareFunction[
{{{ gpu.makeGetU32('dssPtr', C_STRUCTS.DawnDepthStencilStateDescriptor.depthCompare) }}}],
stencilFront: makeStencilStateFace(
{{{ makeGetValue('dssPtr', C_STRUCTS.DawnDepthStencilStateDescriptor.stencilFront, '*') }}}),
stencilBack: makeStencilStateFace(
{{{ makeGetValue('dssPtr', C_STRUCTS.DawnDepthStencilStateDescriptor.stencilBack, '*') }}}),
stencilFront: makeStencilStateFace(dssPtr + {{{ C_STRUCTS.DawnDepthStencilStateDescriptor.stencilFront }}}),
stencilBack: makeStencilStateFace(dssPtr + {{{ C_STRUCTS.DawnDepthStencilStateDescriptor.stencilBack }}}),
stencilReadMask: {{{ gpu.makeGetU32('dssPtr', C_STRUCTS.DawnDepthStencilStateDescriptor.stencilReadMask) }}},
stencilWriteMask: {{{ gpu.makeGetU32('dssPtr', C_STRUCTS.DawnDepthStencilStateDescriptor.stencilWriteMask) }}},
};
Expand Down

0 comments on commit acba607

Please sign in to comment.