Class RenderAPI

Provides access to ct::RenderAPI from the simulation thread. All the commands get queued on the core thread queue for the calling thread.

Sim thread only.

Hierarchy

  • FrameworkObject
    • RenderAPI

Constructors

  • Parameters

    • OptionalisInternalConstructor: boolean

    Returns RenderAPI

Accessors

  • get deviceCount(): number
  • Returns the number of devices supported by this render API.

    Returns number

Methods

  • Gets the capabilities of a specific GPU.

    Parameters

    • OptionaldeviceIndex: number

      Index of the device to get the capabilities for.

    Returns RenderAPICapabilities

    Thread safe.