Enum
VkVideoEncodeFeedbackFlagBitsKHR
Bits specifying queried video encode feedback values
Bits which can be set in
VkQueryPoolVideoEncodeFeedbackCreateInfoKHR::encodeFeedbackFlags
for video encode feedback query pools are:
typedef enum VkVideoEncodeFeedbackFlagBitsKHR {
VK_VIDEO_ENCODE_FEEDBACK_BITSTREAM_BUFFER_OFFSET_BIT_KHR = 0x00000001,
VK_VIDEO_ENCODE_FEEDBACK_BITSTREAM_BYTES_WRITTEN_BIT_KHR = 0x00000002,
VK_VIDEO_ENCODE_FEEDBACK_BITSTREAM_HAS_OVERRIDES_BIT_KHR = 0x00000004,
// Provided by extensions
VK_VIDEO_ENCODE_FEEDBACK_RESERVED_3_BIT_KHR = 0x00000008,
VK_VIDEO_ENCODE_FEEDBACK_RESERVED_4_BIT_KHR = 0x00000010,
VK_VIDEO_ENCODE_FEEDBACK_RESERVED_5_BIT_KHR = 0x00000020,
VK_VIDEO_ENCODE_FEEDBACK_RESERVED_6_BIT_KHR = 0x00000040,
VK_VIDEO_ENCODE_FEEDBACK_RESERVED_7_BIT_KHR = 0x00000080,
VK_VIDEO_ENCODE_FEEDBACK_RESERVED_8_BIT_KHR = 0x00000100,
VK_VIDEO_ENCODE_FEEDBACK_RESERVED_9_BIT_KHR = 0x00000200,
} VkVideoEncodeFeedbackFlagBitsKHR;
pub struct VideoEncodeFeedbackFlagBitsKHR(u32);
impl VideoEncodeFeedbackFlagBitsKHR {
pub const BITSTREAM_BUFFER_OFFSET: Self = 0x00000001;
pub const BITSTREAM_BYTES_WRITTEN: Self = 0x00000002;
pub const BITSTREAM_HAS_OVERRIDES: Self = 0x00000004;
pub const RESERVED_3: Self = 0x00000008;
pub const RESERVED_4: Self = 0x00000010;
pub const RESERVED_5: Self = 0x00000020;
pub const RESERVED_6: Self = 0x00000040;
pub const RESERVED_7: Self = 0x00000080;
pub const RESERVED_8: Self = 0x00000100;
pub const RESERVED_9: Self = 0x00000200;
}
VK_VIDEO_ENCODE_FEEDBACK_BITSTREAM_BUFFER_OFFSET_BIT_KHRspecifies that queries managed by the pool will capture the byte offset of the bitstream data written by the video encode operation to the bitstream buffer specified in VkVideoEncodeInfoKHR::dstBufferrelative to the offset specified in VkVideoEncodeInfoKHR::dstBufferOffset. For the first video encode operation issued by any video encode command, this value will always be zero, meaning that bitstream data is always written to the buffer specified in VkVideoEncodeInfoKHR::dstBufferstarting from the offset specified in VkVideoEncodeInfoKHR::dstBufferOffset.VK_VIDEO_ENCODE_FEEDBACK_BITSTREAM_BYTES_WRITTEN_BIT_KHRspecifies that queries managed by the pool will capture the number of bytes written by the video encode operation to the bitstream buffer specified in VkVideoEncodeInfoKHR::dstBuffer.VK_VIDEO_ENCODE_FEEDBACK_BITSTREAM_HAS_OVERRIDES_BIT_KHRspecifies that queries managed by the pool will capture a boolean value indicating that the data written to the bitstream buffer specified in VkVideoEncodeInfoKHR::dstBuffercontains overridden parameters.
When retrieving the results of video encode feedback queries, the values
corresponding to each enabled video encode feedback are written in the order
of the bits defined above, followed by an optional value indicating
availability or result status if VK_QUERY_RESULT_WITH_AVAILABILITY_BIT
or VK_QUERY_RESULT_WITH_STATUS_BIT_KHR is specified, respectively.
If the result status of a video encode feedback query is negative, then the results of all enabled video encode feedback values will be undefined.
Applications should always specify
VK_QUERY_RESULT_WITH_STATUS_BIT_KHR
when retrieving the results of video encode feedback queries and ignore such
undefined video encode feedback values for any
unsuccessfully completed video encode operations.Type
Enum