Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GFXCommandBuffer

GFX 命令缓冲。

Hierarchy

Index

Constructors

constructor

Properties

Protected _allocator

_allocator: GFXCommandAllocator | null = null

Protected _device

_device: GFXDevice

Protected _gfxType

_gfxType: GFXObjectType = GFXObjectType.UNKNOWN

Protected _numDrawCalls

_numDrawCalls: number = 0

Protected _numInstances

_numInstances: number = 0

Protected _numTris

_numTris: number = 0

Protected _status

_status: GFXStatus = GFXStatus.UNREADY

Protected _type

_type: GFXCommandBufferType = GFXCommandBufferType.PRIMARY

Accessors

gfxType

numDrawCalls

  • get numDrawCalls(): number

numInstances

  • get numInstances(): number

numTris

  • get numTris(): number

status

type

Methods

Abstract begin

  • begin(): void

Abstract beginRenderPass

Abstract bindBindingLayout

Abstract bindInputAssembler

Abstract bindPipelineState

Abstract copyBufferToTexture

Abstract destroy

  • destroy(): void

Abstract draw

Abstract end

  • end(): void

Abstract endRenderPass

  • endRenderPass(): void

Abstract execute

Abstract initialize

Abstract setBlendConstants

  • setBlendConstants(blendConstants: number[]): void

Abstract setDepthBias

  • setDepthBias(depthBiasConstantFactor: number, depthBiasClamp: number, depthBiasSlopeFactor: number): void
  • 设置深度偏移。

    Parameters

    • depthBiasConstantFactor: number

      The new depth bias factor.

    • depthBiasClamp: number

      The new depth bias clamp threshold.

    • depthBiasSlopeFactor: number

      The new depth bias slope factor.

    Returns void

Abstract setDepthBound

  • setDepthBound(minDepthBounds: number, maxDepthBounds: number): void
  • 设置深度边界。

    Parameters

    • minDepthBounds: number

      The new minimum depth bound.

    • maxDepthBounds: number

      The new maximum depth bound.

    Returns void

Abstract setLineWidth

  • setLineWidth(lineWidth: number): void

Abstract setScissor

Abstract setStencilCompareMask

  • setStencilCompareMask(face: GFXStencilFace, reference: number, compareMask: number): void
  • 设置模板比较掩码。

    Parameters

    • face: GFXStencilFace

      The effective triangle face.

    • reference: number

      The new stencil reference constant.

    • compareMask: number

      The new stencil read mask.

    Returns void

Abstract setStencilWriteMask

Abstract setViewport

Abstract updateBuffer

  • updateBuffer(buffer: GFXBuffer, data: ArrayBuffer, offset?: undefined | number): void
  • 更新缓冲。

    Parameters

    • buffer: GFXBuffer

      The buffer to be updated.

    • data: ArrayBuffer

      The source data.

    • Optional offset: undefined | number

      Offset into the buffer.

    Returns void

Generated using TypeDoc