-
Notifications
You must be signed in to change notification settings - Fork 327
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
Add VK_KHR_draw_indirect_count extensions. #2661
Conversation
a0c1d60
to
958f567
Compare
return nil, nil, fmt.Errorf("Cannot find Buffer %v", d.Buffer()) | ||
} | ||
if !GetState(s).Buffers().Contains(d.CountBuffer()) { | ||
return nil, nil, fmt.Errorf("Cannot find Buffer %v", d.Buffer()) |
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.
It might be helpful to say "Count Buffer" here and in each of the other functions, so that it's more clear which argument the error is for.
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.
Done
gapis/api/vulkan/vulkan.api
Outdated
@@ -227,6 +229,9 @@ sub ref!ExtensionSet supportedDeviceExtensions() { | |||
supported.ExtensionNames["VK_KHR_maintenance1"] = true | |||
supported.ExtensionNames["VK_KHR_maintenance2"] = true | |||
supported.ExtensionNames["VK_KHR_maintenance3"] = true | |||
supported.ExtensionNames["VK_KHR_maintenance3"] = true |
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.
This one is extra and duplicates the previous line.
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.
Done
|
||
sub void dovkCmdDrawIndirectCountCOMMON!T(T draw) { | ||
useRenderPass() | ||
if draw.MaxDrawCount > 0 { |
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.
nit: Everywhere this sub is called, it's already guarded with this check. Could make it a precondition of this sub - I think a comment would do.
Same for dovkCmdDrawIndexedIndirectCountCOMMON
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.
Done
This also adds VK_AMD_draw_indirect_count which is the same.
958f567
to
94f99e0
Compare
This also adds VK_AMD_draw_indirect_count which is the same.