Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DepthStencilState

GFX 深度模板状态。

Hierarchy

  • DepthStencilState

Index

Constructors

constructor

  • newDepthStencilState(depthTest?: boolean, depthWrite?: boolean, depthFunc?: ComparisonFunc, stencilTestFront?: boolean, stencilFuncFront?: ComparisonFunc, stencilReadMaskFront?: number, stencilWriteMaskFront?: number, stencilFailOpFront?: StencilOp, stencilZFailOpFront?: StencilOp, stencilPassOpFront?: StencilOp, stencilRefFront?: number, stencilTestBack?: boolean, stencilFuncBack?: ComparisonFunc, stencilReadMaskBack?: number, stencilWriteMaskBack?: number, stencilFailOpBack?: StencilOp, stencilZFailOpBack?: StencilOp, stencilPassOpBack?: StencilOp, stencilRefBack?: number): DepthStencilState
  • Parameters

    • Default value depthTest: boolean = true
    • Default value depthWrite: boolean = true
    • Default value depthFunc: ComparisonFunc = ComparisonFunc.LESS
    • Default value stencilTestFront: boolean = false
    • Default value stencilFuncFront: ComparisonFunc = ComparisonFunc.ALWAYS
    • Default value stencilReadMaskFront: number = 65535
    • Default value stencilWriteMaskFront: number = 65535
    • Default value stencilFailOpFront: StencilOp = StencilOp.KEEP
    • Default value stencilZFailOpFront: StencilOp = StencilOp.KEEP
    • Default value stencilPassOpFront: StencilOp = StencilOp.KEEP
    • Default value stencilRefFront: number = 1
    • Default value stencilTestBack: boolean = false
    • Default value stencilFuncBack: ComparisonFunc = ComparisonFunc.ALWAYS
    • Default value stencilReadMaskBack: number = 65535
    • Default value stencilWriteMaskBack: number = 65535
    • Default value stencilFailOpBack: StencilOp = StencilOp.KEEP
    • Default value stencilZFailOpBack: StencilOp = StencilOp.KEEP
    • Default value stencilPassOpBack: StencilOp = StencilOp.KEEP
    • Default value stencilRefBack: number = 1

    Returns DepthStencilState

Properties

Private _token

_token: never

depthFunc

depthFunc: ComparisonFunc

depthTest

depthTest: boolean

depthWrite

depthWrite: boolean

stencilFailOpBack

stencilFailOpBack: StencilOp

stencilFailOpFront

stencilFailOpFront: StencilOp

stencilFuncBack

stencilFuncBack: ComparisonFunc

stencilFuncFront

stencilFuncFront: ComparisonFunc

stencilPassOpBack

stencilPassOpBack: StencilOp

stencilPassOpFront

stencilPassOpFront: StencilOp

stencilReadMaskBack

stencilReadMaskBack: number

stencilReadMaskFront

stencilReadMaskFront: number

stencilRefBack

stencilRefBack: number

stencilRefFront

stencilRefFront: number

stencilTestBack

stencilTestBack: boolean

stencilTestFront

stencilTestFront: boolean

stencilWriteMaskBack

stencilWriteMaskBack: number

stencilWriteMaskFront

stencilWriteMaskFront: number

stencilZFailOpBack

stencilZFailOpBack: StencilOp

stencilZFailOpFront

stencilZFailOpFront: StencilOp

Accessors

handle

  • get handle(): RawBufferHandle

Methods

assign

destroy

  • destroy(): void

reset

  • reset(): void

Generated using TypeDoc