Skip to content

getPreferredCanvasFormat narrow types #132

@ottoville

Description

@ottoville

Currently getPreferredCanvasFormat() returns "GPUTextureFormat".
It should be stricter, to return union of string literals "rgba8unorm" | "bgra8unorm"
https://gpuweb.github.io/gpuweb/#dom-gpu-getpreferredcanvasformat

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions