Realm

vk · Structs · I2

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

StRustExperimental

Stvk::ImageCreateFlagBits

Contract

Open integer representation of VkImageCreateFlagBits.

Khronos reference: VkImageCreateFlagBits

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

Output-1

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

Output-2

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

Output-3

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

eq

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

Stvk::ImageCreateFlagBits2KHR

Contract

Open integer representation of VkImageCreateFlagBits2KHR.

Khronos reference: VkImageCreateFlagBits2KHR

Fields

0

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

Methods and associated items

from_raw

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

as_raw

Method
pub const fn as_raw(self) -> u64
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 = ImageCreateFlagBits2KHR
The resulting type after applying the & operator.

Output-1

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

Output-2

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

clone

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

Output-3

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

eq

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

Stvk::ImageCreateFlags2CreateInfoKHR

pub struct ImageCreateFlags2CreateInfoKHR<'a> { pub s_type: StructureType, pub p_next: *mut c_void, pub flags: ImageCreateFlags2KHR, /* private fields */ }
Native structure VkImageCreateFlags2CreateInfoKHR.

Contract

Native structure VkImageCreateFlags2CreateInfoKHR.

Khronos reference: VkImageCreateFlags2CreateInfoKHR

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *mut c_void

Native field pNext.

flags

Field
flags: ImageCreateFlags2KHR

Native field flags.

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

Set native field flags 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::ImageCreateInfo

pub struct ImageCreateInfo<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub flags: ImageCreateFlags, pub image_type: ImageType, pub format: Format, pub extent: Extent3D, pub mip_levels: u32, pub array_layers: u32, pub samples: SampleCountFlagBits, pub tiling: ImageTiling, pub usage: ImageUsageFlags, pub sharing_mode: SharingMode, pub queue_family_index_count: u32, pub p_queue_family_indices: *const u32, pub initial_layout: ImageLayout, /* private fields */ }
Native structure VkImageCreateInfo.

Contract

Native structure VkImageCreateInfo.

Khronos reference: VkImageCreateInfo

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

flags

Field
flags: ImageCreateFlags

Native field flags.

image_type

Field
image_type: ImageType

Native field imageType.

format

Field
format: Format

Native field format.

extent

Field
extent: Extent3D

Native field extent.

mip_levels

Field
mip_levels: u32

Native field mipLevels.

array_layers

Field
array_layers: u32

Native field arrayLayers.

samples

Field
samples: SampleCountFlagBits

Native field samples.

tiling

Field
tiling: ImageTiling

Native field tiling.

usage

Field
usage: ImageUsageFlags

Native field usage.

sharing_mode

Field
sharing_mode: SharingMode

Native field sharingMode.

queue_family_index_count

Field
queue_family_index_count: u32

Native field queueFamilyIndexCount.

p_queue_family_indices

Field
p_queue_family_indices: *const u32

Native field pQueueFamilyIndices.

initial_layout

Field
initial_layout: ImageLayout

Native field initialLayout.

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

Set native field flags without native effects.

set_image_type

Method
pub fn set_image_type(self, value: ImageType) -> Self

Set native field imageType without native effects.

set_format

Method
pub fn set_format(self, value: Format) -> Self

Set native field format without native effects.

set_extent

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

Set native field extent without native effects.

set_mip_levels

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

Set native field mipLevels without native effects.

set_array_layers

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

Set native field arrayLayers without native effects.

set_samples

Method
pub fn set_samples(self, value: SampleCountFlagBits) -> Self

Set native field samples without native effects.

set_tiling

Method
pub fn set_tiling(self, value: ImageTiling) -> Self

Set native field tiling without native effects.

set_usage

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

Set native field usage without native effects.

set_sharing_mode

Method
pub fn set_sharing_mode(self, value: SharingMode) -> Self

Set native field sharingMode without native effects.

set_queue_family_index_count

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

Set native count queueFamilyIndexCount 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_queue_family_indices

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

Borrow pQueueFamilyIndices and set checked native count queueFamilyIndexCount. 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.

set_initial_layout

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

Set native field initialLayout 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::ImageDescriptorInfoEXT

pub struct ImageDescriptorInfoEXT<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub p_view: *const ImageViewCreateInfo<'a>, pub layout: ImageLayout, /* private fields */ }
Native structure VkImageDescriptorInfoEXT.

Contract

Native structure VkImageDescriptorInfoEXT.

Khronos reference: VkImageDescriptorInfoEXT

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

p_view

Field
p_view: *const ImageViewCreateInfo<'a>

Native field pView.

layout

Field
layout: ImageLayout

Native field layout.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_view

Method
pub fn set_view(self, value: &'a ImageViewCreateInfo<'a>) -> Self

Set native field pView without native effects.

set_layout

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

Set native field layout 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::ImageDrmFormatModifierExplicitCreateInfoEXT

pub struct ImageDrmFormatModifierExplicitCreateInfoEXT<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub drm_format_modifier: u64, pub drm_format_modifier_plane_count: u32, pub p_plane_layouts: *const SubresourceLayout, /* private fields */ }
Native structure VkImageDrmFormatModifierExplicitCreateInfoEXT.

Contract

Native structure VkImageDrmFormatModifierExplicitCreateInfoEXT.

Khronos reference: VkImageDrmFormatModifierExplicitCreateInfoEXT

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

drm_format_modifier

Field
drm_format_modifier: u64

Native field drmFormatModifier.

drm_format_modifier_plane_count

Field
drm_format_modifier_plane_count: u32

Native field drmFormatModifierPlaneCount.

p_plane_layouts

Field
p_plane_layouts: *const SubresourceLayout

Native field pPlaneLayouts.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_drm_format_modifier

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

Set native field drmFormatModifier without native effects.

set_drm_format_modifier_plane_count

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

Set native count drmFormatModifierPlaneCount 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_plane_layouts

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

Borrow pPlaneLayouts and set checked native count drmFormatModifierPlaneCount. 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::ImageDrmFormatModifierListCreateInfoEXT

pub struct ImageDrmFormatModifierListCreateInfoEXT<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub drm_format_modifier_count: u32, pub p_drm_format_modifiers: *const u64, /* private fields */ }
Native structure VkImageDrmFormatModifierListCreateInfoEXT.

Contract

Native structure VkImageDrmFormatModifierListCreateInfoEXT.

Khronos reference: VkImageDrmFormatModifierListCreateInfoEXT

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

drm_format_modifier_count

Field
drm_format_modifier_count: u32

Native field drmFormatModifierCount.

p_drm_format_modifiers

Field
p_drm_format_modifiers: *const u64

Native field pDrmFormatModifiers.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_drm_format_modifier_count

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

Set native count drmFormatModifierCount 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_drm_format_modifiers

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

Borrow pDrmFormatModifiers and set checked native count drmFormatModifierCount. 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::ImageDrmFormatModifierPropertiesEXT

pub struct ImageDrmFormatModifierPropertiesEXT<'a> { pub s_type: StructureType, pub p_next: *mut c_void, pub drm_format_modifier: u64, /* private fields */ }
Native structure VkImageDrmFormatModifierPropertiesEXT.

Contract

Native structure VkImageDrmFormatModifierPropertiesEXT.

Khronos reference: VkImageDrmFormatModifierPropertiesEXT

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *mut c_void

Native field pNext.

drm_format_modifier

Field
drm_format_modifier: u64

Native field drmFormatModifier.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_drm_format_modifier

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

Set native field drmFormatModifier 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::ImageFormatConstraintsFlagsFUCHSIA

Contract

Open integer representation of VkImageFormatConstraintsFlagsFUCHSIA.

Khronos reference: VkImageFormatConstraintsFlagsFUCHSIA

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

Output-1

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

Output-2

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

clone

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

Output-3

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

eq

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

Stvk::ImageFormatConstraintsInfoFUCHSIA

pub struct ImageFormatConstraintsInfoFUCHSIA<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub image_create_info: ImageCreateInfo<'a>, pub required_format_features: FormatFeatureFlags, pub flags: ImageFormatConstraintsFlagsFUCHSIA, pub sysmem_pixel_format: u64, pub color_space_count: u32, pub p_color_spaces: *const SysmemColorSpaceFUCHSIA<'a>, /* private fields */ }
Native structure VkImageFormatConstraintsInfoFUCHSIA.

Contract

Native structure VkImageFormatConstraintsInfoFUCHSIA.

Khronos reference: VkImageFormatConstraintsInfoFUCHSIA

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

image_create_info

Field
image_create_info: ImageCreateInfo<'a>

Native field imageCreateInfo.

required_format_features

Field
required_format_features: FormatFeatureFlags

Native field requiredFormatFeatures.

flags

Field
flags: ImageFormatConstraintsFlagsFUCHSIA

Native field flags.

sysmem_pixel_format

Field
sysmem_pixel_format: u64

Native field sysmemPixelFormat.

color_space_count

Field
color_space_count: u32

Native field colorSpaceCount.

p_color_spaces

Field
p_color_spaces: *const SysmemColorSpaceFUCHSIA<'a>

Native field pColorSpaces.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_image_create_info

Method
pub fn set_image_create_info(self, value: ImageCreateInfo<'a>) -> Self

Set native field imageCreateInfo without native effects.

set_required_format_features

Method
pub fn set_required_format_features(self, value: FormatFeatureFlags) -> Self

Set native field requiredFormatFeatures without native effects.

set_flags

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

Set native field flags without native effects.

set_sysmem_pixel_format

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

Set native field sysmemPixelFormat without native effects.

set_color_space_count

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

Set native count colorSpaceCount 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_color_spaces

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

Borrow pColorSpaces and set checked native count colorSpaceCount. 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::ImageFormatListCreateInfo

pub struct ImageFormatListCreateInfo<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub view_format_count: u32, pub p_view_formats: *const Format, /* private fields */ }
Native structure VkImageFormatListCreateInfo.

Contract

Native structure VkImageFormatListCreateInfo.

Khronos reference: VkImageFormatListCreateInfo

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

view_format_count

Field
view_format_count: u32

Native field viewFormatCount.

p_view_formats

Field
p_view_formats: *const Format

Native field pViewFormats.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_view_format_count

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

Set native count viewFormatCount 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_view_formats

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

Borrow pViewFormats and set checked native count viewFormatCount. 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::ImageFormatProperties

#[repr(C)]pub struct ImageFormatProperties { pub max_extent: Extent3D, pub max_mip_levels: u32, pub max_array_layers: u32, pub sample_counts: SampleCountFlags, pub max_resource_size: DeviceSize, }
Native structure VkImageFormatProperties.

Contract

Native structure VkImageFormatProperties.

Khronos reference: VkImageFormatProperties

Fields

max_extent

Field
max_extent: Extent3D

Native field maxExtent.

max_mip_levels

Field
max_mip_levels: u32

Native field maxMipLevels.

max_array_layers

Field
max_array_layers: u32

Native field maxArrayLayers.

sample_counts

Field
sample_counts: SampleCountFlags

Native field sampleCounts.

max_resource_size

Field
max_resource_size: DeviceSize

Native field maxResourceSize.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_max_extent

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

Set native field maxExtent without native effects.

set_max_mip_levels

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

Set native field maxMipLevels without native effects.

set_max_array_layers

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

Set native field maxArrayLayers without native effects.

set_sample_counts

Method
pub fn set_sample_counts(self, value: SampleCountFlags) -> Self

Set native field sampleCounts without native effects.

set_max_resource_size

Method
pub fn set_max_resource_size(self, value: DeviceSize) -> Self

Set native field maxResourceSize without native effects.

clone

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

Stvk::ImageFormatProperties2

pub struct ImageFormatProperties2<'a> { pub s_type: StructureType, pub p_next: *mut c_void, pub image_format_properties: ImageFormatProperties, /* private fields */ }
Native structure VkImageFormatProperties2.

Contract

Native structure VkImageFormatProperties2.

Khronos reference: VkImageFormatProperties2

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *mut c_void

Native field pNext.

image_format_properties

Field
image_format_properties: ImageFormatProperties

Native field imageFormatProperties.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_image_format_properties

Method
pub fn set_image_format_properties(self, value: ImageFormatProperties) -> Self

Set native field imageFormatProperties 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::ImageLayout

Contract

Open integer representation of VkImageLayout.

Khronos reference: VkImageLayout

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

eq

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

Stvk::ImageMemoryBarrier

pub struct ImageMemoryBarrier<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub src_access_mask: AccessFlags, pub dst_access_mask: AccessFlags, pub old_layout: ImageLayout, pub new_layout: ImageLayout, pub src_queue_family_index: u32, pub dst_queue_family_index: u32, pub image: Image, pub subresource_range: ImageSubresourceRange, /* private fields */ }
Native structure VkImageMemoryBarrier.

