Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RenderingSubMesh

包含所有顶点数据的渲染子网格,可以用来创建 GFXInputAssembler

Hierarchy

  • RenderingSubMesh

Implements

Index

Constructors

constructor

Properties

Private Optional _flatBuffers

_flatBuffers: IFlatBuffer[]

Private Optional _geometricInfo

_geometricInfo: IGeometricInfo

Private Optional _jointMappedBufferIndices

_jointMappedBufferIndices: number[]

Private Optional _jointMappedBuffers

_jointMappedBuffers: GFXBuffer[]

Private Optional vertexIdChannel

vertexIdChannel: undefined | { index: number; stream: number }

attributes

attributes: IGFXAttribute[]

所有顶点属性。

Optional indexBuffer

indexBuffer: GFXBuffer

使用的索引缓冲区,若未使用则无需指定。

Optional indirectBuffer

indirectBuffer: GFXBuffer

间接绘制缓冲区。

Optional mesh

mesh: Mesh

primitiveMode

primitiveMode: GFXPrimitiveMode

图元类型。

Optional subMeshIdx

subMeshIdx: undefined | number

vertexBuffers

vertexBuffers: GFXBuffer[]

使用的所有顶点缓冲区。

Accessors

flatBuffers

geometricInfo

jointMappedBuffers

Methods

Private allocVertexIdBuffer

destroy

  • destroy(): void

enableVertexIdChannel

  • enableVertexIdChannel(device: GFXDevice): void
  • en

    Adds a vertex attribute input called 'a_vertexId' into this sub-mesh. This is useful if you want to simulate gl_VertexId in WebGL context prior to 2.0. Once you call this function, the vertex attribute is permanently added. Subsequent calls to this function take no effect.

    Parameters

    • device: GFXDevice

      Device used to create related rendering resources.

    Returns void

Generated using TypeDoc