Realm

vk · Structs · U1

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

StRustExperimental

Stvk::ubm_device

Contract

Native type ubm_device.

Khronos registry source: ubm_device

Stvk::ubm_surface

Contract

Native type ubm_surface.

Khronos registry source: ubm_surface

Stvk::UbmSurfaceCreateFlagsSEC

Contract

Open integer representation of VkUbmSurfaceCreateFlagsSEC.

Khronos reference: VkUbmSurfaceCreateFlagsSEC

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 = UbmSurfaceCreateFlagsSEC
The resulting type after applying the & operator.

Output-1

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

Output-2

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

clone

Method
fn clone(&self) -> UbmSurfaceCreateFlagsSEC
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() -> UbmSurfaceCreateFlagsSEC
Returns the “default value” for a type. Read more

Output-3

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

eq

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

Stvk::UbmSurfaceCreateInfoSEC

pub struct UbmSurfaceCreateInfoSEC<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub flags: UbmSurfaceCreateFlagsSEC, pub device: *mut ubm_device, pub surface: *mut ubm_surface, /* private fields */ }
Native structure VkUbmSurfaceCreateInfoSEC.

Contract

Native structure VkUbmSurfaceCreateInfoSEC.

Khronos reference: VkUbmSurfaceCreateInfoSEC

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

flags

Field
flags: UbmSurfaceCreateFlagsSEC

Native field flags.

device

Field
device: *mut ubm_device

Native field device.

surface

Field
surface: *mut ubm_surface

Native field surface.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its canonical sType tag and default native state.

set_flags

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

Set native field flags without native effects.

set_device

Method
pub unsafe fn set_device(self, value: *mut ubm_device) -> Self

Set native pointer device explicitly. No borrow or extent is inferred.

Safety

The caller must establish pointee validity, extent, alignment, aliasing and the full native retention lifetime before using this record in a native call. Callback, external-object and nested-pointer contracts remain caller obligations.

set_surface

Method
pub unsafe fn set_surface(self, value: *mut ubm_surface) -> Self

Set native pointer surface explicitly. No borrow or extent is inferred.

Safety

The caller must establish pointee validity, extent, alignment, aliasing and the full native retention lifetime before using this record in a native call. Callback, external-object and nested-pointer contracts remain caller obligations.

push_next

Method
pub fn push_next<T: Extends<Self>>( self, next: &'a mut T, ) -> Result<Self, ConstructionError>

Prepend one registry-compatible node, retaining its exclusive borrow.

The node must have a null p_next and both headers must have canonical tags. Existing links are never traversed and remain written after the borrow ends. Type compatibility does not establish enabled extensions or Vulkan valid usage.

Errors

Returns a construction error for a changed structure tag or already-linked node.