-
Notifications
You must be signed in to change notification settings - Fork 195
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
extensions/ext: Add VK_EXT_image_drm_format_modifier #603
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When resubmitting this, can you also retitle the commit to extensions/ext: Add VK_EXT_image_drm_format_modifier
?
b3d8036
to
e9f9e5d
Compare
e9f9e5d
to
4805666
Compare
469d1bd
to
5bb4f3d
Compare
boop |
@MarijnS95 soft reminder that I have resolved the review comments. |
a598e62
to
b01379c
Compare
Regardless of previous review points, ash so far has been completely unopinionated in terms of not providing any helper functions, and In addition the function signature and implementation make it so that I don't see any real advantage over having it, in favour of letting users implement it directly themselves. @Ralith What's your though on this? My feeling is that we can probably merge this PR straight away without it, and I'm pretty opposed to having it. |
I agree that it would be better to omit it. I don't know that it's a significant usability benefit, and regardless of its merits, it's inconsistent with the rest of ash. |
The primary reason for the helper is very much for convince. Since the return value is effectively an array of variable size, getting a Vec makes sense. The readme does agree with you two regarding the opinionated function.
Since There is some precedence for helpers like those in PhysicalDeviceDrm for getting the physical device property but that does not use the same commands as this case and does not need two implementations either. |
A further question, if the user is expected to implement that part of the api since it is opinionated, should the helper functions in ash for things such as uninitialized vectors be publicly available? |
This note specifically applies to the return type; Opinionated here can be interpreted in two ways:
This is a very simple helper that was apparently introduced in 0ed0a06 and I've adopted it in the KHR Ray Tracing and later
Not sure, it's mostly been an internal helper for now. At the same time it doesn't really fit these functions. It's great that it automagically calls the function twice, once with a nullptr to acquire the length, but this particular use of |
b01379c
to
909e925
Compare
I have removed |
No description provided.