1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275
#[doc = "<s>Vulkan Manual Page</s> · Constant"] #[doc(alias = "VK_EXT_CUSTOM_BORDER_COLOR_SPEC_VERSION")] pub const EXT_CUSTOM_BORDER_COLOR_SPEC_VERSION: u32 = 12; #[doc = "<s>Vulkan Manual Page</s> · Constant"] #[doc(alias = "VK_EXT_CUSTOM_BORDER_COLOR_EXTENSION_NAME")] pub const EXT_CUSTOM_BORDER_COLOR_EXTENSION_NAME: *const std::os::raw::c_char = crate::cstr!("VK_EXT_custom_border_color"); #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkSamplerCustomBorderColorCreateInfoEXT.html) · Structure"] #[doc(alias = "VkSamplerCustomBorderColorCreateInfoEXT")] #[derive(Copy, Clone)] #[repr(C)] pub struct SamplerCustomBorderColorCreateInfoEXT { pub s_type: crate::vk1_0::StructureType, pub p_next: *const std::ffi::c_void, pub custom_border_color: crate::vk1_0::ClearColorValue, pub format: crate::vk1_0::Format, } impl Default for SamplerCustomBorderColorCreateInfoEXT { fn default() -> Self { Self { s_type: crate::vk1_0::StructureType::SAMPLER_CUSTOM_BORDER_COLOR_CREATE_INFO_EXT, p_next: std::ptr::null(), custom_border_color: Default::default(), format: Default::default(), } } } impl std::fmt::Debug for SamplerCustomBorderColorCreateInfoEXT { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("SamplerCustomBorderColorCreateInfoEXT") .field("s_type", &self.s_type) .field("p_next", &self.p_next) .field("custom_border_color", &self.custom_border_color) .field("format", &self.format) .finish() } } impl SamplerCustomBorderColorCreateInfoEXT { #[inline] pub fn into_builder<'a>(self) -> SamplerCustomBorderColorCreateInfoEXTBuilder<'a> { SamplerCustomBorderColorCreateInfoEXTBuilder(self, std::marker::PhantomData) } } #[derive(Copy, Clone)] #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkSamplerCustomBorderColorCreateInfoEXT.html) · Builder of [`SamplerCustomBorderColorCreateInfoEXT`]"] #[repr(transparent)] pub struct SamplerCustomBorderColorCreateInfoEXTBuilder<'a>( SamplerCustomBorderColorCreateInfoEXT, std::marker::PhantomData<&'a ()>, ); impl<'a> SamplerCustomBorderColorCreateInfoEXTBuilder<'a> { #[inline] pub fn new() -> SamplerCustomBorderColorCreateInfoEXTBuilder<'a> { SamplerCustomBorderColorCreateInfoEXTBuilder(Default::default(), std::marker::PhantomData) } #[inline] pub fn custom_border_color( mut self, custom_border_color: crate::vk1_0::ClearColorValue, ) -> Self { self.0.custom_border_color = custom_border_color as _; self } #[inline] pub fn format(mut self, format: crate::vk1_0::Format) -> Self { self.0.format = format as _; self } #[inline] #[doc = "Discards all lifetime information. Use the `Deref` and `DerefMut` implementations if possible."] pub fn build(self) -> SamplerCustomBorderColorCreateInfoEXT { self.0 } } impl<'a> std::default::Default for SamplerCustomBorderColorCreateInfoEXTBuilder<'a> { fn default() -> SamplerCustomBorderColorCreateInfoEXTBuilder<'a> { Self::new() } } impl<'a> std::fmt::Debug for SamplerCustomBorderColorCreateInfoEXTBuilder<'a> { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { std::fmt::Debug::fmt(&self.0, f) } } impl<'a> std::ops::Deref for SamplerCustomBorderColorCreateInfoEXTBuilder<'a> { type Target = SamplerCustomBorderColorCreateInfoEXT; fn deref(&self) -> &Self::Target { &self.0 } } impl<'a> std::ops::DerefMut for SamplerCustomBorderColorCreateInfoEXTBuilder<'a> { fn deref_mut(&mut self) -> &mut Self::Target { &mut self.0 } } #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPhysicalDeviceCustomBorderColorPropertiesEXT.html) · Structure"] #[doc(alias = "VkPhysicalDeviceCustomBorderColorPropertiesEXT")] #[derive(Copy, Clone)] #[repr(C)] pub struct PhysicalDeviceCustomBorderColorPropertiesEXT { pub s_type: crate::vk1_0::StructureType, pub p_next: *mut std::ffi::c_void, pub max_custom_border_color_samplers: u32, } impl Default for PhysicalDeviceCustomBorderColorPropertiesEXT { fn default() -> Self { Self { s_type: crate::vk1_0::StructureType::PHYSICAL_DEVICE_CUSTOM_BORDER_COLOR_PROPERTIES_EXT, p_next: std::ptr::null_mut(), max_custom_border_color_samplers: Default::default(), } } } impl std::fmt::Debug for PhysicalDeviceCustomBorderColorPropertiesEXT { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PhysicalDeviceCustomBorderColorPropertiesEXT") .field("s_type", &self.s_type) .field("p_next", &self.p_next) .field( "max_custom_border_color_samplers", &self.max_custom_border_color_samplers, ) .finish() } } impl PhysicalDeviceCustomBorderColorPropertiesEXT { #[inline] pub fn into_builder<'a>(self) -> PhysicalDeviceCustomBorderColorPropertiesEXTBuilder<'a> { PhysicalDeviceCustomBorderColorPropertiesEXTBuilder(self, std::marker::PhantomData) } } #[derive(Copy, Clone)] #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPhysicalDeviceCustomBorderColorPropertiesEXT.html) · Builder of [`PhysicalDeviceCustomBorderColorPropertiesEXT`]"] #[repr(transparent)] pub struct PhysicalDeviceCustomBorderColorPropertiesEXTBuilder<'a>( PhysicalDeviceCustomBorderColorPropertiesEXT, std::marker::PhantomData<&'a ()>, ); impl<'a> PhysicalDeviceCustomBorderColorPropertiesEXTBuilder<'a> { #[inline] pub fn new() -> PhysicalDeviceCustomBorderColorPropertiesEXTBuilder<'a> { PhysicalDeviceCustomBorderColorPropertiesEXTBuilder( Default::default(), std::marker::PhantomData, ) } #[inline] pub fn max_custom_border_color_samplers( mut self, max_custom_border_color_samplers: u32, ) -> Self { self.0.max_custom_border_color_samplers = max_custom_border_color_samplers as _; self } #[inline] #[doc = "Discards all lifetime information. Use the `Deref` and `DerefMut` implementations if possible."] pub fn build(self) -> PhysicalDeviceCustomBorderColorPropertiesEXT { self.0 } } impl<'a> std::default::Default for PhysicalDeviceCustomBorderColorPropertiesEXTBuilder<'a> { fn default() -> PhysicalDeviceCustomBorderColorPropertiesEXTBuilder<'a> { Self::new() } } impl<'a> std::fmt::Debug for PhysicalDeviceCustomBorderColorPropertiesEXTBuilder<'a> { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { std::fmt::Debug::fmt(&self.0, f) } } impl<'a> std::ops::Deref for PhysicalDeviceCustomBorderColorPropertiesEXTBuilder<'a> { type Target = PhysicalDeviceCustomBorderColorPropertiesEXT; fn deref(&self) -> &Self::Target { &self.0 } } impl<'a> std::ops::DerefMut for PhysicalDeviceCustomBorderColorPropertiesEXTBuilder<'a> { fn deref_mut(&mut self) -> &mut Self::Target { &mut self.0 } } #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPhysicalDeviceCustomBorderColorFeaturesEXT.html) · Structure"] #[doc(alias = "VkPhysicalDeviceCustomBorderColorFeaturesEXT")] #[derive(Copy, Clone)] #[repr(C)] pub struct PhysicalDeviceCustomBorderColorFeaturesEXT { pub s_type: crate::vk1_0::StructureType, pub p_next: *mut std::ffi::c_void, pub custom_border_colors: crate::vk1_0::Bool32, pub custom_border_color_without_format: crate::vk1_0::Bool32, } impl Default for PhysicalDeviceCustomBorderColorFeaturesEXT { fn default() -> Self { Self { s_type: crate::vk1_0::StructureType::PHYSICAL_DEVICE_CUSTOM_BORDER_COLOR_FEATURES_EXT, p_next: std::ptr::null_mut(), custom_border_colors: Default::default(), custom_border_color_without_format: Default::default(), } } } impl std::fmt::Debug for PhysicalDeviceCustomBorderColorFeaturesEXT { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PhysicalDeviceCustomBorderColorFeaturesEXT") .field("s_type", &self.s_type) .field("p_next", &self.p_next) .field("custom_border_colors", &(self.custom_border_colors != 0)) .field( "custom_border_color_without_format", &(self.custom_border_color_without_format != 0), ) .finish() } } impl PhysicalDeviceCustomBorderColorFeaturesEXT { #[inline] pub fn into_builder<'a>(self) -> PhysicalDeviceCustomBorderColorFeaturesEXTBuilder<'a> { PhysicalDeviceCustomBorderColorFeaturesEXTBuilder(self, std::marker::PhantomData) } } #[derive(Copy, Clone)] #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPhysicalDeviceCustomBorderColorFeaturesEXT.html) · Builder of [`PhysicalDeviceCustomBorderColorFeaturesEXT`]"] #[repr(transparent)] pub struct PhysicalDeviceCustomBorderColorFeaturesEXTBuilder<'a>( PhysicalDeviceCustomBorderColorFeaturesEXT, std::marker::PhantomData<&'a ()>, ); impl<'a> PhysicalDeviceCustomBorderColorFeaturesEXTBuilder<'a> { #[inline] pub fn new() -> PhysicalDeviceCustomBorderColorFeaturesEXTBuilder<'a> { PhysicalDeviceCustomBorderColorFeaturesEXTBuilder( Default::default(), std::marker::PhantomData, ) } #[inline] pub fn custom_border_colors(mut self, custom_border_colors: bool) -> Self { self.0.custom_border_colors = custom_border_colors as _; self } #[inline] pub fn custom_border_color_without_format( mut self, custom_border_color_without_format: bool, ) -> Self { self.0.custom_border_color_without_format = custom_border_color_without_format as _; self } #[inline] #[doc = "Discards all lifetime information. Use the `Deref` and `DerefMut` implementations if possible."] pub fn build(self) -> PhysicalDeviceCustomBorderColorFeaturesEXT { self.0 } } impl<'a> std::default::Default for PhysicalDeviceCustomBorderColorFeaturesEXTBuilder<'a> { fn default() -> PhysicalDeviceCustomBorderColorFeaturesEXTBuilder<'a> { Self::new() } } impl<'a> std::fmt::Debug for PhysicalDeviceCustomBorderColorFeaturesEXTBuilder<'a> { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { std::fmt::Debug::fmt(&self.0, f) } } impl<'a> std::ops::Deref for PhysicalDeviceCustomBorderColorFeaturesEXTBuilder<'a> { type Target = PhysicalDeviceCustomBorderColorFeaturesEXT; fn deref(&self) -> &Self::Target { &self.0 } } impl<'a> std::ops::DerefMut for PhysicalDeviceCustomBorderColorFeaturesEXTBuilder<'a> { fn deref_mut(&mut self) -> &mut Self::Target { &mut self.0 } }