Realm

vk · Unions · P1

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

UnRustExperimental

Unvk::PerformanceCounterResultKHR

#[repr(C)]pub union PerformanceCounterResultKHR { pub int32: i32, pub int64: i64, pub uint32: u32, pub uint64: u64, pub float32: f32, pub float64: f64, }
Native union VkPerformanceCounterResultKHR.

Contract

Native union VkPerformanceCounterResultKHR.

Khronos reference: VkPerformanceCounterResultKHR

Fields

int32

Field
int32: i32

Native field int32.

int64

Field
int64: i64

Native field int64.

uint32

Field
uint32: u32

Native field uint32.

uint64

Field
uint64: u64

Native field uint64.

float32

Field
float32: f32

Native field float32.

float64

Field
float64: f64

Native field float64.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_int32

Method
pub fn set_int32(self, value: i32) -> Self

Set native field int32 without native effects.

set_int64

Method
pub fn set_int64(self, value: i64) -> Self

Set native field int64 without native effects.

set_uint32

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

Set native field uint32 without native effects.

set_uint64

Method
pub fn set_uint64(self, value: u64) -> Self

Set native field uint64 without native effects.

set_float32

Method
pub fn set_float32(self, value: f32) -> Self

Set native field float32 without native effects.

set_float64

Method
pub fn set_float64(self, value: f64) -> Self

Set native field float64 without native effects.

clone

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

Unvk::PerformanceValueDataINTEL

pub union PerformanceValueDataINTEL<'a> { pub value32: u32, pub value64: u64, pub value_float: f32, pub value_bool: Bool32, pub value_string: *const c_char, /* private fields */ }
Native union VkPerformanceValueDataINTEL.

Contract

Native union VkPerformanceValueDataINTEL.

Khronos reference: VkPerformanceValueDataINTEL

Fields

value32

Field
value32: u32

Native field value32.

value64

Field
value64: u64

Native field value64.

value_float

Field
value_float: f32

Native field valueFloat.

value_bool

Field
value_bool: Bool32

Native field valueBool.

value_string

Field
value_string: *const c_char

Native field valueString.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_value32

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

Set native field value32 without native effects.

set_value64

Method
pub fn set_value64(self, value: u64) -> Self

Set native field value64 without native effects.

set_value_float

Method
pub fn set_value_float(self, value: f32) -> Self

Set native field valueFloat without native effects.

set_value_bool

Method
pub fn set_value_bool(self, value: Bool32) -> Self

Set native field valueBool without native effects.

set_value_string

Method
pub fn set_value_string(self, value: &'a CStr) -> Self

Set native field valueString without native effects.

clone

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

Unvk::PipelineExecutableStatisticValueKHR

Contract

Native union VkPipelineExecutableStatisticValueKHR.

Khronos reference: VkPipelineExecutableStatisticValueKHR

Fields

b32

Field
b32: Bool32

Native field b32.

i64

Field
i64: i64

Native field i64.

u64

Field
u64: u64

Native field u64.

f64

Field
f64: f64

Native field f64.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_b32

Method
pub fn set_b32(self, value: Bool32) -> Self

Set native field b32 without native effects.

set_i64

Method
pub fn set_i64(self, value: i64) -> Self

Set native field i64 without native effects.

set_u64

Method
pub fn set_u64(self, value: u64) -> Self

Set native field u64 without native effects.

set_f64

Method
pub fn set_f64(self, value: f64) -> Self

Set native field f64 without native effects.

clone

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