-
Notifications
You must be signed in to change notification settings - Fork 196
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
Document/explain differences between ash::Device and ash::vk::Device #576
Comments
|
I find I reference |
It shouldn't be a big deal, the |
Improving the documentation is welcome, but I won't force this breaking (and IMO rather senseless) name change on all the many users of our crate. |
This is not possible, we still have the lower-level FFI function signatures that leverage the |
Thank you for your explanation and comments. I see the point that the current name is concise and convenient and even more that a name change would affect every user of the crate without extremely important reason. Also, it being the same as My concerns would be addressed with just the documentation change. "This is a dispatchable object, whose main purpose is to provide access to Vulkan's functions. It is not identical to Vulkan's device object (see [vk::Device][vk::Device]). The latter, however, can be accessed via the All functions from the Vulkan API (except those from extensions) which have a VkDevice as their first argument, have become methods of Also, all {remove current link to VkDevice}" — If there is a new name, however, I would prefer In |
|
Deprecating is however done with the intention of removing it at some point, perhaps in the next breaking release cycle over. Alternatively we're forcing users to disable the deprecation lint globally (entirely undesired) or add lots of localized exemptions which is pretty much the same as forcing the rename change on them. |
I think you are missing two important options. Don't upgrade ash and start using the new name. |
Ash features two different
Device
types (ash::Device
andash::vk::Device
), and it is difficult for newcomers (or, at least, was difficult for me) to recognize and understand the difference.The docs of both link to
https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkDevice.html
although there is a difference.
I assume that the parallel existence of both is deliberate, but I would suggest to include an explanation in the docs why there are two Device types and which to use when.
Alternatives/additions I can think of:
(Similar comments apply to
Instance
.)The text was updated successfully, but these errors were encountered: