LogoPixi’VN
pixi-jsClasses

Class: GpuTextureSystem

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.d.ts:28

The system that handles textures for the GPU.

Advanced

Implements

Constructors

Constructor

> new GpuTextureSystem(renderer): GpuTextureSystem

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.d.ts:46

Parameters

renderer

WebGPURenderer

Returns

GpuTextureSystem

Properties

CONTEXT_UID

> protected CONTEXT_UID: number

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.d.ts:34

Accessors

managedTextures

Get Signature

> get managedTextures(): readonly TextureSource<any>[]

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.d.ts:45

Deprecated

since 8.15.0

Returns

readonly TextureSource<any>[]

Methods

contextChange()

> protected contextChange(gpu): void

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.d.ts:47

Parameters

gpu

GPU

Returns

void


destroy()

> destroy(): void

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.d.ts:76

Generic destroy methods to be overridden by the subclass

Returns

void

Implementation of

System.destroy


generateCanvas()

> generateCanvas(texture): ICanvas

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.d.ts:74

Parameters

texture

Texture

Returns

ICanvas

Implementation of

CanvasGenerator.generateCanvas


getGpuSampler()

> getGpuSampler(sampler): GPUSampler

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.d.ts:60

Parameters

sampler

TextureStyle

Returns

GPUSampler


getGpuSource()

> getGpuSource(source): GPUTexture

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.d.ts:61

Parameters

source

TextureSource

Returns

GPUTexture


getPixels()

> getPixels(texture): GetPixelsOutput

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.d.ts:75

Parameters

texture

Texture

Returns

GetPixelsOutput

Implementation of

CanvasGenerator.getPixels


getTextureBindGroup()

> getTextureBindGroup(texture): BindGroup

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.d.ts:71

this returns s bind group for a specific texture, the bind group contains

  • the texture source
  • the texture style
  • the texture matrix This is cached so the bind group should only be created once per texture

Parameters

texture

Texture

the texture you want the bindgroup for

Returns

BindGroup

the bind group for the texture


getTextureView()

> getTextureView(texture): GPUTextureView

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.d.ts:73

Parameters

texture

BindableTexture

Returns

GPUTextureView


initSource()

> initSource(source): GPUTexture

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.d.ts:53

Initializes a texture source, if it has already been initialized nothing will happen.

Parameters

source

TextureSource

The texture source to initialize.

Returns

GPUTexture

The initialized texture source.


onSourceResize()

> protected onSourceResize(source): void

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.d.ts:58

Parameters

source

TextureSource

Returns

void


onSourceUnload()

> protected onSourceUnload(source): void

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.d.ts:57

Parameters

source

TextureSource

Returns

void


onSourceUpdate()

> protected onSourceUpdate(source): void

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.d.ts:55

Parameters

source

TextureSource

Returns

void


onUpdateMipmaps()

> protected onUpdateMipmaps(source): void

Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.d.ts:56

Parameters

source

TextureSource

Returns

void