Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RenderPipeline

渲染流程。

Hierarchy

Index

Constructors

constructor

Properties

Protected _colorFmt

_colorFmt: GFXFormat = GFXFormat.UNKNOWN

颜色格式。

Protected _curIdx

_curIdx: number = 0

当前帧缓冲索引。

Protected _defaultTex

_defaultTex: GFXTexture | null = null

默认纹理。

Protected _defaultTexView

_defaultTexView: GFXTextureView | null = null

默认纹理视图。

Protected _depthStencilFmt

_depthStencilFmt: GFXFormat = GFXFormat.UNKNOWN

深度模板格式。

Protected _depthStencilTex

_depthStencilTex: GFXTexture | null = null

深度模板纹理。

Protected _depthStencilTexView

_depthStencilTexView: GFXTextureView | null = null

深度模板纹理视图。

Protected _device

_device: GFXDevice

GFX设备。

Protected _fboCount

_fboCount: number = 0

帧缓冲数量。

Protected _flows

_flows: RenderFlow[] = []

渲染流程数组。

Protected _fpScale

_fpScale: number = 1.0 / 1024.0

浮点精度缩放。

Protected _fpScaleInv

_fpScaleInv: number = 1024

浮点精度缩放的倒数。

Protected _globalBindings

_globalBindings: Map<string, IInternalBindingInst> = new Map<string, IInternalBindingInst>()

默认的全局绑定表。

Protected _isHDR

_isHDR: boolean = false

是否为 HDR 管线。

Protected _isHDRSupported

_isHDRSupported: boolean = false

是否支持 HDR。

Protected _lightMeterScale

_lightMeterScale: number = 10000

灯光距离缩放系数(以米为单位)。

Protected _macros

_macros: IDefineMap

管线宏定义。

Protected _msaaDepthStencilTex

_msaaDepthStencilTex: GFXTexture | null = null

MSAA深度模板纹理。

Protected _msaaDepthStencilTexView

_msaaDepthStencilTexView: GFXTextureView | null = null

MSAA深度模板纹理视图。

Protected _msaaShadingFBO

_msaaShadingFBO: GFXFramebuffer | null = null

MSAA着色帧缓冲。

Protected _msaaShadingTex

_msaaShadingTex: GFXTexture | null = null

MSAA着色纹理。

Protected _msaaShadingTexView

_msaaShadingTexView: GFXTextureView | null = null

MSAA着色纹理视图。

Protected _name

_name: string = "BasePipeline"

名称。

Protected _prevIdx

_prevIdx: number = 1

上一帧缓冲索引。

Protected _quadIA

_quadIA: GFXInputAssembler | null = null

四边形输入汇集器。

Protected _quadIB

_quadIB: GFXBuffer | null = null

四边形索引缓冲。

Protected _quadVB

_quadVB: GFXBuffer | null = null

四边形顶点缓冲。

Protected _renderObjects

_renderObjects: IRenderObject[] = []

渲染对象数组。

Protected _renderPasses

_renderPasses: Map<number, GFXRenderPass> = new Map()

渲染过程数组。

Protected _root

_root: Root

Root类对象。

Protected _shadingFBOs

_shadingFBOs: GFXFramebuffer[] = []

着色帧缓冲数组。

Protected _shadingHeight

_shadingHeight: number = 0

着色尺寸高度。

Protected _shadingPass

_shadingPass: GFXRenderPass | null = null

着色渲染过程。

Protected _shadingScale

_shadingScale: number = 1

着色尺寸缩放。

Protected _shadingTexViews

_shadingTexViews: GFXTextureView[] = []

着色纹理视图数组。

Protected _shadingTextures

_shadingTextures: GFXTexture[] = []

着色纹理数组。

Protected _shadingWidth

_shadingWidth: number = 0

着色尺寸宽度。

Protected _smaaBlendFBO

_smaaBlendFBO: GFXFramebuffer | null = null

SMAA混合帧缓冲。

Protected _smaaBlendTex

_smaaBlendTex: GFXTexture | null = null

SMAA混合纹理。

Protected _smaaBlendTexView

_smaaBlendTexView: GFXTextureView | null = null

SMAA混合纹理视图。

Protected _smaaEdgeFBO

_smaaEdgeFBO: GFXFramebuffer | null = null

SMAA边缘帧缓冲。

Protected _smaaEdgeTex

_smaaEdgeTex: GFXTexture | null = null

SMAA边缘纹理。

Protected _smaaEdgeTexView

_smaaEdgeTexView: GFXTextureView | null = null

SMAA边缘纹理视图。

Protected _smaaPass

_smaaPass: GFXRenderPass | null = null

SMAA渲染过程。

Protected _uboGlobal

_uboGlobal: UBOGlobal = new UBOGlobal()

默认的全局UBO。

Protected _useMSAA

_useMSAA: boolean = false

启用MSAA。

Protected _usePostProcess

_usePostProcess: boolean = false

启用后期处理。

Protected _useSMAA

_useSMAA: boolean = false

启用SMAA。

Accessors

curShadingFBO

curShadingTexView

defaultGlobalUBOData

  • get defaultGlobalUBOData(): Float32Array

defaultTexture

depthStencilTexView

device

flows

fpScale

  • get fpScale(): number

fpScaleInv

  • get fpScaleInv(): number

globalBindings

isHDR

  • get isHDR(): boolean

isHDRSupported

  • get isHDRSupported(): boolean

lightMeterScale

  • get lightMeterScale(): number
  • set lightMeterScale(scale: number): void

macros

msaaShadingFBO

name

  • get name(): string

prevShadingFBO

prevShadingTexView

quadIA

renderObjects

root

shadingScale

  • get shadingScale(): number

smaaBlendFBO

smaaBlendTexView

smaaEdgeFBO

smaaEdgeTexView

useMSAA

  • get useMSAA(): boolean

usePostProcess

  • get usePostProcess(): boolean

useSMAA

  • get useSMAA(): boolean

Methods

Protected destroy

  • _destroy(): void

Protected initialize

addRenderPass

Protected addVisibleModel

  • addVisibleModel(model: Model, camera: Camera): void

clearRenderPasses

  • clearRenderPasses(): void

createFlow

Protected createQuadInputAssembler

  • createQuadInputAssembler(): boolean

Protected createUBOs

  • createUBOs(): boolean

Abstract destroy

  • destroy(): any

destroyFlows

  • destroyFlows(): void

Protected destroyQuadInputAssembler

  • destroyQuadInputAssembler(): void

Protected destroyUBOs

  • destroyUBOs(): void

getFlow

getRenderPass

Abstract initialize

rebuild

  • rebuild(): void

removeRenderPass

  • removeRenderPass(stage: number): void

render

resize

  • resize(width: number, height: number): void

Protected resizeFBOs

  • resizeFBOs(width: number, height: number): void

Protected sceneCulling

swapFBOs

  • swapFBOs(): void

updateMacros

  • updateMacros(): void

Protected updateUBOs

Generated using TypeDoc