Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeviceInfo

Hierarchy

  • DeviceInfo

Index

Constructors

constructor

  • newDeviceInfo(canvasElm: HTMLElement, isAntialias?: boolean, isPremultipliedAlpha?: boolean, devicePixelRatio?: number, nativeWidth?: number, nativeHeight?: number, bindingMappingInfo?: BindingMappingInfo): DeviceInfo
  • Parameters

    • canvasElm: HTMLElement
    • Default value isAntialias: boolean = true
    • Default value isPremultipliedAlpha: boolean = true
    • Default value devicePixelRatio: number = 1
    • Default value nativeWidth: number = 1
    • Default value nativeHeight: number = 1
    • Default value bindingMappingInfo: BindingMappingInfo = new BindingMappingInfo()

    Returns DeviceInfo

Properties

Private _token

_token: never

bindingMappingInfo

bindingMappingInfo: BindingMappingInfo

For non-vulkan backends, to maintain compatibility and maximize descriptor cache-locality, descriptor-set-based binding numbers need to be mapped to backend-specific bindings based on the maximum limit of available descriptor slots in each set.

The GFX layer assumes the binding numbers for each descriptor type inside each set are guaranteed to be consecutive, so the mapping procedure is reduced to a simple shifting operation. This data structure specifies the offsets for each descriptor type in each set.

canvasElm

canvasElm: HTMLElement

devicePixelRatio

devicePixelRatio: number

isAntialias

isAntialias: boolean

isPremultipliedAlpha

isPremultipliedAlpha: boolean

nativeHeight

nativeHeight: number

nativeWidth

nativeWidth: number

Generated using TypeDoc