mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
nvk: Add a nvk_cmd_buffer_device() helper
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
parent
abb7f69520
commit
7315650739
1 changed files with 6 additions and 0 deletions
|
|
@ -93,6 +93,12 @@ struct nvk_cmd_buffer {
|
|||
VK_DEFINE_HANDLE_CASTS(nvk_cmd_buffer, vk.base, VkCommandBuffer,
|
||||
VK_OBJECT_TYPE_COMMAND_BUFFER)
|
||||
|
||||
static inline struct nvk_device *
|
||||
nvk_cmd_buffer_device(struct nvk_cmd_buffer *cmd)
|
||||
{
|
||||
return (struct nvk_device *)cmd->vk.base.device;
|
||||
}
|
||||
|
||||
VkResult nvk_reset_cmd_buffer(struct nvk_cmd_buffer *cmd_buffer);
|
||||
|
||||
void nvk_cmd_buffer_begin_graphics(struct nvk_cmd_buffer *cmd,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue