-
-
Notifications
You must be signed in to change notification settings - Fork 646
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
vkCmdSetCheckpointNV should allow a value of 0 for the checkpoint marker #702
Labels
Comments
Spasi
added a commit
to Spasi/lwjgl3
that referenced
this issue
Dec 16, 2021
Not happy with this fix, since it's obviously wrong in a few places (e.g. the first three VkAllocationCallbacks function pointers). LWJGL uses the "optional" property to mark parameters/members as nullable, but it is missing in cases like the one reported with LWJGL#702. However, "noautovalidity" is consistent and LWJGL now interprets it literally and does not perform any kind of validation, including nullability. This may be reverted if the Vulkan-Docs situation changes in the future.
Spasi
added a commit
to Spasi/lwjgl3
that referenced
this issue
Dec 20, 2021
Not happy with this fix, since it's obviously wrong in a few places (e.g. the first three VkAllocationCallbacks function pointers). LWJGL uses the "optional" property to mark parameters/members as nullable, but it is missing in cases like the one reported with LWJGL#702. However, "noautovalidity" is consistent and LWJGL now interprets it literally and does not perform any kind of validation, including nullability. This may be reverted if the Vulkan-Docs situation changes in the future.
Spasi
added a commit
to Spasi/lwjgl3
that referenced
this issue
Dec 20, 2021
Not happy with this fix, since it's obviously wrong in a few places (e.g. the first three VkAllocationCallbacks function pointers). LWJGL uses the "optional" property to mark parameters/members as nullable, but it is missing in cases like the one reported with LWJGL#702. However, "noautovalidity" is consistent and LWJGL now interprets it literally and does not perform any kind of validation, including nullability. This may be reverted if the Vulkan-Docs situation changes in the future.
Spasi
added a commit
to Spasi/lwjgl3
that referenced
this issue
Dec 20, 2021
Not happy with this fix, since it's obviously wrong in a few places (e.g. the first three VkAllocationCallbacks function pointers). LWJGL uses the "optional" property to mark parameters/members as nullable, but it is missing in cases like the one reported with LWJGL#702. However, "noautovalidity" is consistent and LWJGL now interprets it literally and does not perform any kind of validation, including nullability. This may be reverted if the Vulkan-Docs situation changes in the future.
Thanks @tlf30, will be fixed in the next snapshot! |
Thank you @Spasi, that fix has a wide impact, but I did not see anything that would cause an immediate issues. It is unfortunate that there are errors in the vulkan spec on things like this. Great job and thanks for all your hard work! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
3.3.0 (nightly)
Platform
Windows x64
JDK
Adoptium 17
Module
Vulkan
Bug description
NVDeviceDiagnosticCheckpoints.vkCmdSetCheckpointNV(VkCommandBuffer commandBuffer, @NativeType("void const *") long pCheckpointMarker)
should allow for the value0L
as thepCheckpointMarker
as this is a user provided pointer that is passed back to the user. It can be useful to pass a0L
as thepCheckpointMarker
, especially when thepCheckpointMarker
is representing an index in a list of markers.See: https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/vkCmdSetCheckpointNV.html
Thanks,
Trevor
Stacktrace or crash log output
The text was updated successfully, but these errors were encountered: