Realm

vk · Structs · R4

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

StRustExperimental

Stvk::RenderPassTransformBeginInfoQCOM

pub struct RenderPassTransformBeginInfoQCOM<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub transform: SurfaceTransformFlagBitsKHR, /* private fields */ }
Native structure VkRenderPassTransformBeginInfoQCOM.

Contract

Native structure VkRenderPassTransformBeginInfoQCOM.

Khronos reference: VkRenderPassTransformBeginInfoQCOM

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

transform

Field
transform: SurfaceTransformFlagBitsKHR

Native field transform.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_transform

Method
pub fn set_transform(self, value: SurfaceTransformFlagBitsKHR) -> Self

Set native field transform without native effects.

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.

Stvk::ResolveImageFlagBitsKHR

Contract

Open integer representation of VkResolveImageFlagBitsKHR.

Khronos reference: VkResolveImageFlagBitsKHR

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

Output-1

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

Output-2

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

clone

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

Output-3

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

eq

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

Stvk::ResolveImageInfo2

pub struct ResolveImageInfo2<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub src_image: Image, pub src_image_layout: ImageLayout, pub dst_image: Image, pub dst_image_layout: ImageLayout, pub region_count: u32, pub p_regions: *const ImageResolve2<'a>, /* private fields */ }
Native structure VkResolveImageInfo2.

Contract

Native structure VkResolveImageInfo2.

Khronos reference: VkResolveImageInfo2

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

src_image

Field
src_image: Image

Native field srcImage.

src_image_layout

Field
src_image_layout: ImageLayout

Native field srcImageLayout.

dst_image

Field
dst_image: Image

Native field dstImage.

dst_image_layout

Field
dst_image_layout: ImageLayout

Native field dstImageLayout.

region_count

Field
region_count: u32

Native field regionCount.

p_regions

Field
p_regions: *const ImageResolve2<'a>

Native field pRegions.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_src_image

Method
pub fn set_src_image(self, value: Image) -> Self

Set native field srcImage without native effects.

set_src_image_layout

Method
pub fn set_src_image_layout(self, value: ImageLayout) -> Self

Set native field srcImageLayout without native effects.

set_dst_image

Method
pub fn set_dst_image(self, value: Image) -> Self

Set native field dstImage without native effects.

set_dst_image_layout

Method
pub fn set_dst_image_layout(self, value: ImageLayout) -> Self

Set native field dstImageLayout without native effects.

set_region_count

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

Set native count regionCount directly without checking associated pointer extents. Use the borrowed array helpers to derive matching storage and counts together. Direct count edits support null-query/dynamic-state paths and remain a native-call validity obligation, including after earlier borrowed setters.

set_regions

Method
pub fn set_regions( self, value: &'a [ImageResolve2<'a>], ) -> Result<Self, ConstructionError>

Borrow pRegions and set checked native count regionCount. The borrow covers this storage only; nested raw pointers, format, alignment and asynchronous retention remain native-call obligations. Output storage must be initialized; returned sizes do not enlarge its capacity.

Errors

Returns a construction error if the length exceeds the native count width.

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.

Stvk::ResolveImageModeInfoKHR

pub struct ResolveImageModeInfoKHR<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub flags: ResolveImageFlagsKHR, pub resolve_mode: ResolveModeFlagBits, pub stencil_resolve_mode: ResolveModeFlagBits, /* private fields */ }
Native structure VkResolveImageModeInfoKHR.

Contract

Native structure VkResolveImageModeInfoKHR.

Khronos reference: VkResolveImageModeInfoKHR

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

flags

Field
flags: ResolveImageFlagsKHR

Native field flags.

resolve_mode

Field
resolve_mode: ResolveModeFlagBits

Native field resolveMode.

stencil_resolve_mode

Field
stencil_resolve_mode: ResolveModeFlagBits

Native field stencilResolveMode.

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: ResolveImageFlagsKHR) -> Self

Set native field flags without native effects.

set_resolve_mode

Method
pub fn set_resolve_mode(self, value: ResolveModeFlagBits) -> Self

Set native field resolveMode without native effects.

set_stencil_resolve_mode

Method
pub fn set_stencil_resolve_mode(self, value: ResolveModeFlagBits) -> Self

Set native field stencilResolveMode without native effects.

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.

Stvk::ResolveModeFlagBits

Contract

Open integer representation of VkResolveModeFlagBits.

Khronos reference: VkResolveModeFlagBits

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

Output-1

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

Output-2

Method
type Output = ResolveModeFlagBits
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() -> ResolveModeFlagBits
Returns the “default value” for a type. Read more

Output-3

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

eq

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

Stvk::ResourceDescriptorInfoEXT

pub struct ResourceDescriptorInfoEXT<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub type: DescriptorType, pub data: ResourceDescriptorDataEXT<'a>, /* private fields */ }
Native structure VkResourceDescriptorInfoEXT.

Contract

Native structure VkResourceDescriptorInfoEXT.

Khronos reference: VkResourceDescriptorInfoEXT

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

type

Field
type: DescriptorType

Native field type.

data

Field
data: ResourceDescriptorDataEXT<'a>

Native field data.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_type

Method
pub fn set_type(self, value: DescriptorType) -> Self

Set native field type without native effects.

set_data

Method
pub fn set_data(self, value: ResourceDescriptorDataEXT<'a>) -> Self

Set native field data without native effects.

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.

Stvk::Result

Contract

Open integer representation of VkResult.

Khronos reference: VkResult

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.

is_success

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

is_err

Method
pub const fn is_err(self) -> bool
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

from

Method
fn from(r: Result) -> Self

Lift a non-success VkResult into a CallError.

Callers that only expect VK_SUCCESS can use ? on a vk::Result once it is inside a Result<_, CallError> context.

eq

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