Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GFXCommandBuffer

GFX命令缓冲。

Hierarchy

Index

Constructors

constructor

Properties

Protected _allocator

_allocator: GFXCommandAllocator | null = null

GFX命令分配器。

Protected _device

_device: GFXDevice

GFX设备。

Protected _gfxType

_gfxType: GFXObjectType = GFXObjectType.UNKNOWN

对象类型。

Protected _numDrawCalls

_numDrawCalls: 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

numTris

  • get numTris(): number

status

type

Methods

Abstract begin

  • begin(): any

Abstract beginRenderPass

Abstract bindBindingLayout

Abstract bindInputAssembler

Abstract bindPipelineState

Abstract copyBufferToTexture

Abstract destroy

  • destroy(): any

Abstract draw

Abstract end

  • end(): any

Abstract endRenderPass

  • endRenderPass(): any

Abstract execute

Abstract initialize

Abstract setBlendConstants

  • setBlendConstants(blendConstants: number[]): any

Abstract setDepthBias

  • setDepthBias(depthBiasConstantFacotr: number, depthBiasClamp: number, depthBiasSlopeFactor: number): any

Abstract setDepthBound

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

    Parameters

    • minDepthBounds: number

      最小深度边界。

    • maxDepthBounds: number

      最大深度边界。

    Returns any

Abstract setLineWidth

  • setLineWidth(lineWidth: number): any

Abstract setScissor

Abstract setStencilCompareMask

  • setStencilCompareMask(face: GFXStencilFace, reference: number, compareMask: number): any

Abstract setStencilWriteMask

Abstract setViewport

Abstract updateBuffer

  • updateBuffer(buffer: GFXBuffer, data: ArrayBuffer, offset?: undefined | number): any

Generated using TypeDoc