vk · Structs · S1
16 public declarations with native signatures and source-owned contracts.
Stvk::SampleCountFlagBits
Contract
Open integer representation of VkSampleCountFlagBits.
Fields
0
0: u32Methods and associated items
_1_BIT
Native value VK_SAMPLE_COUNT_1_BIT.
_2_BIT
Native value VK_SAMPLE_COUNT_2_BIT.
_4_BIT
Native value VK_SAMPLE_COUNT_4_BIT.
_8_BIT
Native value VK_SAMPLE_COUNT_8_BIT.
_16_BIT
Native value VK_SAMPLE_COUNT_16_BIT.
_32_BIT
Native value VK_SAMPLE_COUNT_32_BIT.
_64_BIT
Native value VK_SAMPLE_COUNT_64_BIT.
from_raw
as_raw
empty
Output
& operator.bitand
& operation. Read moreOutput-1
| operator.bitor
| operation. Read moreOutput-2
^ operator.bitxor
^ operation. Read moreclone
fmt
default
hash
Output-3
! operator.not
! operation. Read moreeq
self and other values to be equal, and is used by ==.Stvk::SampleLocationEXT
Contract
Native structure VkSampleLocationEXT.
Fields
x
x: f32Native field x.
y
y: f32Native field y.
Methods and associated items
new
Construct the record with its default native state.
set_x
Set native field x without native effects.
set_y
Set native field y without native effects.
clone
default
Stvk::SampleLocationsInfoEXT
Contract
Native structure VkSampleLocationsInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
sample_locations_per_pixel
sample_locations_per_pixel: SampleCountFlagBitsNative field sampleLocationsPerPixel.
sample_location_grid_size
sample_location_grid_size: Extent2DNative field sampleLocationGridSize.
sample_locations_count
sample_locations_count: u32Native field sampleLocationsCount.
p_sample_locations
p_sample_locations: *const SampleLocationEXTNative field pSampleLocations.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_sample_locations_per_pixel
Set native field sampleLocationsPerPixel without native effects.
set_sample_location_grid_size
Set native field sampleLocationGridSize without native effects.
set_sample_locations_count
Set native count sampleLocationsCount 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_sample_locations
Borrow pSampleLocations and set checked native count sampleLocationsCount.
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
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.
default
Stvk::Sampler
Contract
Raw Vulkan handle VkSampler.
Khronos reference: VkSampler
Calls using this identity must satisfy Vulkan lifetime and synchronization rules.
Fields
0
0: u64Methods and associated items
NULL
is_null
from_raw
as_raw
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::SamplerAddressMode
Contract
Open integer representation of VkSamplerAddressMode.
Fields
0
0: i32Methods and associated items
REPEAT
Native value VK_SAMPLER_ADDRESS_MODE_REPEAT.
MIRRORED_REPEAT
Native value VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT.
CLAMP_TO_EDGE
Native value VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE.
CLAMP_TO_BORDER
Native value VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER.
MIRROR_CLAMP_TO_EDGE
Native value VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE.
Khronos reference: VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE
MIRROR_CLAMP_TO_EDGE_KHR
Native value VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE_KHR.
Khronos reference: VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE_KHR
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::SamplerBlockMatchWindowCreateInfoQCOM
Contract
Native structure VkSamplerBlockMatchWindowCreateInfoQCOM.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
window_extent
window_extent: Extent2DNative field windowExtent.
window_compare_mode
window_compare_mode: BlockMatchWindowCompareModeQCOMNative field windowCompareMode.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_window_extent
Set native field windowExtent without native effects.
set_window_compare_mode
Set native field windowCompareMode without native effects.
push_next
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.
default
Stvk::SamplerBorderColorComponentMappingCreateInfoEXT
Contract
Native structure VkSamplerBorderColorComponentMappingCreateInfoEXT.
Khronos reference: VkSamplerBorderColorComponentMappingCreateInfoEXT
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
components
components: ComponentMappingNative field components.
srgb
srgb: Bool32Native field srgb.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_components
Set native field components without native effects.
set_srgb
Set native field srgb without native effects.
push_next
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.
default
Stvk::SamplerCaptureDescriptorDataInfoEXT
Contract
Native structure VkSamplerCaptureDescriptorDataInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
sampler
sampler: SamplerNative field sampler.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_sampler
Set native field sampler without native effects.
push_next
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.
default
Stvk::SamplerCreateFlagBits
Contract
Open integer representation of VkSamplerCreateFlagBits.
Fields
0
0: u32Methods and associated items
SUBSAMPLED_BIT_EXT
Native value VK_SAMPLER_CREATE_SUBSAMPLED_BIT_EXT.
SUBSAMPLED_COARSE_RECONSTRUCTION_BIT_EXT
Native value VK_SAMPLER_CREATE_SUBSAMPLED_COARSE_RECONSTRUCTION_BIT_EXT.
Khronos reference: VK_SAMPLER_CREATE_SUBSAMPLED_COARSE_RECONSTRUCTION_BIT_EXT
DESCRIPTOR_BUFFER_CAPTURE_REPLAY_BIT_EXT
Native value VK_SAMPLER_CREATE_DESCRIPTOR_BUFFER_CAPTURE_REPLAY_BIT_EXT.
Khronos reference: VK_SAMPLER_CREATE_DESCRIPTOR_BUFFER_CAPTURE_REPLAY_BIT_EXT
NON_SEAMLESS_CUBE_MAP_BIT_EXT
Native value VK_SAMPLER_CREATE_NON_SEAMLESS_CUBE_MAP_BIT_EXT.
Khronos reference: VK_SAMPLER_CREATE_NON_SEAMLESS_CUBE_MAP_BIT_EXT
IMAGE_PROCESSING_BIT_QCOM
Native value VK_SAMPLER_CREATE_IMAGE_PROCESSING_BIT_QCOM.
Khronos reference: VK_SAMPLER_CREATE_IMAGE_PROCESSING_BIT_QCOM
from_raw
as_raw
empty
Output
& operator.bitand
& operation. Read moreOutput-1
| operator.bitor
| operation. Read moreOutput-2
^ operator.bitxor
^ operation. Read moreclone
fmt
default
hash
Output-3
! operator.not
! operation. Read moreeq
self and other values to be equal, and is used by ==.Stvk::SamplerCreateInfo
pub struct SamplerCreateInfo<'a> {
pub s_type: StructureType,
pub p_next: *const c_void,
pub flags: SamplerCreateFlags,
pub mag_filter: Filter,
pub min_filter: Filter,
pub mipmap_mode: SamplerMipmapMode,
pub address_mode_u: SamplerAddressMode,
pub address_mode_v: SamplerAddressMode,
pub address_mode_w: SamplerAddressMode,
pub mip_lod_bias: f32,
pub anisotropy_enable: Bool32,
pub max_anisotropy: f32,
pub compare_enable: Bool32,
pub compare_op: CompareOp,
pub min_lod: f32,
pub max_lod: f32,
pub border_color: BorderColor,
pub unnormalized_coordinates: Bool32,
/* private fields */
}Contract
Native structure VkSamplerCreateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
flags
flags: SamplerCreateFlagsNative field flags.
mag_filter
mag_filter: FilterNative field magFilter.
min_filter
min_filter: FilterNative field minFilter.
mipmap_mode
mipmap_mode: SamplerMipmapModeNative field mipmapMode.
address_mode_u
address_mode_u: SamplerAddressModeNative field addressModeU.
address_mode_v
address_mode_v: SamplerAddressModeNative field addressModeV.
address_mode_w
address_mode_w: SamplerAddressModeNative field addressModeW.
mip_lod_bias
mip_lod_bias: f32Native field mipLodBias.
anisotropy_enable
anisotropy_enable: Bool32Native field anisotropyEnable.
max_anisotropy
max_anisotropy: f32Native field maxAnisotropy.
compare_enable
compare_enable: Bool32Native field compareEnable.
compare_op
compare_op: CompareOpNative field compareOp.
min_lod
min_lod: f32Native field minLod.
max_lod
max_lod: f32Native field maxLod.
border_color
border_color: BorderColorNative field borderColor.
unnormalized_coordinates
unnormalized_coordinates: Bool32Native field unnormalizedCoordinates.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_flags
Set native field flags without native effects.
set_mag_filter
Set native field magFilter without native effects.
set_min_filter
Set native field minFilter without native effects.
set_mipmap_mode
Set native field mipmapMode without native effects.
set_address_mode_u
Set native field addressModeU without native effects.
set_address_mode_v
Set native field addressModeV without native effects.
set_address_mode_w
Set native field addressModeW without native effects.
set_mip_lod_bias
Set native field mipLodBias without native effects.
set_anisotropy_enable
Set native field anisotropyEnable without native effects.
set_max_anisotropy
Set native field maxAnisotropy without native effects.
set_compare_enable
Set native field compareEnable without native effects.
set_compare_op
Set native field compareOp without native effects.
set_min_lod
Set native field minLod without native effects.
set_max_lod
Set native field maxLod without native effects.
set_border_color
Set native field borderColor without native effects.
set_unnormalized_coordinates
Set native field unnormalizedCoordinates without native effects.
push_next
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.
default
Stvk::SamplerCubicWeightsCreateInfoQCOM
Contract
Native structure VkSamplerCubicWeightsCreateInfoQCOM.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
cubic_weights
cubic_weights: CubicFilterWeightsQCOMNative field cubicWeights.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_cubic_weights
Set native field cubicWeights without native effects.
push_next
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.
default
Stvk::SamplerCustomBorderColorCreateInfoEXT
Contract
Native structure VkSamplerCustomBorderColorCreateInfoEXT.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
custom_border_color
custom_border_color: ClearColorValueNative field customBorderColor.
format
format: FormatNative field format.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_custom_border_color
Set native field customBorderColor without native effects.
set_format
Set native field format without native effects.
push_next
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.
default
Stvk::SamplerCustomBorderColorIndexCreateInfoEXT
Contract
Native structure VkSamplerCustomBorderColorIndexCreateInfoEXT.
Khronos reference: VkSamplerCustomBorderColorIndexCreateInfoEXT
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
index
index: u32Native field index.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_index
Set native field index without native effects.
push_next
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.
default
Stvk::SamplerMipmapMode
Contract
Open integer representation of VkSamplerMipmapMode.
Fields
0
0: i32Methods and associated items
NEAREST
Native value VK_SAMPLER_MIPMAP_MODE_NEAREST.
LINEAR
Native value VK_SAMPLER_MIPMAP_MODE_LINEAR.
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::SamplerReductionMode
Contract
Open integer representation of VkSamplerReductionMode.
Fields
0
0: i32Methods and associated items
WEIGHTED_AVERAGE
Native value VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE.
Khronos reference: VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE
MIN
Native value VK_SAMPLER_REDUCTION_MODE_MIN.
MAX
Native value VK_SAMPLER_REDUCTION_MODE_MAX.
WEIGHTED_AVERAGE_EXT
Native value VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_EXT.
Khronos reference: VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_EXT
MIN_EXT
Native value VK_SAMPLER_REDUCTION_MODE_MIN_EXT.
MAX_EXT
Native value VK_SAMPLER_REDUCTION_MODE_MAX_EXT.
WEIGHTED_AVERAGE_RANGECLAMP_QCOM
Native value VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_RANGECLAMP_QCOM.
Khronos reference: VK_SAMPLER_REDUCTION_MODE_WEIGHTED_AVERAGE_RANGECLAMP_QCOM
from_raw
as_raw
empty
clone
fmt
default
hash
eq
self and other values to be equal, and is used by ==.Stvk::SamplerReductionModeCreateInfo
Contract
Native structure VkSamplerReductionModeCreateInfo.
Fields
s_type
s_type: StructureTypeNative field sType.
p_next
p_next: *const c_voidNative field pNext.
reduction_mode
reduction_mode: SamplerReductionModeNative field reductionMode.
Methods and associated items
new
Construct the record with its canonical sType tag and default native state.
set_reduction_mode
Set native field reductionMode without native effects.
push_next
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.