namespace Brutal.VulkanApi { /// /// VkVideoEncodeRateControlInfoKHR - Structure to set encode stream rate control parameters /// /// /// /// The VkVideoEncodeRateControlInfoKHR structure is defined as: /// /// /// // Provided by VK_KHR_video_encode_queue /// typedef struct VkVideoEncodeRateControlInfoKHR { /// VkStructureType sType; /// const void* pNext; /// VkVideoEncodeRateControlFlagsKHR flags; /// VkVideoEncodeRateControlModeFlagBitsKHR rateControlMode; /// uint32_t layerCount; /// const VkVideoEncodeRateControlLayerInfoKHR* pLayers; /// uint32_t virtualBufferSizeInMs; /// uint32_t initialVirtualBufferSizeInMs; /// } VkVideoEncodeRateControlInfoKHR; /// /// [StructLayout(LayoutKind.Explicit, Size = 48)] public unsafe partial struct VkVideoEncodeRateControlInfoKHR() { /// /// sType is a VkStructureType value identifying this structure. /// [FieldOffset(0)] internal readonly VkStructureType sType = VkStructureType.VideoEncodeRateControlInfoKHR; /// /// 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 VkVideoEncodeRateControlFlagsKHR Flags; /// /// RateControlMode is a VkVideoEncodeRateControlModeFlagsKHR value specifying the rate control mode^. /// [FieldOffset(20)] public VkVideoEncodeRateControlModeFlagsKHR RateControlMode; /// /// LayerCount specifies the number of rate control layers^ to use. /// [FieldOffset(24)] public int LayerCount; /// /// Layers is a pointer to an array of layerCount VkVideoEncodeRateControlLayerInfoKHR structures, each specifying the rate control configuration of the corresponding rate control layer. /// [FieldOffset(32)] public VkVideoEncodeRateControlLayerInfoKHR* Layers; /// /// VirtualBufferSizeInMs is the size in milliseconds of the virtual buffer used by the implementation's rate control algorithm for the leaky bucket model^, with respect to the average bitrate of the stream calculated by summing the values of the averageBitrate members of the elements of the pLayers array. /// [FieldOffset(40)] public int VirtualBufferSizeInMs; /// /// InitialVirtualBufferSizeInMs is the initial occupancy in milliseconds of the virtual buffer used by the implementation's rate control algorithm for the leaky bucket model^. /// [FieldOffset(44)] public int InitialVirtualBufferSizeInMs; } }