Contract

Native structure VkImageMemoryBarrier.

Khronos reference: VkImageMemoryBarrier

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

src_access_mask

Field
src_access_mask: AccessFlags

Native field srcAccessMask.

dst_access_mask

Field
dst_access_mask: AccessFlags

Native field dstAccessMask.

old_layout

Field
old_layout: ImageLayout

Native field oldLayout.

new_layout

Field
new_layout: ImageLayout

Native field newLayout.

src_queue_family_index

Field
src_queue_family_index: u32

Native field srcQueueFamilyIndex.

dst_queue_family_index

Field
dst_queue_family_index: u32

Native field dstQueueFamilyIndex.

image

Field
image: Image

Native field image.

subresource_range

Field
subresource_range: ImageSubresourceRange

Native field subresourceRange.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_src_access_mask

Method
pub fn set_src_access_mask(self, value: AccessFlags) -> Self

Set native field srcAccessMask without native effects.

set_dst_access_mask

Method
pub fn set_dst_access_mask(self, value: AccessFlags) -> Self

Set native field dstAccessMask without native effects.

set_old_layout

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

Set native field oldLayout without native effects.

set_new_layout

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

Set native field newLayout without native effects.

set_src_queue_family_index

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

Set native field srcQueueFamilyIndex without native effects.

set_dst_queue_family_index

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

Set native field dstQueueFamilyIndex without native effects.

set_image

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

Set native field image without native effects.

set_subresource_range

Method
pub fn set_subresource_range(self, value: ImageSubresourceRange) -> Self

Set native field subresourceRange 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::ImageMemoryBarrier2

pub struct ImageMemoryBarrier2<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub src_stage_mask: PipelineStageFlags2, pub src_access_mask: AccessFlags2, pub dst_stage_mask: PipelineStageFlags2, pub dst_access_mask: AccessFlags2, pub old_layout: ImageLayout, pub new_layout: ImageLayout, pub src_queue_family_index: u32, pub dst_queue_family_index: u32, pub image: Image, pub subresource_range: ImageSubresourceRange, /* private fields */ }
Native structure VkImageMemoryBarrier2.

Contract

Native structure VkImageMemoryBarrier2.

Khronos reference: VkImageMemoryBarrier2

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

src_stage_mask

Field
src_stage_mask: PipelineStageFlags2

Native field srcStageMask.

src_access_mask

Field
src_access_mask: AccessFlags2

Native field srcAccessMask.

dst_stage_mask

Field
dst_stage_mask: PipelineStageFlags2

Native field dstStageMask.

dst_access_mask

Field
dst_access_mask: AccessFlags2

Native field dstAccessMask.

old_layout

Field
old_layout: ImageLayout

Native field oldLayout.

new_layout

Field
new_layout: ImageLayout

Native field newLayout.

src_queue_family_index

Field
src_queue_family_index: u32

Native field srcQueueFamilyIndex.

dst_queue_family_index

Field
dst_queue_family_index: u32

Native field dstQueueFamilyIndex.

image

Field
image: Image

Native field image.

subresource_range

Field
subresource_range: ImageSubresourceRange

Native field subresourceRange.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_src_stage_mask

Method
pub fn set_src_stage_mask(self, value: PipelineStageFlags2) -> Self

Set native field srcStageMask without native effects.

set_src_access_mask

Method
pub fn set_src_access_mask(self, value: AccessFlags2) -> Self

Set native field srcAccessMask without native effects.

set_dst_stage_mask

Method
pub fn set_dst_stage_mask(self, value: PipelineStageFlags2) -> Self

Set native field dstStageMask without native effects.

set_dst_access_mask

Method
pub fn set_dst_access_mask(self, value: AccessFlags2) -> Self

Set native field dstAccessMask without native effects.

set_old_layout

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

Set native field oldLayout without native effects.

set_new_layout

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

Set native field newLayout without native effects.

set_src_queue_family_index

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

Set native field srcQueueFamilyIndex without native effects.

set_dst_queue_family_index

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

Set native field dstQueueFamilyIndex without native effects.

set_image

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

Set native field image without native effects.

set_subresource_range

Method
pub fn set_subresource_range(self, value: ImageSubresourceRange) -> Self

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