pixi.js
    Preparing search index...

    Class TextureViewAdvanced

    A TextureView allows you to specify exactly how a TextureSource should be interpreted by the GPU. This is particularly useful for advanced 3D rendering where you might need to view a depth/stencil texture as purely a 'depth-only' or 'stencil-only' view.

    It implements BindResource so it can be passed directly into a BindGroup or Shader.

    Hierarchy

    Implements

    Index

    Constructors

    • Parameters

      • source: TextureSource

        The texture source to view.

      • viewDescriptor: GPUTextureViewDescriptor

        The WebGPU texture view descriptor.

      Returns TextureView

    Properties

    _resourceId: number = ...

    Unique ID for this resource.

    _resourceType: "textureView" = 'textureView'

    The type of resource this is (for BindGroup compatibility).

    _touched: number = 0

    Used for GC.

    The underlying texture source.

    viewDescriptor: GPUTextureViewDescriptor

    The WebGPU texture view descriptor.

    Accessors

    • get destroyed(): boolean

      Returns whether the underlying source is destroyed.

      Returns boolean

    Methods

    • Destroys the view and cleans up event listeners.

      Returns void