namespace Brutal.VulkanApi
{
///
[StructLayout(LayoutKind.Explicit, Size = 4)]
public partial struct StdVideoEncodeAV1OperatingPointInfoFlags()
{
///
/// DecoderModelPresentForThisOp
///
[FieldOffset(0)]
private int _decoderModelPresentForThisOp;
///
/// LowDelayModeFlag
///
[FieldOffset(0)]
private int _lowDelayModeFlag;
///
/// InitialDisplayDelayPresentForThisOp
///
[FieldOffset(0)]
private int _initialDisplayDelayPresentForThisOp;
///
/// Reserved
///
[FieldOffset(0)]
private int _reserved;
}
public partial struct StdVideoEncodeAV1OperatingPointInfoFlags
{
///
public bool DecoderModelPresentForThisOp
{
get => BitFields.HasFlag(_decoderModelPresentForThisOp, 0);
set => BitFields.SetFlag(ref _decoderModelPresentForThisOp, 0, value);
}
///
public bool LowDelayModeFlag
{
get => BitFields.HasFlag(_lowDelayModeFlag, 1);
set => BitFields.SetFlag(ref _lowDelayModeFlag, 1, value);
}
///
public bool InitialDisplayDelayPresentForThisOp
{
get => BitFields.HasFlag(_initialDisplayDelayPresentForThisOp, 2);
set => BitFields.SetFlag(ref _initialDisplayDelayPresentForThisOp, 2, value);
}
///
public int Reserved
{
get => BitFields.ExtractRange(_reserved, start: 3, length: 29);
set => BitFields.SetRange(ref _reserved, start: 3, length: 29, value);
}
}
}