-
Notifications
You must be signed in to change notification settings - Fork 194
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
Wrapper get_latency_timings
of VK_NV_low_latency2
is incorrect
#814
Comments
That is quite possible because there was no way to test this extension (a driver update landed 2 days ago that enables it on my laptop 😥), and I believe the documentation wasn't up to snuff either. Will check it out and come up with a solution, thanks for reporting! |
get_latency_timings
of vk_nv_low_latency2
is incorrectget_latency_timings
of vk_nv_low_latency2
is incorrect
get_latency_timings
of vk_nv_low_latency2
is incorrectget_latency_timings
of VK_NV_low_latency2
is incorrect
Yeah the documentation is a bit tricky to read :/ |
Yikes, this is a really dirty API: they should have just had the count value inside Likewise both EDIT: There's also no |
Aaah it's even worse! Because Let me file an issue upstream while typing in yet more workarounds for this poor API design :( |
glad you filed a upstream issue on it, I'll share it with our Nvidia contacts as well that we've been talking to about this (otherwise good) extension |
Thanks, all this collaboration paid off really quickly: KhronosGroup/Vulkan-Docs#2269 (comment) |
The
get_latency_timings
for this extension (added in #802) is a bit odd. it takes a singleVkGetLatencyMarkerInfoNV
as a pointer. and that struct has a number of timings. thecount
variable returns the size ofptimings
NOT the amount ofVkGetLatencyMarkerInfoNV
's to pass in.currently in ash the function signature is this:
But it shouldn't take a slice of
latency_marker_info
but instead a slice ofVkLatencyTimingsFrameReportNV
that is put inside the ptimings variable ofGetLatencyMarkerInfoNV
This is my manual impl i wrote for testing:
The text was updated successfully, but these errors were encountered: