Skip to content

Upgrade from WGPUSurfaceDescriptorFromCanvasHTMLSelector? #512

@lukaschod

Description

@lukaschod

I noticed that from 2024 August API changed of getting surface from HTML canvas. There used to be function called WGPUSurfaceDescriptorFromCanvasHTMLSelector and most of the tutorials followed it https://developer.chrome.com/docs/web-platform/webgpu/build-app.
I am curious what is the new way to get surface from HTML for WebGPU? Also I am using SDL2 for window managing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions