Function textureDimensionAndFormatCompatibleForDevice

  • Returns true iff a texture can be created with the provided GPUTextureDimension (defaulting to 2d) and GPUTextureFormat for a GPU device, by spec.

    Parameters

    • device: GPUDevice
    • dimension: undefined | GPUTextureDimension
    • format: GPUTextureFormat

    Returns boolean

Generated using TypeDoc