Realm

vk · Structs · I3

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

StRustExperimental

Stvk::ImageMemoryRequirementsInfo2

pub struct ImageMemoryRequirementsInfo2<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub image: Image, /* private fields */ }
Native structure VkImageMemoryRequirementsInfo2.

Contract

Native structure VkImageMemoryRequirementsInfo2.

Khronos reference: VkImageMemoryRequirementsInfo2

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

image

Field
image: Image

Native field image.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_image

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

Set native field image 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::ImagePipeSurfaceCreateFlagsFUCHSIA

Contract

Open integer representation of VkImagePipeSurfaceCreateFlagsFUCHSIA.

Khronos reference: VkImagePipeSurfaceCreateFlagsFUCHSIA

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

Output-1

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

Output-2

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

clone

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

Output-3

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

eq

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

Stvk::ImagePipeSurfaceCreateInfoFUCHSIA

pub struct ImagePipeSurfaceCreateInfoFUCHSIA<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub flags: ImagePipeSurfaceCreateFlagsFUCHSIA, pub image_pipe_handle: zx_handle_t, /* private fields */ }
Native structure VkImagePipeSurfaceCreateInfoFUCHSIA.

Contract

Native structure VkImagePipeSurfaceCreateInfoFUCHSIA.

Khronos reference: VkImagePipeSurfaceCreateInfoFUCHSIA

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

flags

Field
flags: ImagePipeSurfaceCreateFlagsFUCHSIA

Native field flags.

image_pipe_handle

Field
image_pipe_handle: zx_handle_t

Native field imagePipeHandle.

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

Set native field flags without native effects.

set_image_pipe_handle

Method
pub fn set_image_pipe_handle(self, value: zx_handle_t) -> Self

Set native field imagePipeHandle 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::ImagePlaneMemoryRequirementsInfo

pub struct ImagePlaneMemoryRequirementsInfo<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub plane_aspect: ImageAspectFlagBits, /* private fields */ }
Native structure VkImagePlaneMemoryRequirementsInfo.

Contract

Native structure VkImagePlaneMemoryRequirementsInfo.

Khronos reference: VkImagePlaneMemoryRequirementsInfo

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

plane_aspect

Field
plane_aspect: ImageAspectFlagBits

Native field planeAspect.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_plane_aspect

Method
pub fn set_plane_aspect(self, value: ImageAspectFlagBits) -> Self

Set native field planeAspect 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::ImageResolve

#[repr(C)]pub struct ImageResolve { pub src_subresource: ImageSubresourceLayers, pub src_offset: Offset3D, pub dst_subresource: ImageSubresourceLayers, pub dst_offset: Offset3D, pub extent: Extent3D, }
Native structure VkImageResolve.

Contract

Native structure VkImageResolve.

Khronos reference: VkImageResolve

Fields

src_subresource

Field
src_subresource: ImageSubresourceLayers

Native field srcSubresource.

src_offset

Field
src_offset: Offset3D

Native field srcOffset.

dst_subresource

Field
dst_subresource: ImageSubresourceLayers

Native field dstSubresource.

dst_offset

Field
dst_offset: Offset3D

Native field dstOffset.

extent

Field
extent: Extent3D

Native field extent.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_src_subresource

Method
pub fn set_src_subresource(self, value: ImageSubresourceLayers) -> Self

Set native field srcSubresource without native effects.

set_src_offset

Method
pub fn set_src_offset(self, value: Offset3D) -> Self

Set native field srcOffset without native effects.

set_dst_subresource

Method
pub fn set_dst_subresource(self, value: ImageSubresourceLayers) -> Self

Set native field dstSubresource without native effects.

set_dst_offset

Method
pub fn set_dst_offset(self, value: Offset3D) -> Self

Set native field dstOffset without native effects.

set_extent

Method
pub fn set_extent(self, value: Extent3D) -> Self

Set native field extent without native effects.

Stvk::ImageResolve2

