Skip to content
New issue

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

Adapter and Instance as_hal functions #2663

Merged
merged 1 commit into from
May 17, 2022

Conversation

i509VCB
Copy link
Contributor

@i509VCB i509VCB commented May 16, 2022

Description
At the moment the inner hal type for Instance and Adapter are not possible to access. This adds as_hal functions to Instance and Adapter.

HalApi does gain a new function (instance_as_hal) to implement as_hal for Instance without resorting to a Instance::as_(backend) function for every backend.

Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two comments, both fairly minor, but otherwise LGTM

wgpu/src/backend/direct.rs Outdated Show resolved Hide resolved
wgpu-core/src/hub.rs Outdated Show resolved Hide resolved
wgpu/src/lib.rs Outdated Show resolved Hide resolved
These functions are added to allow lower level access to adapter and instance from backends.
Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@cwfitzgerald cwfitzgerald enabled auto-merge (squash) May 17, 2022 06:03
@cwfitzgerald cwfitzgerald merged commit f5c2ff1 into gfx-rs:master May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants