-
Notifications
You must be signed in to change notification settings - Fork 473
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
Unclear whether VK_FORMAT_UNDEFINED
is a "valid VkFormat"
#2165
Comments
That points towards |
PS: case of |
I understand @Rua concern here, I also have found times where I am unsure if Happy to spend some time and go over where we input |
(self note) here are all the function/struct that take a vkGetPhysicalDeviceFormatProperties VkBufferViewCreateInfo |
Here is the description: "not specified", does that mean not provided? in light of the functions above. Is there no error to reject this for all those functions? of are we saying UNDEFINED is OK in some situations - in which case it would be valid. |
@stonesthrow I did create an internal MR at https://gitlab.khronos.org/vulkan/vulkan/-/merge_requests/6017 I think the issue is we can have
|
This should be fixed in the 1.3.276 spec update. |
Many APIs that take
VkFormat
don't explicitly say whetherVK_FORMAT_UNDEFINED
is allowed as one of the values or not. For example,vkGetPhysicalDeviceFormatProperties2
only says "format
must be a valid VkFormat value". SinceVK_FORMAT_UNDEFINED
is technically a valid value of theVkFormat
enum, that would imply that it's allowed forvkGetPhysicalDeviceFormatProperties2
, but that seems unlikely.On the other hand, if we take "valid" to mean "must not be
VK_FORMAT_UNDEFINED
", then that leads to a contradiction for APIs that do allow for that value, such asVkImageCreateInfo
. That struct, too, has a VUID that says it must be a valid VkFormat value.So the situation is very unclear. Is
VK_FORMAT_UNDEFINED
a "valid VkFormat value" or not? If it is, then extra VUIDs are needed where that value is disallowed. If it isn't, then adjustment is needed where that value is allowed.The text was updated successfully, but these errors were encountered: