Class CubeTexture

Hierarchy

  • ManagementResourceBase
    • CubeTexture

Constructors

  • Parameters

    • redGPUContext: RedGPUContext
    • srcList: SrcInfo
    • useMipMap: boolean = true
    • OptionalonLoad: (cubeTextureInstance?: CubeTexture) => void
    • OptionalonError: (error: Error) => void
    • Optionalformat: GPUTextureFormat

    Returns CubeTexture

Properties

defaultViewDescriptor: GPUTextureViewDescriptor = ...

Accessors

  • get gpuDevice(): GPUDevice

    Retrieves the GPU device associated with the current instance.

    Returns GPUDevice

    The GPU device.

  • get uuid(): string

    Retrieves the UUID of the object.

    Returns string

    The UUID of the object.

  • get viewDescriptor(): {
        arrayLayerCount?: number;
        aspect?: GPUTextureAspect;
        baseArrayLayer?: number;
        baseMipLevel?: number;
        dimension?: GPUTextureViewDimension;
        format?: GPUTextureFormat;
        label?: string;
        mipLevelCount: number;
        usage?: number;
    }

    Returns {
        arrayLayerCount?: number;
        aspect?: GPUTextureAspect;
        baseArrayLayer?: number;
        baseMipLevel?: number;
        dimension?: GPUTextureViewDimension;
        format?: GPUTextureFormat;
        label?: string;
        mipLevelCount: number;
        usage?: number;
    }

    • OptionalarrayLayerCount?: number

      How many array layers, starting with GPUTextureViewDescriptor#baseArrayLayer, are accessible to the texture view.

    • Optionalaspect?: GPUTextureAspect

      Which GPUTextureAspect | aspect(s) of the texture are accessible to the texture view.

    • OptionalbaseArrayLayer?: number

      The index of the first array layer accessible to the texture view.

    • OptionalbaseMipLevel?: number

      The first (most detailed) mipmap level accessible to the texture view.

    • Optionaldimension?: GPUTextureViewDimension

      The dimension to view the texture as.

    • Optionalformat?: GPUTextureFormat

      The format of the texture view. Must be either the GPUTextureDescriptor#format of the texture or one of the GPUTextureDescriptor#viewFormats specified during its creation.

    • Optionallabel?: string

      The initial value of GPUObjectBase#label | GPUObjectBase.label.

    • mipLevelCount: number
    • Optionalusage?: number

      The allowed GPUTextureUsage | usage(s) for the texture view. Must be a subset of the GPUTexture#usage flags of the texture. If 0, defaults to the full set of GPUTexture#usage flags of the texture. Note: If the view's GPUTextureViewDescriptor#format doesn't support all of the texture's GPUTextureDescriptor#usages, the default will fail, and the view's GPUTextureViewDescriptor#usage must be specified explicitly.

Methods

  • Adds a listener function to the dirty pipeline listeners array. This function will be called when the pipeline becomes dirty.

    Parameters

    • listener: () => void

      The listener function to be added.

    Returns void

  • Fires the dirty listeners list.

    Parameters

    • OptionalresetList: boolean = false

      Indicates whether to reset the dirty listeners list after firing.

    Returns void

  • Removes a dirty pipeline listener from the list of listeners.

    Parameters

    • listener: () => void

      The listener function to be removed.

    Returns void

  • Parameters

    • gpuTexture: GPUTexture
    • OptionalcacheKey: string
    • useMipmap: boolean = true

    Returns void