mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
vulkan: Add a vk_queue_submit_has_bind() helper
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25576>
This commit is contained in:
parent
c95b646e23
commit
899c774b9a
1 changed files with 8 additions and 0 deletions
|
|
@ -244,6 +244,14 @@ struct vk_queue_submit {
|
|||
struct vk_sync_timeline_point **_signal_points;
|
||||
};
|
||||
|
||||
static inline bool
|
||||
vk_queue_submit_has_bind(const struct vk_queue_submit *submit)
|
||||
{
|
||||
return submit->buffer_bind_count > 0 ||
|
||||
submit->image_opaque_bind_count > 0 ||
|
||||
submit->image_bind_count > 0;
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue