Realm

vk · Structs · S14

16 public declarations with native signatures and source-owned contracts.

StRustExperimental

Stvk::StdVideoVP9ColorConfig

#[repr(C)]pub struct StdVideoVP9ColorConfig { pub flags: StdVideoVP9ColorConfigFlags, pub bit_depth: u8, pub subsampling_x: u8, pub subsampling_y: u8, pub reserved1: u8, pub color_space: StdVideoVP9ColorSpace, }
Native structure StdVideoVP9ColorConfig.

Contract

Native structure StdVideoVP9ColorConfig.

Khronos registry source: StdVideoVP9ColorConfig

Fields

flags

Field
flags: StdVideoVP9ColorConfigFlags

Native field flags.

bit_depth

Field
bit_depth: u8

Native field BitDepth.

subsampling_x

Field
subsampling_x: u8

Native field subsampling_x.

subsampling_y

Field
subsampling_y: u8

Native field subsampling_y.

reserved1

Field
reserved1: u8

Native field reserved1.

color_space

Field
color_space: StdVideoVP9ColorSpace

Native field color_space.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_flags

Method
pub fn set_flags(self, value: StdVideoVP9ColorConfigFlags) -> Self

Set native field flags without native effects.

set_bit_depth

Method
pub fn set_bit_depth(self, value: u8) -> Self

Set native field BitDepth without native effects.

set_subsampling_x

Method
pub fn set_subsampling_x(self, value: u8) -> Self

Set native field subsampling_x without native effects.

set_subsampling_y

Method
pub fn set_subsampling_y(self, value: u8) -> Self

Set native field subsampling_y without native effects.

set_reserved1

Method
pub fn set_reserved1(self, value: u8) -> Self

Set native field reserved1 without native effects.

set_color_space

Method
pub fn set_color_space(self, value: StdVideoVP9ColorSpace) -> Self

Set native field color_space without native effects.

clone

Method
fn clone(&self) -> StdVideoVP9ColorConfig
Returns a duplicate of the value. Read more

Stvk::StdVideoVP9ColorConfigFlags

Contract

Native structure StdVideoVP9ColorConfigFlags.

Khronos registry source: StdVideoVP9ColorConfigFlags

Fields

_bitfield_1

Field
_bitfield_1: u32
No public source comment is attached to this declaration.

Methods and associated items

color_range

Method
pub const fn color_range(&self) -> u32

Read native bitfield color_range.

set_color_range

Method
pub fn set_color_range(&mut self, value: u32)

Set native bitfield color_range, retaining its low 1 bits.

reserved

Method
pub const fn reserved(&self) -> u32

Read native bitfield reserved.

set_reserved

Method
pub fn set_reserved(&mut self, value: u32)

Set native bitfield reserved, retaining its low 31 bits.

new

Method
pub fn new() -> Self

Construct the record with its default native state.

clone

Method
fn clone(&self) -> StdVideoVP9ColorConfigFlags
Returns a duplicate of the value. Read more

Stvk::StdVideoVP9ColorSpace

Contract

Open integer representation of StdVideoVP9ColorSpace.

Khronos registry source: StdVideoVP9ColorSpace

Fields

0

Field
0: i32
No public source comment is attached to this declaration.

Methods and associated items

from_raw

Method
pub const fn from_raw(value: i32) -> Self
No public source comment is attached to this declaration.

as_raw

Method
pub const fn as_raw(self) -> i32
No public source comment is attached to this declaration.

empty

Method
pub const fn empty() -> Self
No public source comment is attached to this declaration.

clone

Method
fn clone(&self) -> StdVideoVP9ColorSpace
Returns a duplicate of the value. Read more

fmt

Method
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more

default

Method
fn default() -> StdVideoVP9ColorSpace
Returns the “default value” for a type. Read more

eq

Method
fn eq(&self, other: &StdVideoVP9ColorSpace) -> bool
Tests for self and other values to be equal, and is used by ==.

Stvk::StdVideoVP9FrameType

Contract

Open integer representation of StdVideoVP9FrameType.

Khronos registry source: StdVideoVP9FrameType

Fields

0

Field
0: i32
No public source comment is attached to this declaration.

Methods and associated items

from_raw

Method
pub const fn from_raw(value: i32) -> Self
No public source comment is attached to this declaration.

as_raw

Method
pub const fn as_raw(self) -> i32
No public source comment is attached to this declaration.

empty

Method
pub const fn empty() -> Self
No public source comment is attached to this declaration.

clone

Method
fn clone(&self) -> StdVideoVP9FrameType
Returns a duplicate of the value. Read more

fmt

Method
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more

default

Method
fn default() -> StdVideoVP9FrameType
Returns the “default value” for a type. Read more

eq

Method
fn eq(&self, other: &StdVideoVP9FrameType) -> bool
Tests for self and other values to be equal, and is used by ==.

Stvk::StdVideoVP9InterpolationFilter

Contract

Open integer representation of StdVideoVP9InterpolationFilter.

Khronos registry source: StdVideoVP9InterpolationFilter

Fields

0

Field
0: i32
No public source comment is attached to this declaration.

Methods and associated items

from_raw

Method
pub const fn from_raw(value: i32) -> Self
No public source comment is attached to this declaration.

as_raw

Method
pub const fn as_raw(self) -> i32
No public source comment is attached to this declaration.

empty

Method
pub const fn empty() -> Self
No public source comment is attached to this declaration.

clone

Method
fn clone(&self) -> StdVideoVP9InterpolationFilter
Returns a duplicate of the value. Read more

fmt

Method
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more

default

Method
fn default() -> StdVideoVP9InterpolationFilter
Returns the “default value” for a type. Read more

eq

Method
fn eq(&self, other: &StdVideoVP9InterpolationFilter) -> bool
Tests for self and other values to be equal, and is used by ==.

Stvk::StdVideoVP9Level

Contract

Open integer representation of StdVideoVP9Level.

Khronos registry source: StdVideoVP9Level

Fields

0

Field
0: i32
No public source comment is attached to this declaration.

Methods and associated items

from_raw

Method
pub const fn from_raw(value: i32) -> Self
No public source comment is attached to this declaration.

as_raw

Method
pub const fn as_raw(self) -> i32
No public source comment is attached to this declaration.

empty

Method
pub const fn empty() -> Self
No public source comment is attached to this declaration.

fmt

Method
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more

default

Method
fn default() -> StdVideoVP9Level
Returns the “default value” for a type. Read more

eq

Method
fn eq(&self, other: &StdVideoVP9Level) -> bool
Tests for self and other values to be equal, and is used by ==.

Stvk::StdVideoVP9LoopFilter

#[repr(C)]pub struct StdVideoVP9LoopFilter { pub flags: StdVideoVP9LoopFilterFlags, pub loop_filter_level: u8, pub loop_filter_sharpness: u8, pub update_ref_delta: u8, pub loop_filter_ref_deltas: [i8; 4], pub update_mode_delta: u8, pub loop_filter_mode_deltas: [i8; 2], }
Native structure StdVideoVP9LoopFilter.

Contract

Native structure StdVideoVP9LoopFilter.

Khronos registry source: StdVideoVP9LoopFilter

Fields

flags

Field
flags: StdVideoVP9LoopFilterFlags

Native field flags.

loop_filter_level

Field
loop_filter_level: u8

Native field loop_filter_level.

loop_filter_sharpness

Field
loop_filter_sharpness: u8

Native field loop_filter_sharpness.

update_ref_delta

Field
update_ref_delta: u8

Native field update_ref_delta.

loop_filter_ref_deltas

Field
loop_filter_ref_deltas: [i8; 4]

Native field loop_filter_ref_deltas.

update_mode_delta

Field
update_mode_delta: u8

Native field update_mode_delta.

loop_filter_mode_deltas

Field
loop_filter_mode_deltas: [i8; 2]

Native field loop_filter_mode_deltas.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_flags

Method
pub fn set_flags(self, value: StdVideoVP9LoopFilterFlags) -> Self

Set native field flags without native effects.

set_loop_filter_level

Method
pub fn set_loop_filter_level(self, value: u8) -> Self

Set native field loop_filter_level without native effects.

set_loop_filter_sharpness

Method
pub fn set_loop_filter_sharpness(self, value: u8) -> Self

Set native field loop_filter_sharpness without native effects.

set_update_ref_delta

Method
pub fn set_update_ref_delta(self, value: u8) -> Self

Set native field update_ref_delta without native effects.

set_loop_filter_ref_deltas

Method
pub fn set_loop_filter_ref_deltas(self, value: [i8; 4]) -> Self

Set native field loop_filter_ref_deltas without native effects.

set_update_mode_delta

Method
pub fn set_update_mode_delta(self, value: u8) -> Self

Set native field update_mode_delta without native effects.

set_loop_filter_mode_deltas

Method
pub fn set_loop_filter_mode_deltas(self, value: [i8; 2]) -> Self

Set native field loop_filter_mode_deltas without native effects.

clone

Method
fn clone(&self) -> StdVideoVP9LoopFilter
Returns a duplicate of the value. Read more

Stvk::StdVideoVP9LoopFilterFlags

Contract

Native structure StdVideoVP9LoopFilterFlags.

Khronos registry source: StdVideoVP9LoopFilterFlags

Fields

_bitfield_1

Field
_bitfield_1: u32
No public source comment is attached to this declaration.

Methods and associated items

loop_filter_delta_enabled

Method
pub const fn loop_filter_delta_enabled(&self) -> u32

Read native bitfield loop_filter_delta_enabled.

set_loop_filter_delta_enabled

Method
pub fn set_loop_filter_delta_enabled(&mut self, value: u32)

Set native bitfield loop_filter_delta_enabled, retaining its low 1 bits.

loop_filter_delta_update

Method
pub const fn loop_filter_delta_update(&self) -> u32

Read native bitfield loop_filter_delta_update.

set_loop_filter_delta_update

Method
pub fn set_loop_filter_delta_update(&mut self, value: u32)

Set native bitfield loop_filter_delta_update, retaining its low 1 bits.

reserved

Method
pub const fn reserved(&self) -> u32

Read native bitfield reserved.

set_reserved

Method
pub fn set_reserved(&mut self, value: u32)

Set native bitfield reserved, retaining its low 30 bits.

new

Method
pub fn new() -> Self

Construct the record with its default native state.

clone

Method
fn clone(&self) -> StdVideoVP9LoopFilterFlags
Returns a duplicate of the value. Read more

Stvk::StdVideoVP9Profile

Contract

Open integer representation of StdVideoVP9Profile.

Khronos registry source: StdVideoVP9Profile

Fields

0

Field
0: i32
No public source comment is attached to this declaration.

Methods and associated items

from_raw

Method
pub const fn from_raw(value: i32) -> Self
No public source comment is attached to this declaration.

as_raw

Method
pub const fn as_raw(self) -> i32
No public source comment is attached to this declaration.

empty

Method
pub const fn empty() -> Self
No public source comment is attached to this declaration.

fmt

Method
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more

default

Method
fn default() -> StdVideoVP9Profile
Returns the “default value” for a type. Read more

eq

Method
fn eq(&self, other: &StdVideoVP9Profile) -> bool
Tests for self and other values to be equal, and is used by ==.

Stvk::StdVideoVP9ReferenceName

Contract

Open integer representation of StdVideoVP9ReferenceName.

Khronos registry source: StdVideoVP9ReferenceName

Fields

0

Field
0: i32
No public source comment is attached to this declaration.

Methods and associated items

from_raw

Method
pub const fn from_raw(value: i32) -> Self
No public source comment is attached to this declaration.

as_raw

Method
pub const fn as_raw(self) -> i32
No public source comment is attached to this declaration.

empty

Method
pub const fn empty() -> Self
No public source comment is attached to this declaration.

clone

Method
fn clone(&self) -> StdVideoVP9ReferenceName
Returns a duplicate of the value. Read more

fmt

Method
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more

default

Method
fn default() -> StdVideoVP9ReferenceName
Returns the “default value” for a type. Read more

eq

Method
fn eq(&self, other: &StdVideoVP9ReferenceName) -> bool
Tests for self and other values to be equal, and is used by ==.

Stvk::StdVideoVP9Segmentation

#[repr(C)]pub struct StdVideoVP9Segmentation { pub flags: StdVideoVP9SegmentationFlags, pub segmentation_tree_probs: [u8; 7], pub segmentation_pred_prob: [u8; 3], pub feature_enabled: [u8; 8], pub feature_data: [[i16; 4]; 8], }
Native structure StdVideoVP9Segmentation.

Contract

Native structure StdVideoVP9Segmentation.

Khronos registry source: StdVideoVP9Segmentation

Fields

flags

Field
flags: StdVideoVP9SegmentationFlags

Native field flags.

segmentation_tree_probs

Field
segmentation_tree_probs: [u8; 7]

Native field segmentation_tree_probs.

segmentation_pred_prob

Field
segmentation_pred_prob: [u8; 3]

Native field segmentation_pred_prob.

feature_enabled

Field
feature_enabled: [u8; 8]

Native field FeatureEnabled.

feature_data

Field
feature_data: [[i16; 4]; 8]

Native field FeatureData.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_flags

Method
pub fn set_flags(self, value: StdVideoVP9SegmentationFlags) -> Self

Set native field flags without native effects.

set_segmentation_tree_probs

Method
pub fn set_segmentation_tree_probs(self, value: [u8; 7]) -> Self

Set native field segmentation_tree_probs without native effects.

set_segmentation_pred_prob

Method
pub fn set_segmentation_pred_prob(self, value: [u8; 3]) -> Self

Set native field segmentation_pred_prob without native effects.

set_feature_enabled

Method
pub fn set_feature_enabled(self, value: [u8; 8]) -> Self

Set native field FeatureEnabled without native effects.

set_feature_data

Method
pub fn set_feature_data(self, value: [[i16; 4]; 8]) -> Self

Set native field FeatureData without native effects.

clone

Method
fn clone(&self) -> StdVideoVP9Segmentation
Returns a duplicate of the value. Read more

Stvk::StdVideoVP9SegmentationFlags

Contract

Native structure StdVideoVP9SegmentationFlags.

Khronos registry source: StdVideoVP9SegmentationFlags

Fields

_bitfield_1

Field
_bitfield_1: u32
No public source comment is attached to this declaration.

Methods and associated items

segmentation_update_map

Method
pub const fn segmentation_update_map(&self) -> u32

Read native bitfield segmentation_update_map.

set_segmentation_update_map

Method
pub fn set_segmentation_update_map(&mut self, value: u32)

Set native bitfield segmentation_update_map, retaining its low 1 bits.

segmentation_temporal_update

Method
pub const fn segmentation_temporal_update(&self) -> u32

Read native bitfield segmentation_temporal_update.

set_segmentation_temporal_update

Method
pub fn set_segmentation_temporal_update(&mut self, value: u32)

Set native bitfield segmentation_temporal_update, retaining its low 1 bits.

segmentation_update_data

Method
pub const fn segmentation_update_data(&self) -> u32

Read native bitfield segmentation_update_data.

set_segmentation_update_data

Method
pub fn set_segmentation_update_data(&mut self, value: u32)

Set native bitfield segmentation_update_data, retaining its low 1 bits.

segmentation_abs_or_delta_update

Method
pub const fn segmentation_abs_or_delta_update(&self) -> u32

Read native bitfield segmentation_abs_or_delta_update.

set_segmentation_abs_or_delta_update

Method
pub fn set_segmentation_abs_or_delta_update(&mut self, value: u32)

Set native bitfield segmentation_abs_or_delta_update, retaining its low 1 bits.

reserved

Method
pub const fn reserved(&self) -> u32

Read native bitfield reserved.

set_reserved

Method
pub fn set_reserved(&mut self, value: u32)

Set native bitfield reserved, retaining its low 28 bits.

new

Method
pub fn new() -> Self

Construct the record with its default native state.

clone

Method
fn clone(&self) -> StdVideoVP9SegmentationFlags
Returns a duplicate of the value. Read more

Stvk::StencilFaceFlagBits

Contract

Open integer representation of VkStencilFaceFlagBits.

Khronos reference: VkStencilFaceFlagBits

Fields

0

Field
0: u32
No public source comment is attached to this declaration.

Methods and associated items

from_raw

Method
pub const fn from_raw(value: u32) -> Self
No public source comment is attached to this declaration.

as_raw

Method
pub const fn as_raw(self) -> u32
No public source comment is attached to this declaration.

empty

Method
pub const fn empty() -> Self
No public source comment is attached to this declaration.

Output

Method
type Output = StencilFaceFlagBits
The resulting type after applying the & operator.

Output-1

Method
type Output = StencilFaceFlagBits
The resulting type after applying the | operator.

Output-2

Method
type Output = StencilFaceFlagBits
The resulting type after applying the ^ operator.

fmt

Method
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more

default

Method
fn default() -> StencilFaceFlagBits
Returns the “default value” for a type. Read more

Output-3

Method
type Output = StencilFaceFlagBits
The resulting type after applying the ! operator.

eq

Method
fn eq(&self, other: &StencilFaceFlagBits) -> bool
Tests for self and other values to be equal, and is used by ==.

Stvk::StencilOp

Contract

Open integer representation of VkStencilOp.

Khronos reference: VkStencilOp

Fields

0

Field
0: i32
No public source comment is attached to this declaration.

Methods and associated items

from_raw

Method
pub const fn from_raw(value: i32) -> Self
No public source comment is attached to this declaration.

as_raw

Method
pub const fn as_raw(self) -> i32
No public source comment is attached to this declaration.

empty

Method
pub const fn empty() -> Self
No public source comment is attached to this declaration.

fmt

Method
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more

eq

Method
fn eq(&self, other: &StencilOp) -> bool
Tests for self and other values to be equal, and is used by ==.

Stvk::StencilOpState

#[repr(C)]pub struct StencilOpState { pub fail_op: StencilOp, pub pass_op: StencilOp, pub depth_fail_op: StencilOp, pub compare_op: CompareOp, pub compare_mask: u32, pub write_mask: u32, pub reference: u32, }
Native structure VkStencilOpState.

Contract

Native structure VkStencilOpState.

Khronos reference: VkStencilOpState

Fields

fail_op

Field
fail_op: StencilOp

Native field failOp.

pass_op

Field
pass_op: StencilOp

Native field passOp.

depth_fail_op

Field
depth_fail_op: StencilOp

Native field depthFailOp.

compare_op

Field
compare_op: CompareOp

Native field compareOp.

compare_mask

Field
compare_mask: u32

Native field compareMask.

write_mask

Field
write_mask: u32

Native field writeMask.

reference

Field
reference: u32

Native field reference.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_fail_op

Method
pub fn set_fail_op(self, value: StencilOp) -> Self

Set native field failOp without native effects.

set_pass_op

Method
pub fn set_pass_op(self, value: StencilOp) -> Self

Set native field passOp without native effects.

set_depth_fail_op

Method
pub fn set_depth_fail_op(self, value: StencilOp) -> Self

Set native field depthFailOp without native effects.

set_compare_op

Method
pub fn set_compare_op(self, value: CompareOp) -> Self

Set native field compareOp without native effects.

set_compare_mask

Method
pub fn set_compare_mask(self, value: u32) -> Self

Set native field compareMask without native effects.

set_write_mask

Method
pub fn set_write_mask(self, value: u32) -> Self

Set native field writeMask without native effects.

set_reference

Method
pub fn set_reference(self, value: u32) -> Self

Set native field reference without native effects.

Stvk::StreamDescriptorSurfaceCreateFlagsGGP

Contract

Open integer representation of VkStreamDescriptorSurfaceCreateFlagsGGP.

Khronos reference: VkStreamDescriptorSurfaceCreateFlagsGGP

Fields

0

Field
0: u32
No public source comment is attached to this declaration.

Methods and associated items

from_raw

Method
pub const fn from_raw(value: u32) -> Self
No public source comment is attached to this declaration.

as_raw

Method
pub const fn as_raw(self) -> u32
No public source comment is attached to this declaration.

empty

Method
pub const fn empty() -> Self
No public source comment is attached to this declaration.

Output

Method
type Output = StreamDescriptorSurfaceCreateFlagsGGP
The resulting type after applying the & operator.

Output-1

Method
type Output = StreamDescriptorSurfaceCreateFlagsGGP
The resulting type after applying the | operator.

Output-2

Method
type Output = StreamDescriptorSurfaceCreateFlagsGGP
The resulting type after applying the ^ operator.

clone

Method
fn clone(&self) -> StreamDescriptorSurfaceCreateFlagsGGP
Returns a duplicate of the value. Read more

fmt

Method
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more

default

Method
fn default() -> StreamDescriptorSurfaceCreateFlagsGGP
Returns the “default value” for a type. Read more

Output-3

Method
type Output = StreamDescriptorSurfaceCreateFlagsGGP
The resulting type after applying the ! operator.

eq

Method
fn eq(&self, other: &StreamDescriptorSurfaceCreateFlagsGGP) -> bool
Tests for self and other values to be equal, and is used by ==.