PIXI.DepthResource

class DepthResource extends PIXI.BufferResource

Resource type for DepthTexture.

Constructor


new PIXI.DepthResource() → {}

Summary


Methods from DepthResource

Properties inherited from BufferResource

Float32Array | Uint8Array | Uint16Array | Int32Array | Uint32Array
data

Source array Cannot be ClampedUint8Array because it cant be uploaded to WebGL

Properties inherited from Resource

boolean
destroyed = false
number
height
boolean
internal
string
src

The url of the resource

boolean
valid
number
width
number
protected _height

Internal height of the resource.

number
protected _width

Internal width of the resource.

Methods inherited from BufferResource

void
dispose()

Destroy and don't use after this.

Methods inherited from Resource

Public Methods


upload DepthResource.ts:14
upload(renderer: PIXI.Renderer, baseTexture: PIXI.BaseTexture, glTexture: PIXI.GLTexture) → {boolean}

Upload the texture to the GPU.

Parameters:
Name Type Description
renderer PIXI.Renderer

Upload to the renderer

baseTexture PIXI.BaseTexture

Reference to parent texture

glTexture PIXI.GLTexture

glTexture

Returns:
Type Description
boolean
  • true is success

Powered by webdoc!