@simversus/yjvis • Docs
@simversus/yjvis / DepthStencilState
Class: DepthStencilState
Constructors
new DepthStencilState()
new DepthStencilState(
depthTest
,depthWrite
,depthFunc
,stencilTestFront
,stencilFuncFront
,stencilReadMaskFront
,stencilWriteMaskFront
,stencilFailOpFront
,stencilZFailOpFront
,stencilPassOpFront
,stencilRefFront
,stencilTestBack
,stencilFuncBack
,stencilReadMaskBack
,stencilWriteMaskBack
,stencilFailOpBack
,stencilZFailOpBack
,stencilPassOpBack
,stencilRefBack
):DepthStencilState
Parameters
• depthTest: boolean
= true
• depthWrite: boolean
= true
• depthFunc: ComparisonFunc
= ComparisonFunc.LESS
• stencilTestFront: boolean
= false
• stencilFuncFront: ComparisonFunc
= ComparisonFunc.ALWAYS
• stencilReadMaskFront: number
= 0xffff
• stencilWriteMaskFront: number
= 0xffff
• stencilFailOpFront: StencilOp
= StencilOp.KEEP
• stencilZFailOpFront: StencilOp
= StencilOp.KEEP
• stencilPassOpFront: StencilOp
= StencilOp.KEEP
• stencilRefFront: number
= 1
• stencilTestBack: boolean
= false
• stencilFuncBack: ComparisonFunc
= ComparisonFunc.ALWAYS
• stencilReadMaskBack: number
= 0xffff
• stencilWriteMaskBack: number
= 0xffff
• stencilFailOpBack: StencilOp
= StencilOp.KEEP
• stencilZFailOpBack: StencilOp
= StencilOp.KEEP
• stencilPassOpBack: StencilOp
= StencilOp.KEEP
• stencilRefBack: number
= 1
Returns
Defined in
gfx/base/types.ts:1289
Properties
depthFunc
depthFunc:
ComparisonFunc
=ComparisonFunc.LESS
Defined in
gfx/base/types.ts:1292
depthTest
depthTest:
boolean
=true
Defined in
gfx/base/types.ts:1290
depthWrite
depthWrite:
boolean
=true
Defined in
gfx/base/types.ts:1291
stencilFailOpBack
stencilFailOpBack:
StencilOp
=StencilOp.KEEP
Defined in
gfx/base/types.ts:1305
stencilFailOpFront
stencilFailOpFront:
StencilOp
=StencilOp.KEEP
Defined in
gfx/base/types.ts:1297
stencilFuncBack
stencilFuncBack:
ComparisonFunc
=ComparisonFunc.ALWAYS
Defined in
gfx/base/types.ts:1302
stencilFuncFront
stencilFuncFront:
ComparisonFunc
=ComparisonFunc.ALWAYS
Defined in
gfx/base/types.ts:1294
stencilPassOpBack
stencilPassOpBack:
StencilOp
=StencilOp.KEEP
Defined in
gfx/base/types.ts:1307
stencilPassOpFront
stencilPassOpFront:
StencilOp
=StencilOp.KEEP
Defined in
gfx/base/types.ts:1299
stencilReadMaskBack
stencilReadMaskBack:
number
=0xffff
Defined in
gfx/base/types.ts:1303
stencilReadMaskFront
stencilReadMaskFront:
number
=0xffff
Defined in
gfx/base/types.ts:1295
stencilRefBack
stencilRefBack:
number
=1
Defined in
gfx/base/types.ts:1308
stencilRefFront
stencilRefFront:
number
=1
Defined in
gfx/base/types.ts:1300
stencilTestBack
stencilTestBack:
boolean
=false
Defined in
gfx/base/types.ts:1301
stencilTestFront
stencilTestFront:
boolean
=false
Defined in
gfx/base/types.ts:1293
stencilWriteMaskBack
stencilWriteMaskBack:
number
=0xffff
Defined in
gfx/base/types.ts:1304
stencilWriteMaskFront
stencilWriteMaskFront:
number
=0xffff
Defined in
gfx/base/types.ts:1296
stencilZFailOpBack
stencilZFailOpBack:
StencilOp
=StencilOp.KEEP
Defined in
gfx/base/types.ts:1306
stencilZFailOpFront
stencilZFailOpFront:
StencilOp
=StencilOp.KEEP
Defined in
gfx/base/types.ts:1298