Realm

vk · Structs · D5

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

StRustExperimental

Stvk::DedicatedAllocationImageCreateInfoNV

pub struct DedicatedAllocationImageCreateInfoNV<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub dedicated_allocation: Bool32, /* private fields */ }
Native structure VkDedicatedAllocationImageCreateInfoNV.

Contract

Native structure VkDedicatedAllocationImageCreateInfoNV.

Khronos reference: VkDedicatedAllocationImageCreateInfoNV

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

dedicated_allocation

Field
dedicated_allocation: Bool32

Native field dedicatedAllocation.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_dedicated_allocation

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

Set native field dedicatedAllocation 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::DedicatedAllocationMemoryAllocateInfoNV

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

Contract

Native structure VkDedicatedAllocationMemoryAllocateInfoNV.

Khronos reference: VkDedicatedAllocationMemoryAllocateInfoNV

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.

buffer

Field
buffer: Buffer

Native field buffer.

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.

set_buffer

Method
pub fn set_buffer(self, value: Buffer) -> Self

Set native field buffer 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::DefaultVertexAttributeValueKHR

Contract

Open integer representation of VkDefaultVertexAttributeValueKHR.

Khronos reference: VkDefaultVertexAttributeValueKHR

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.

clone

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

eq

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

Stvk::DeferredOperationKHR

Contract

Raw Vulkan handle VkDeferredOperationKHR.

Khronos reference: VkDeferredOperationKHR Calls using this identity must satisfy Vulkan lifetime and synchronization rules.

Fields

0

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

Methods and associated items

NULL

Method
pub const NULL: Self
No public source comment is attached to this declaration.

is_null

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

from_raw

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

as_raw

Method
pub fn as_raw(self) -> u64
No public source comment is attached to this declaration.

clone

Method
fn clone(&self) -> DeferredOperationKHR
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

eq

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

Stvk::DependencyFlagBits

Contract

Open integer representation of VkDependencyFlagBits.

Khronos reference: VkDependencyFlagBits

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

Output-1

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

Output-2

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

Output-3

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

eq

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

Stvk::DependencyInfo

pub struct DependencyInfo<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub dependency_flags: DependencyFlags, pub memory_barrier_count: u32, pub p_memory_barriers: *const MemoryBarrier2<'a>, pub buffer_memory_barrier_count: u32, pub p_buffer_memory_barriers: *const BufferMemoryBarrier2<'a>, pub image_memory_barrier_count: u32, pub p_image_memory_barriers: *const ImageMemoryBarrier2<'a>, /* private fields */ }
Native structure VkDependencyInfo.

Contract

Native structure VkDependencyInfo.

Khronos reference: VkDependencyInfo

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

dependency_flags

Field
dependency_flags: DependencyFlags

Native field dependencyFlags.

memory_barrier_count

Field
memory_barrier_count: u32

Native field memoryBarrierCount.

p_memory_barriers

Field
p_memory_barriers: *const MemoryBarrier2<'a>

Native field pMemoryBarriers.

buffer_memory_barrier_count

Field
buffer_memory_barrier_count: u32

Native field bufferMemoryBarrierCount.

p_buffer_memory_barriers

Field
p_buffer_memory_barriers: *const BufferMemoryBarrier2<'a>

Native field pBufferMemoryBarriers.

image_memory_barrier_count

Field
image_memory_barrier_count: u32

Native field imageMemoryBarrierCount.

p_image_memory_barriers

Field
p_image_memory_barriers: *const ImageMemoryBarrier2<'a>

Native field pImageMemoryBarriers.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_dependency_flags

Method
pub fn set_dependency_flags(self, value: DependencyFlags) -> Self

Set native field dependencyFlags without native effects.

set_memory_barrier_count

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

Set native count memoryBarrierCount 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_memory_barriers

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

Borrow pMemoryBarriers and set checked native count memoryBarrierCount. 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_buffer_memory_barrier_count

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

Set native count bufferMemoryBarrierCount 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_buffer_memory_barriers

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

Borrow pBufferMemoryBarriers and set checked native count bufferMemoryBarrierCount. 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_image_memory_barrier_count

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

Set native count imageMemoryBarrierCount 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_image_memory_barriers

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

Borrow pImageMemoryBarriers and set checked native count imageMemoryBarrierCount. 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::DepthBiasInfoEXT

pub struct DepthBiasInfoEXT<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub depth_bias_constant_factor: f32, pub depth_bias_clamp: f32, pub depth_bias_slope_factor: f32, /* private fields */ }
Native structure VkDepthBiasInfoEXT.

Contract

Native structure VkDepthBiasInfoEXT.

Khronos reference: VkDepthBiasInfoEXT

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

depth_bias_constant_factor

Field
depth_bias_constant_factor: f32

Native field depthBiasConstantFactor.

depth_bias_clamp

Field
depth_bias_clamp: f32

Native field depthBiasClamp.

depth_bias_slope_factor

Field
depth_bias_slope_factor: f32

Native field depthBiasSlopeFactor.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_depth_bias_constant_factor

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

Set native field depthBiasConstantFactor without native effects.

set_depth_bias_clamp

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

Set native field depthBiasClamp without native effects.

set_depth_bias_slope_factor

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

Set native field depthBiasSlopeFactor 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::DepthBiasRepresentationEXT

Contract

Open integer representation of VkDepthBiasRepresentationEXT.

Khronos reference: VkDepthBiasRepresentationEXT

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.

clone

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

eq

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

Stvk::DepthBiasRepresentationInfoEXT

pub struct DepthBiasRepresentationInfoEXT<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub depth_bias_representation: DepthBiasRepresentationEXT, pub depth_bias_exact: Bool32, /* private fields */ }
Native structure VkDepthBiasRepresentationInfoEXT.

Contract

Native structure VkDepthBiasRepresentationInfoEXT.

Khronos reference: VkDepthBiasRepresentationInfoEXT

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

depth_bias_representation

Field
depth_bias_representation: DepthBiasRepresentationEXT

Native field depthBiasRepresentation.

depth_bias_exact

Field
depth_bias_exact: Bool32

Native field depthBiasExact.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_depth_bias_representation

Method
pub fn set_depth_bias_representation( self, value: DepthBiasRepresentationEXT, ) -> Self

Set native field depthBiasRepresentation without native effects.

set_depth_bias_exact

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

Set native field depthBiasExact 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::DepthClampModeEXT

Contract

Open integer representation of VkDepthClampModeEXT.

Khronos reference: VkDepthClampModeEXT

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

eq

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

Stvk::DepthClampRangeEXT

Contract

Native structure VkDepthClampRangeEXT.

Khronos reference: VkDepthClampRangeEXT

Fields

min_depth_clamp

Field
min_depth_clamp: f32

Native field minDepthClamp.

max_depth_clamp

Field
max_depth_clamp: f32

Native field maxDepthClamp.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_min_depth_clamp

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

Set native field minDepthClamp without native effects.

set_max_depth_clamp

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

Set native field maxDepthClamp without native effects.

Stvk::DescriptorAddressInfoEXT

pub struct DescriptorAddressInfoEXT<'a> { pub s_type: StructureType, pub p_next: *mut c_void, pub address: DeviceAddress, pub range: DeviceSize, pub format: Format, /* private fields */ }
Native structure VkDescriptorAddressInfoEXT.

Contract

Native structure VkDescriptorAddressInfoEXT.

Khronos reference: VkDescriptorAddressInfoEXT

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *mut c_void

Native field pNext.

address

Field
address: DeviceAddress

Native field address.

range

Field
range: DeviceSize

Native field range.

format

Field
format: Format

Native field format.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_address

Method
pub fn set_address(self, value: DeviceAddress) -> Self

Set native field address without native effects.

set_range

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

Set native field range without native effects.

set_format

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

Set native field format 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::DescriptorBindingFlagBits

Contract

Open integer representation of VkDescriptorBindingFlagBits.

Khronos reference: VkDescriptorBindingFlagBits

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

Output-1

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

Output-2

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

clone

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

Output-3

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

eq

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

Stvk::DescriptorBufferBindingInfoEXT

pub struct DescriptorBufferBindingInfoEXT<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub address: DeviceAddress, pub usage: BufferUsageFlags, /* private fields */ }
Native structure VkDescriptorBufferBindingInfoEXT.

Contract

Native structure VkDescriptorBufferBindingInfoEXT.

Khronos reference: VkDescriptorBufferBindingInfoEXT

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

address

Field
address: DeviceAddress

Native field address.

usage

Field
usage: BufferUsageFlags

Native field usage.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_address

Method
pub fn set_address(self, value: DeviceAddress) -> Self

Set native field address without native effects.

set_usage

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

Set native field usage 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::DescriptorBufferBindingPushDescriptorBufferHandleEXT

pub struct DescriptorBufferBindingPushDescriptorBufferHandleEXT<'a> { pub s_type: StructureType, pub p_next: *const c_void, pub buffer: Buffer, /* private fields */ }
Native structure VkDescriptorBufferBindingPushDescriptorBufferHandleEXT.

Contract

Native structure VkDescriptorBufferBindingPushDescriptorBufferHandleEXT.

Khronos reference: VkDescriptorBufferBindingPushDescriptorBufferHandleEXT

Fields

s_type

Field
s_type: StructureType

Native field sType.

p_next

Field
p_next: *const c_void

Native field pNext.

buffer

Field
buffer: Buffer

Native field buffer.

Methods and associated items

new

Method
pub fn new() -> Self

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

set_buffer

Method
pub fn set_buffer(self, value: Buffer) -> Self

Set native field buffer 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::DescriptorBufferInfo

Contract

Native structure VkDescriptorBufferInfo.

Khronos reference: VkDescriptorBufferInfo

Fields

buffer

Field
buffer: Buffer

Native field buffer.

offset

Field
offset: DeviceSize

Native field offset.

range

Field
range: DeviceSize

Native field range.

Methods and associated items

new

Method
pub fn new() -> Self

Construct the record with its default native state.

set_buffer

Method
pub fn set_buffer(self, value: Buffer) -> Self

Set native field buffer without native effects.

set_offset

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

Set native field offset without native effects.

set_range

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

Set native field range without native effects.

clone

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