Skip to content

Compute on iOS error: “Requesting a device failed” #3787

Answered by Gordon-F
rizerco asked this question in Q&A
Discussion options

You must be logged in to vote

@rizerco Sorry, I misread your question. You can't get a device, not an adapter. You can try DeviceDescriptor from hello-triangle example:

 let (device, queue) = adapter
  .request_device(
      &wgpu::DeviceDescriptor {
          label: None,
          features: wgpu::Features::empty(),
          // Make sure we use the texture resolution limits from the adapter, so we can support images the size of the swapchain.
          limits: wgpu::Limits::downlevel_webgl2_defaults()
              .using_resolution(adapter.limits()),
      },
      None,
  )
  .await

Also, you can set RUST_LOG environment variable (RUST_LOG=trace) and see what's going wrong in log.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@cwfitzgerald
Comment options

@rizerco
Comment options

@Gordon-F
Comment options

Answer selected by rizerco
@rizerco
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants