namespace Brutal.VulkanApi
{
///
/// VkVideoEncodeInfoKHR - Structure specifying video encode parameters
///
///
///
/// The VkVideoEncodeInfoKHR structure is defined as:
///
///
/// // Provided by VK_KHR_video_encode_queue
/// typedef struct VkVideoEncodeInfoKHR {
/// VkStructureType sType;
/// const void* pNext;
/// VkVideoEncodeFlagsKHR flags;
/// VkBuffer dstBuffer;
/// VkDeviceSize dstBufferOffset;
/// VkDeviceSize dstBufferRange;
/// VkVideoPictureResourceInfoKHR srcPictureResource;
/// const VkVideoReferenceSlotInfoKHR* pSetupReferenceSlot;
/// uint32_t referenceSlotCount;
/// const VkVideoReferenceSlotInfoKHR* pReferenceSlots;
/// uint32_t precedingExternallyEncodedBytes;
/// } VkVideoEncodeInfoKHR;
///
///
[StructLayout(LayoutKind.Explicit, Size = 128)]
public unsafe partial struct VkVideoEncodeInfoKHR()
{
///
/// sType is a VkStructureType value identifying this structure.
///
[FieldOffset(0)]
internal readonly VkStructureType sType = VkStructureType.VideoEncodeInfoKHR;
///
/// Next is a pointer to a structure extending this structure.
///
[FieldOffset(8)]
public void* Next;
///
/// Flags is reserved for future use.
///
[FieldOffset(16)]
public VkVideoEncodeFlagsKHR Flags;
///
/// DstBuffer is the destination video bitstream buffer to write the encoded bitstream to.
///
[FieldOffset(24)]
public VkBuffer DstBuffer;
///
/// DstBufferOffset is the starting offset in bytes from the start of dstBuffer to write the encoded bitstream to.
///
[FieldOffset(32)]
public ByteSize64 DstBufferOffset;
///
/// DstBufferRange is the maximum bitstream size in bytes that can be written to dstBuffer, starting from dstBufferOffset.
///
[FieldOffset(40)]
public ByteSize64 DstBufferRange;
///
/// SrcPictureResource is the video picture resource to use as the encode input picture^.
///
[FieldOffset(48)]
public VkVideoPictureResourceInfoKHR SrcPictureResource;
///
/// SetupReferenceSlot is `NULL` or a pointer to a VkVideoReferenceSlotInfoKHR structure specifying the reconstructed picture information^.
///
[FieldOffset(96)]
public VkVideoReferenceSlotInfoKHR* SetupReferenceSlot;
///
/// ReferenceSlotCount is the number of elements in the pReferenceSlots array.
///
[FieldOffset(104)]
public int ReferenceSlotCount;
///
/// ReferenceSlots is `NULL` or a pointer to an array of VkVideoReferenceSlotInfoKHR structures describing the DPB slots and corresponding reference picture^ resources to use in this video encode operation (the set of active reference pictures^).
///
[FieldOffset(112)]
public VkVideoReferenceSlotInfoKHR* ReferenceSlots;
///
/// PrecedingExternallyEncodedBytes is the number of bytes externally encoded by the application to the video bitstream and is used to update the internal state of the implementation's rate control^ algorithm to account for the bitrate budget consumed by these externally encoded bytes.
///
[FieldOffset(120)]
public int PrecedingExternallyEncodedBytes;
}
}