namespace Brutal.VulkanApi { /// /// VkVideoDecodeInfoKHR - Structure specifying video decode parameters /// /// /// /// The VkVideoDecodeInfoKHR structure is defined as: /// /// /// // Provided by VK_KHR_video_decode_queue /// typedef struct VkVideoDecodeInfoKHR { /// VkStructureType sType; /// const void* pNext; /// VkVideoDecodeFlagsKHR flags; /// VkBuffer srcBuffer; /// VkDeviceSize srcBufferOffset; /// VkDeviceSize srcBufferRange; /// VkVideoPictureResourceInfoKHR dstPictureResource; /// const VkVideoReferenceSlotInfoKHR* pSetupReferenceSlot; /// uint32_t referenceSlotCount; /// const VkVideoReferenceSlotInfoKHR* pReferenceSlots; /// } VkVideoDecodeInfoKHR; /// /// [StructLayout(LayoutKind.Explicit, Size = 120)] public unsafe partial struct VkVideoDecodeInfoKHR() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.VideoDecodeInfoKHR; /// /// Next is `NULL` or a pointer to a structure extending this structure. /// [FieldOffset(8)] public void* Next; /// /// Flags is reserved for future use. /// [FieldOffset(16)] public VkVideoDecodeFlagsKHR Flags; /// /// SrcBuffer is the source video bitstream buffer to read the encoded bitstream from. /// [FieldOffset(24)] public VkBuffer SrcBuffer; /// /// SrcBufferOffset is the starting offset in bytes from the start of srcBuffer to read the encoded bitstream from. /// [FieldOffset(32)] public ByteSize64 SrcBufferOffset; /// /// SrcBufferRange is the size in bytes of the encoded bitstream to decode from srcBuffer, starting from srcBufferOffset. /// [FieldOffset(40)] public ByteSize64 SrcBufferRange; /// /// DstPictureResource is the video picture resource to use as the decode output picture^. /// [FieldOffset(48)] public VkVideoPictureResourceInfoKHR DstPictureResource; /// /// 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 decode operation (the set of active reference pictures^). /// [FieldOffset(112)] public VkVideoReferenceSlotInfoKHR* ReferenceSlots; } }