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
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
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
generateCanvas()
> generateCanvas(texture): ICanvas
Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.d.ts:74
Parameters
texture
Returns
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
Returns
GPUSampler
getGpuSource()
> getGpuSource(source): GPUTexture
Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.d.ts:61
Parameters
source
Returns
GPUTexture
getPixels()
> getPixels(texture): GetPixelsOutput
Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.d.ts:75
Parameters
texture
Returns
Implementation of
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
the texture you want the bindgroup for
Returns
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
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
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
Returns
void
onSourceUnload()
> protected onSourceUnload(source): void
Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.d.ts:57
Parameters
source
Returns
void
onSourceUpdate()
> protected onSourceUpdate(source): void
Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.d.ts:55
Parameters
source
Returns
void
onUpdateMipmaps()
> protected onUpdateMipmaps(source): void
Defined in: node_modules/pixi.js/lib/rendering/renderers/gpu/texture/GpuTextureSystem.d.ts:56
Parameters
source
Returns
void