Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RasterizerState

GFX 光栅化状态。

Hierarchy

  • RasterizerState

Index

Constructors

constructor

  • newRasterizerState(isDiscard?: boolean, polygonMode?: PolygonMode, shadeModel?: ShadeModel, cullMode?: CullMode, isFrontFaceCCW?: boolean, depthBiasEnabled?: boolean, depthBias?: number, depthBiasClamp?: number, depthBiasSlop?: number, isDepthClip?: boolean, isMultisample?: boolean, lineWidth?: number): RasterizerState
  • Parameters

    • Default value isDiscard: boolean = false
    • Default value polygonMode: PolygonMode = PolygonMode.FILL
    • Default value shadeModel: ShadeModel = ShadeModel.GOURAND
    • Default value cullMode: CullMode = CullMode.BACK
    • Default value isFrontFaceCCW: boolean = true
    • Default value depthBiasEnabled: boolean = false
    • Default value depthBias: number = 0
    • Default value depthBiasClamp: number = 0
    • Default value depthBiasSlop: number = 0
    • Default value isDepthClip: boolean = true
    • Default value isMultisample: boolean = false
    • Default value lineWidth: number = 1

    Returns RasterizerState

Properties

Private _token

_token: never

cullMode

cullMode: CullMode

depthBias

depthBias: number

depthBiasClamp

depthBiasClamp: number

depthBiasEnabled

depthBiasEnabled: boolean

depthBiasSlop

depthBiasSlop: number

isDepthClip

isDepthClip: boolean

isDiscard

isDiscard: boolean

isFrontFaceCCW

isFrontFaceCCW: boolean

isMultisample

isMultisample: boolean

lineWidth

lineWidth: number

polygonMode

polygonMode: PolygonMode

shadeModel

shadeModel: ShadeModel

Accessors

handle

  • get handle(): RawBufferHandle

Methods

assign

destroy

  • destroy(): void

reset

  • reset(): void

Generated using TypeDoc