Detect if we're not in a WebGPU capable browser with an Instance
that targets the BROWSER_WEBGPU
backend.
#5152
Labels
area: api
Issues related to API surface
Is your feature request related to a problem? Please describe.
When you create an Instance that targets the
BROWSER_WEBGPU
backend, but not theGL
backend,Instance::create_surface
panics if you're using a browser that doesn't support WebGPU.Describe the solution you'd like
Some way of knowing that we're not in a WebGPU capable browser with just an
Instance
Describe alternatives you've considered
Instance::enumerate_adapters()
doesn't work because it's alwaysNone
for WebGPU backends.The text was updated successfully, but these errors were encountered: