We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The newTextureWithDescriptor:iosurface:plane: is not supported. It is necessary for gfx-rs/wgpu#5641 to be used by gecko see Bug 1910043.
The text was updated successfully, but these errors were encountered:
Indeed, it is intentionally skipped because we don't expose IOSurfaceRef in any shape or form.
IOSurfaceRef
The proper solution needs support for CoreFoundation, for now you can do something like:
#[repr(transparent)] struct IOSurfaceRefWrapper(io_surface::IOSurfaceRef); // SAFETY: `IOSurfaceRefWrapper` is `#[repr(transparent)]` over // `IOSurfaceRef`, which is a typedef to `struct __IOSurface *`. unsafe impl Encode for IOSurfaceRefWrapper { const ENCODING: Encoding = Encoding::Pointer(&Encoding::Struct("__IOSurface", &[])); } pub fn new_with_descriptor_surface_plane( device: &ProtocolObject<dyn MTLDevice>, descriptor: &MTLTextureDescriptor, surface: io_surface::IOSurfaceRef, plane: NSUInteger, ) -> Retained<ProtocolObject<dyn MTLTexture>> { let surface = IOSurfaceRefWrapper(surface); msg_send_id![device, newTextureWithDescriptor: descriptor, iosurface: surface, plane: plane] }
This approach is somewhat documented in here.
Sorry, something went wrong.
No branches or pull requests
The newTextureWithDescriptor:iosurface:plane: is not supported. It is necessary for
gfx-rs/wgpu#5641 to be used by gecko see Bug 1910043.
The text was updated successfully, but these errors were encountered: