Engine API Reference - v2.15.1
    Preparing search index...

    Class TextureView

    A TextureView specifies a texture and a subset of its mip levels and array layers. It is used when binding textures to compute shaders to specify which portion of the texture should be accessed. Create a TextureView using Texture#getView.

    Note: TextureView is only supported on WebGPU. On WebGL, the full texture is always bound and this class has no effect.

    Index

    Properties

    arrayLayerCount: number

    The number of array layers accessible to the view.

    baseArrayLayer: number

    The first array layer accessible to the view.

    baseMipLevel: number

    The first mip level accessible to the view.

    mipLevelCount: number

    The number of mip levels accessible to the view.

    texture: Texture

    The texture this view references.