mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 21:28:45 +00:00
81 lines
2.2 KiB
C
81 lines
2.2 KiB
C
/*
|
|
* GStreamer
|
|
* Copyright (C) 2019 Matthew Waters <matthew@centricular.com>
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Library General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Library General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Library General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
* Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
#ifndef __GST_VULKAN_BARRIER_H__
|
|
#define __GST_VULKAN_BARRIER_H__
|
|
|
|
#include <gst/vulkan/vulkan_fwd.h>
|
|
#include <gst/vulkan/gstvkapi.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
/**
|
|
* GstVulkanBarrierType:
|
|
* @GST_VULKAN_BARRIER_NONE: no barrier type
|
|
* @GST_VULKAN_BARRIER_MEMORY: memory barrier
|
|
* @GST_VULKAN_BARRIER_BUFFER: buffer barrier
|
|
* @GST_VULKAN_BARRIER_IMAGE: image barrier
|
|
*
|
|
* Since: 1.18
|
|
*/
|
|
typedef enum
|
|
{
|
|
GST_VULKAN_BARRIER_NONE = 0,
|
|
GST_VULKAN_BARRIER_TYPE_MEMORY = 1,
|
|
GST_VULKAN_BARRIER_TYPE_BUFFER = 2,
|
|
GST_VULKAN_BARRIER_TYPE_IMAGE = 3,
|
|
} GstVulkanBarrierType;
|
|
|
|
/**
|
|
* GstVulkanBarrierFlags:
|
|
* @GST_VULKAN_BARRIER_FLAGS_NONE: no flags
|
|
*
|
|
* Since: 1.18
|
|
*/
|
|
typedef enum
|
|
{
|
|
GST_VULKAN_BARRIER_FLAG_NONE = 0,
|
|
} GstVulkanBarrierFlags;
|
|
|
|
/**
|
|
* GstVulkanBarrierMemoryInfo:
|
|
* @type: the #GstVulkanBarrierType of the barrier
|
|
* @flags the #GstVulkanBarrierFlags of the barrier
|
|
* @queue: the #GstVulkanQueue this barrier is to execute with
|
|
* @pipeline_stages: the stages in the graphics pipeline to execute the barrier
|
|
* @access_flags: access flags
|
|
*
|
|
* Since: 1.18
|
|
*/
|
|
struct _GstVulkanBarrierMemoryInfo
|
|
{
|
|
GstVulkanBarrierType type;
|
|
GstVulkanBarrierFlags flags;
|
|
GstVulkanQueue * queue;
|
|
VkPipelineStageFlags pipeline_stages;
|
|
VkAccessFlags access_flags;
|
|
|
|
/* <private> */
|
|
gpointer _reserved [GST_PADDING];
|
|
};
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GST_VULKAN_BARRIER_H__ */
|