Skip to content

wgpu-hal: vulkan::adapter::PhysicalDeviceFeatures is private #7681

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

Open
afishhh opened this issue May 10, 2025 · 0 comments · May be fixed by #7682
Open

wgpu-hal: vulkan::adapter::PhysicalDeviceFeatures is private #7681

afishhh opened this issue May 10, 2025 · 0 comments · May be fixed by #7682

Comments

@afishhh
Copy link

afishhh commented May 10, 2025

vulkan::Adapter::physical_device_features returns PhysicalDeviceFeatures and is a public function, but the PhysicalDeviceFeatures struct is private.

I was implementing a C API for basically creating a wgpu::Device and wgpu::Queue piece by piece from Vulkan objects, this structure seems required to be able to query the device features that wgpu needs but can't be used because it's private. This was the only obstacle I encountered while doing this and otherwise the wgpu-hal API seems to work very well for this use-case, so unless I missed something this appears to be a mistake and the struct should just be re-exported or the adapter module made public?

PhysicalDeviceProperties also seems to have the same problem since it too is grayed out in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

1 participant