pub struct ImageResolve2<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub src_subresource: ImageSubresourceLayers, pub src_offset: Offset3D, pub dst_subresource: ImageSubresourceLayers, pub dst_offset: Offset3D, pub extent: Extent3D, /* private fields */ }
Native structure VkImageResolve2.

Contract

Native structure VkImageResolve2.

Khronos reference: VkImageResolve2

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

src_subresource

Field
src_subresource: ImageSubresourceLayers

Native field srcSubresource.

src_offset

Field
src_offset: Offset3D

Native field srcOffset.

dst_subresource

Field
dst_subresource: ImageSubresourceLayers

Native field dstSubresource.

dst_offset

Field
dst_offset: Offset3D

Native field dstOffset.

extent

Field
extent: Extent3D

Native field extent.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_src_subresource

Method
pub fn set_src_subresource(self, value: ImageSubresourceLayers) -> Self

Set native field srcSubresource without native effects.

set_src_offset

Method
pub fn set_src_offset(self, value: Offset3D) -> Self

Set native field srcOffset without native effects.

set_dst_subresource

Method
pub fn set_dst_subresource(self, value: ImageSubresourceLayers) -> Self

Set native field dstSubresource without native effects.

set_dst_offset

Method
pub fn set_dst_offset(self, value: Offset3D) -> Self

Set native field dstOffset without native effects.

set_extent

Method
pub fn set_extent(self, value: Extent3D) -> Self

Set native field extent 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::ImageSparseMemoryRequirementsInfo2

pub struct ImageSparseMemoryRequirementsInfo2<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub image: Image, /* private fields */ }
Native structure VkImageSparseMemoryRequirementsInfo2.

Contract

Native structure VkImageSparseMemoryRequirementsInfo2.

Khronos reference: VkImageSparseMemoryRequirementsInfo2

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

image

Field
image: Image

Native field image.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_image

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

Set native field image 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::ImageStencilUsage2CreateInfoKHR

pub struct ImageStencilUsage2CreateInfoKHR<'a> { pub s_type: StructureType, pub p_next: *mut c_void, pub stencil_usage: ImageUsageFlags2KHR, /* private fields */ }
Native structure VkImageStencilUsage2CreateInfoKHR.

Contract

Native structure VkImageStencilUsage2CreateInfoKHR.

Khronos reference: VkImageStencilUsage2CreateInfoKHR

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *mut c_void

Native field pNext.

stencil_usage

Field
stencil_usage: ImageUsageFlags2KHR

Native field stencilUsage.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_stencil_usage

Method
pub fn set_stencil_usage(self, value: ImageUsageFlags2KHR) -> Self

Set native field stencilUsage 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::ImageStencilUsageCreateInfo

pub struct ImageStencilUsageCreateInfo<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub stencil_usage: ImageUsageFlags, /* private fields */ }
Native structure VkImageStencilUsageCreateInfo.

Contract

Native structure VkImageStencilUsageCreateInfo.

Khronos reference: VkImageStencilUsageCreateInfo

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

stencil_usage

Field
stencil_usage: ImageUsageFlags

Native field stencilUsage.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_stencil_usage

Method
pub fn set_stencil_usage(self, value: ImageUsageFlags) -> Self

Set native field stencilUsage 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::ImageSubresource

Contract

Native structure VkImageSubresource.

Khronos reference: VkImageSubresource

Fields

aspect_mask

Field
aspect_mask: ImageAspectFlags

Native field aspectMask.

mip_level

Field
mip_level: u32

Native field mipLevel.

array_layer

Field
array_layer: u32

Native field arrayLayer.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_aspect_mask

Method
pub fn set_aspect_mask(self, value: ImageAspectFlags) -> Self

Set native field aspectMask without native effects.

set_mip_level

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

Set native field mipLevel without native effects.

set_array_layer

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

Set native field arrayLayer without native effects.

Stvk::ImageSubresource2

pub struct ImageSubresource2<'a> { pub s_type: StructureType, pub p_next: *mut c_void, pub image_subresource: ImageSubresource, /* private fields */ }
Native structure VkImageSubresource2.

