LogoPixi’VN
pixi-jsInterfaces

Interface: GpuTextureUploader<T>

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/uploaders/GpuTextureUploader.d.ts:4

Internal

Type Parameters

T

T extends TextureSource = TextureSource

Properties

type

> type: string

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/uploaders/GpuTextureUploader.d.ts:5

Methods

upload()

> upload(source, gpuTexture, gpu, originZOverride?): void

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/uploaders/GpuTextureUploader.d.ts:14

Uploads a texture source to the given GPU texture.

Parameters

source

T

The source to upload.

gpuTexture

GPUTexture

The destination GPU texture.

gpu

GPU

The GPU device wrapper.

originZOverride?

number

Optional destination array-layer (z) override (e.g. cube face index). Defaults to 0.

Returns

void