Class ResourceBase

The ResourceBase class manages the RedGPUContext instance.

Hierarchy (View Summary)

Constructors

Accessors

  • get gpuDevice(): GPUDevice

    Retrieves the GPU device associated with the current instance.

    Returns GPUDevice

    The GPU device.

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