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 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290
#[doc = "<s>Vulkan Manual Page</s> · Constant"] #[doc(alias = "VK_EXT_SUBGROUP_SIZE_CONTROL_SPEC_VERSION")] pub const EXT_SUBGROUP_SIZE_CONTROL_SPEC_VERSION: u32 = 2; #[doc = "<s>Vulkan Manual Page</s> · Constant"] #[doc(alias = "VK_EXT_SUBGROUP_SIZE_CONTROL_EXTENSION_NAME")] pub const EXT_SUBGROUP_SIZE_CONTROL_EXTENSION_NAME: *const std::os::raw::c_char = crate::cstr!("VK_EXT_subgroup_size_control"); #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPhysicalDeviceSubgroupSizeControlFeaturesEXT.html) · Structure"] #[doc(alias = "VkPhysicalDeviceSubgroupSizeControlFeaturesEXT")] #[derive(Copy, Clone)] #[repr(C)] pub struct PhysicalDeviceSubgroupSizeControlFeaturesEXT { pub s_type: crate::vk1_0::StructureType, pub p_next: *mut std::ffi::c_void, pub subgroup_size_control: crate::vk1_0::Bool32, pub compute_full_subgroups: crate::vk1_0::Bool32, } impl Default for PhysicalDeviceSubgroupSizeControlFeaturesEXT { fn default() -> Self { Self { s_type: crate::vk1_0::StructureType::PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_FEATURES_EXT, p_next: std::ptr::null_mut(), subgroup_size_control: Default::default(), compute_full_subgroups: Default::default(), } } } impl std::fmt::Debug for PhysicalDeviceSubgroupSizeControlFeaturesEXT { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PhysicalDeviceSubgroupSizeControlFeaturesEXT") .field("s_type", &self.s_type) .field("p_next", &self.p_next) .field("subgroup_size_control", &(self.subgroup_size_control != 0)) .field( "compute_full_subgroups", &(self.compute_full_subgroups != 0), ) .finish() } } impl PhysicalDeviceSubgroupSizeControlFeaturesEXT { #[inline] pub fn into_builder<'a>(self) -> PhysicalDeviceSubgroupSizeControlFeaturesEXTBuilder<'a> { PhysicalDeviceSubgroupSizeControlFeaturesEXTBuilder(self, std::marker::PhantomData) } } #[derive(Copy, Clone)] #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPhysicalDeviceSubgroupSizeControlFeaturesEXT.html) · Builder of [`PhysicalDeviceSubgroupSizeControlFeaturesEXT`]"] #[repr(transparent)] pub struct PhysicalDeviceSubgroupSizeControlFeaturesEXTBuilder<'a>( PhysicalDeviceSubgroupSizeControlFeaturesEXT, std::marker::PhantomData<&'a ()>, ); impl<'a> PhysicalDeviceSubgroupSizeControlFeaturesEXTBuilder<'a> { #[inline] pub fn new() -> PhysicalDeviceSubgroupSizeControlFeaturesEXTBuilder<'a> { PhysicalDeviceSubgroupSizeControlFeaturesEXTBuilder( Default::default(), std::marker::PhantomData, ) } #[inline] pub fn subgroup_size_control(mut self, subgroup_size_control: bool) -> Self { self.0.subgroup_size_control = subgroup_size_control as _; self } #[inline] pub fn compute_full_subgroups(mut self, compute_full_subgroups: bool) -> Self { self.0.compute_full_subgroups = compute_full_subgroups as _; self } #[inline] #[doc = "Discards all lifetime information. Use the `Deref` and `DerefMut` implementations if possible."] pub fn build(self) -> PhysicalDeviceSubgroupSizeControlFeaturesEXT { self.0 } } impl<'a> std::default::Default for PhysicalDeviceSubgroupSizeControlFeaturesEXTBuilder<'a> { fn default() -> PhysicalDeviceSubgroupSizeControlFeaturesEXTBuilder<'a> { Self::new() } } impl<'a> std::fmt::Debug for PhysicalDeviceSubgroupSizeControlFeaturesEXTBuilder<'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 PhysicalDeviceSubgroupSizeControlFeaturesEXTBuilder<'a> { type Target = PhysicalDeviceSubgroupSizeControlFeaturesEXT; fn deref(&self) -> &Self::Target { &self.0 } } impl<'a> std::ops::DerefMut for PhysicalDeviceSubgroupSizeControlFeaturesEXTBuilder<'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/VkPhysicalDeviceSubgroupSizeControlPropertiesEXT.html) · Structure"] #[doc(alias = "VkPhysicalDeviceSubgroupSizeControlPropertiesEXT")] #[derive(Copy, Clone)] #[repr(C)] pub struct PhysicalDeviceSubgroupSizeControlPropertiesEXT { pub s_type: crate::vk1_0::StructureType, pub p_next: *mut std::ffi::c_void, pub min_subgroup_size: u32, pub max_subgroup_size: u32, pub max_compute_workgroup_subgroups: u32, pub required_subgroup_size_stages: crate::vk1_0::ShaderStageFlags, } impl Default for PhysicalDeviceSubgroupSizeControlPropertiesEXT { fn default() -> Self { Self { s_type: crate::vk1_0::StructureType::PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_PROPERTIES_EXT, p_next: std::ptr::null_mut(), min_subgroup_size: Default::default(), max_subgroup_size: Default::default(), max_compute_workgroup_subgroups: Default::default(), required_subgroup_size_stages: Default::default(), } } } impl std::fmt::Debug for PhysicalDeviceSubgroupSizeControlPropertiesEXT { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PhysicalDeviceSubgroupSizeControlPropertiesEXT") .field("s_type", &self.s_type) .field("p_next", &self.p_next) .field("min_subgroup_size", &self.min_subgroup_size) .field("max_subgroup_size", &self.max_subgroup_size) .field( "max_compute_workgroup_subgroups", &self.max_compute_workgroup_subgroups, ) .field( "required_subgroup_size_stages", &self.required_subgroup_size_stages, ) .finish() } } impl PhysicalDeviceSubgroupSizeControlPropertiesEXT { #[inline] pub fn into_builder<'a>(self) -> PhysicalDeviceSubgroupSizeControlPropertiesEXTBuilder<'a> { PhysicalDeviceSubgroupSizeControlPropertiesEXTBuilder(self, std::marker::PhantomData) } } #[derive(Copy, Clone)] #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPhysicalDeviceSubgroupSizeControlPropertiesEXT.html) · Builder of [`PhysicalDeviceSubgroupSizeControlPropertiesEXT`]"] #[repr(transparent)] pub struct PhysicalDeviceSubgroupSizeControlPropertiesEXTBuilder<'a>( PhysicalDeviceSubgroupSizeControlPropertiesEXT, std::marker::PhantomData<&'a ()>, ); impl<'a> PhysicalDeviceSubgroupSizeControlPropertiesEXTBuilder<'a> { #[inline] pub fn new() -> PhysicalDeviceSubgroupSizeControlPropertiesEXTBuilder<'a> { PhysicalDeviceSubgroupSizeControlPropertiesEXTBuilder( Default::default(), std::marker::PhantomData, ) } #[inline] pub fn min_subgroup_size(mut self, min_subgroup_size: u32) -> Self { self.0.min_subgroup_size = min_subgroup_size as _; self } #[inline] pub fn max_subgroup_size(mut self, max_subgroup_size: u32) -> Self { self.0.max_subgroup_size = max_subgroup_size as _; self } #[inline] pub fn max_compute_workgroup_subgroups(mut self, max_compute_workgroup_subgroups: u32) -> Self { self.0.max_compute_workgroup_subgroups = max_compute_workgroup_subgroups as _; self } #[inline] pub fn required_subgroup_size_stages( mut self, required_subgroup_size_stages: crate::vk1_0::ShaderStageFlags, ) -> Self { self.0.required_subgroup_size_stages = required_subgroup_size_stages as _; self } #[inline] #[doc = "Discards all lifetime information. Use the `Deref` and `DerefMut` implementations if possible."] pub fn build(self) -> PhysicalDeviceSubgroupSizeControlPropertiesEXT { self.0 } } impl<'a> std::default::Default for PhysicalDeviceSubgroupSizeControlPropertiesEXTBuilder<'a> { fn default() -> PhysicalDeviceSubgroupSizeControlPropertiesEXTBuilder<'a> { Self::new() } } impl<'a> std::fmt::Debug for PhysicalDeviceSubgroupSizeControlPropertiesEXTBuilder<'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 PhysicalDeviceSubgroupSizeControlPropertiesEXTBuilder<'a> { type Target = PhysicalDeviceSubgroupSizeControlPropertiesEXT; fn deref(&self) -> &Self::Target { &self.0 } } impl<'a> std::ops::DerefMut for PhysicalDeviceSubgroupSizeControlPropertiesEXTBuilder<'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/VkPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT.html) · Structure"] #[doc(alias = "VkPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT")] #[derive(Copy, Clone)] #[repr(C)] pub struct PipelineShaderStageRequiredSubgroupSizeCreateInfoEXT { pub s_type: crate::vk1_0::StructureType, pub p_next: *mut std::ffi::c_void, pub required_subgroup_size: u32, } impl Default for PipelineShaderStageRequiredSubgroupSizeCreateInfoEXT { fn default() -> Self { Self { s_type : crate :: vk1_0 :: StructureType :: PIPELINE_SHADER_STAGE_REQUIRED_SUBGROUP_SIZE_CREATE_INFO_EXT , p_next : std :: ptr :: null_mut () , required_subgroup_size : Default :: default () } } } impl std::fmt::Debug for PipelineShaderStageRequiredSubgroupSizeCreateInfoEXT { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { f.debug_struct("PipelineShaderStageRequiredSubgroupSizeCreateInfoEXT") .field("s_type", &self.s_type) .field("p_next", &self.p_next) .field("required_subgroup_size", &self.required_subgroup_size) .finish() } } impl PipelineShaderStageRequiredSubgroupSizeCreateInfoEXT { #[inline] pub fn into_builder<'a>( self, ) -> PipelineShaderStageRequiredSubgroupSizeCreateInfoEXTBuilder<'a> { PipelineShaderStageRequiredSubgroupSizeCreateInfoEXTBuilder(self, std::marker::PhantomData) } } #[derive(Copy, Clone)] #[doc = "[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT.html) · Builder of [`PipelineShaderStageRequiredSubgroupSizeCreateInfoEXT`]"] #[repr(transparent)] pub struct PipelineShaderStageRequiredSubgroupSizeCreateInfoEXTBuilder<'a>( PipelineShaderStageRequiredSubgroupSizeCreateInfoEXT, std::marker::PhantomData<&'a ()>, ); impl<'a> PipelineShaderStageRequiredSubgroupSizeCreateInfoEXTBuilder<'a> { #[inline] pub fn new() -> PipelineShaderStageRequiredSubgroupSizeCreateInfoEXTBuilder<'a> { PipelineShaderStageRequiredSubgroupSizeCreateInfoEXTBuilder( Default::default(), std::marker::PhantomData, ) } #[inline] pub fn required_subgroup_size(mut self, required_subgroup_size: u32) -> Self { self.0.required_subgroup_size = required_subgroup_size as _; self } #[inline] #[doc = "Discards all lifetime information. Use the `Deref` and `DerefMut` implementations if possible."] pub fn build(self) -> PipelineShaderStageRequiredSubgroupSizeCreateInfoEXT { self.0 } } impl<'a> std::default::Default for PipelineShaderStageRequiredSubgroupSizeCreateInfoEXTBuilder<'a> { fn default() -> PipelineShaderStageRequiredSubgroupSizeCreateInfoEXTBuilder<'a> { Self::new() } } impl<'a> std::fmt::Debug for PipelineShaderStageRequiredSubgroupSizeCreateInfoEXTBuilder<'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 PipelineShaderStageRequiredSubgroupSizeCreateInfoEXTBuilder<'a> { type Target = PipelineShaderStageRequiredSubgroupSizeCreateInfoEXT; fn deref(&self) -> &Self::Target { &self.0 } } impl<'a> std::ops::DerefMut for PipelineShaderStageRequiredSubgroupSizeCreateInfoEXTBuilder<'a> { fn deref_mut(&mut self) -> &mut Self::Target { &mut self.0 } }