Class representing a sampler for GPU textures.

Hierarchy (View Summary)

Constructors

Accessors

  • get gpuDevice(): GPUDevice

    Retrieves the GPU device associated with the current instance.

    Returns GPUDevice

    The GPU device.

  • get magFilter(): GPUFilterMode

    Retrieves the magnification filter mode used by the GPU.

    Returns GPUFilterMode

    The magnification filter mode.

  • set magFilter(value: GPUFilterMode): void

    Sets the magnification filter mode for the GPU texture.

    Parameters

    • value: GPUFilterMode

      The magnification filter mode to be set.

    Returns void

  • get maxAnisotropy(): number

    Retrieves the maximum anisotropy value.

    Returns number

    The maximum anisotropy value.

  • set maxAnisotropy(value: number): void

    Set the maximum anisotropy value for the sampler.

    Parameters

    • value: number

      The value to set as maximum anisotropy. Must be within the range of 1 to 16.

    Returns void

    If the value is not within the specified range.

  • get minFilter(): GPUFilterMode

    Returns the minimum filter mode for the GPU filter.

    Returns GPUFilterMode

    The minimum filter mode for the GPU filter.

  • set minFilter(value: GPUFilterMode): void

    Sets the value of minFilter.

    Parameters

    • value: GPUFilterMode

      The new value for minFilter.

    Returns void

  • get mipmapFilter(): GPUMipmapFilterMode

    Returns the MipmapFilter mode of the GPU object.

    Returns GPUMipmapFilterMode

    The MipmapFilter mode of the GPU.

  • set mipmapFilter(value: GPUMipmapFilterMode): void

    Sets the mipmap filter mode.

    Parameters

    • value: GPUMipmapFilterMode

      The filter mode to be set.

    Returns void

  • get uuid(): string

    Retrieves the UUID of the object.

    Returns string

    The UUID of the object.

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