Contract

Native structure VkImageSubresource2.

Khronos reference: VkImageSubresource2

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *mut c_void

Native field pNext.

image_subresource

Field
image_subresource: ImageSubresource

Native field imageSubresource.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_image_subresource

Method
pub fn set_image_subresource(self, value: ImageSubresource) -> Self

Set native field imageSubresource 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::ImageSubresourceLayers

#[repr(C)]pub struct ImageSubresourceLayers { pub aspect_mask: ImageAspectFlags, pub mip_level: u32, pub base_array_layer: u32, pub layer_count: u32, }
Native structure VkImageSubresourceLayers.

Contract

Native structure VkImageSubresourceLayers.

Khronos reference: VkImageSubresourceLayers

Fields

aspect_mask

Field
aspect_mask: ImageAspectFlags

Native field aspectMask.

mip_level

Field
mip_level: u32

Native field mipLevel.

base_array_layer

Field
base_array_layer: u32

Native field baseArrayLayer.

layer_count

Field
layer_count: u32

Native field layerCount.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_aspect_mask

Method
pub fn set_aspect_mask(self, value: ImageAspectFlags) -> Self

Set native field aspectMask without native effects.

set_mip_level

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

Set native field mipLevel without native effects.

set_base_array_layer

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

Set native field baseArrayLayer without native effects.

set_layer_count

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

Set native field layerCount without native effects.

clone

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

Stvk::ImageSubresourceRange

#[repr(C)]pub struct ImageSubresourceRange { pub aspect_mask: ImageAspectFlags, pub base_mip_level: u32, pub level_count: u32, pub base_array_layer: u32, pub layer_count: u32, }
Native structure VkImageSubresourceRange.

Contract

Native structure VkImageSubresourceRange.

Khronos reference: VkImageSubresourceRange

Fields

aspect_mask

Field
aspect_mask: ImageAspectFlags

Native field aspectMask.

base_mip_level

Field
base_mip_level: u32

Native field baseMipLevel.

level_count

Field
level_count: u32

Native field levelCount.

base_array_layer

Field
base_array_layer: u32

Native field baseArrayLayer.

layer_count

Field
layer_count: u32

Native field layerCount.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_aspect_mask

Method
pub fn set_aspect_mask(self, value: ImageAspectFlags) -> Self

Set native field aspectMask without native effects.

set_base_mip_level

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

Set native field baseMipLevel without native effects.

set_level_count

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

Set native field levelCount without native effects.

set_base_array_layer

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

Set native field baseArrayLayer without native effects.

set_layer_count

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

Set native field layerCount without native effects.

clone

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

Stvk::ImageSwapchainCreateInfoKHR

pub struct ImageSwapchainCreateInfoKHR<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub swapchain: SwapchainKHR, /* private fields */ }
Native structure VkImageSwapchainCreateInfoKHR.

Contract

Native structure VkImageSwapchainCreateInfoKHR.

Khronos reference: VkImageSwapchainCreateInfoKHR

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

swapchain

Field
swapchain: SwapchainKHR

Native field swapchain.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_swapchain

Method
pub fn set_swapchain(self, value: SwapchainKHR) -> Self

Set native field swapchain 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::ImageTiling

Contract

Open integer representation of VkImageTiling.

Khronos reference: VkImageTiling

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

eq

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

Stvk::ImageTilingControlCreateInfoEXT

pub struct ImageTilingControlCreateInfoEXT<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub tiling_control: ImageTilingControlEXT, /* private fields */ }
Native structure VkImageTilingControlCreateInfoEXT.

Contract

Native structure VkImageTilingControlCreateInfoEXT.

Khronos reference: VkImageTilingControlCreateInfoEXT

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

tiling_control

Field
tiling_control: ImageTilingControlEXT

Native field tilingControl.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_tiling_control

Method
pub fn set_tiling_control(self, value: ImageTilingControlEXT) -> Self

Set native field tilingControl 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.