[{"data":1,"prerenderedAt":533},["ShallowReactive",2],{"AB3yMmPZzN":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":532,"_id":4},"VkPhysicalDeviceBorderColorSwizzleFeaturesEXT","Structure describing whether samplers with custom border colors require the component swizzle specified in order to have defined behavior","VK_EXT_border_color_swizzle","structs",[],{"type":10,"children":11,"toc":530},"root",[12,28,270,275,432,493,524],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,26],{"type":18,"value":19},"text","The ",{"type":13,"tag":21,"props":22,"children":24},"code",{"className":23},[],[25],{"type":18,"value":4},{"type":18,"value":27}," structure is defined\nas:",{"type":13,"tag":29,"props":30,"children":31},"code-group",{},[32,117],{"type":13,"tag":33,"props":34,"children":40},"pre",{"className":35,"code":36,"filename":37,"language":38,"meta":39,"style":39},"language-c shiki shiki-themes github-light-default github-dark-default","typedef struct VkPhysicalDeviceBorderColorSwizzleFeaturesEXT {\n VkStructureType sType;\n void* pNext;\n VkBool32 borderColorSwizzle;\n VkBool32 borderColorSwizzleFromImage;\n} VkPhysicalDeviceBorderColorSwizzleFeaturesEXT;\n","C","c","",[41],{"type":13,"tag":21,"props":42,"children":43},{"__ignoreMap":39},[44,67,76,90,99,108],{"type":13,"tag":45,"props":46,"children":49},"span",{"class":47,"line":48},"line",1,[50,56,61],{"type":13,"tag":45,"props":51,"children":53},{"style":52},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[54],{"type":18,"value":55},"typedef",{"type":13,"tag":45,"props":57,"children":58},{"style":52},[59],{"type":18,"value":60}," struct",{"type":13,"tag":45,"props":62,"children":64},{"style":63},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[65],{"type":18,"value":66}," VkPhysicalDeviceBorderColorSwizzleFeaturesEXT {\n",{"type":13,"tag":45,"props":68,"children":70},{"class":47,"line":69},2,[71],{"type":13,"tag":45,"props":72,"children":73},{"style":63},[74],{"type":18,"value":75}," VkStructureType sType;\n",{"type":13,"tag":45,"props":77,"children":79},{"class":47,"line":78},3,[80,85],{"type":13,"tag":45,"props":81,"children":82},{"style":52},[83],{"type":18,"value":84}," void*",{"type":13,"tag":45,"props":86,"children":87},{"style":63},[88],{"type":18,"value":89}," pNext;\n",{"type":13,"tag":45,"props":91,"children":93},{"class":47,"line":92},4,[94],{"type":13,"tag":45,"props":95,"children":96},{"style":63},[97],{"type":18,"value":98}," VkBool32 borderColorSwizzle;\n",{"type":13,"tag":45,"props":100,"children":102},{"class":47,"line":101},5,[103],{"type":13,"tag":45,"props":104,"children":105},{"style":63},[106],{"type":18,"value":107}," VkBool32 borderColorSwizzleFromImage;\n",{"type":13,"tag":45,"props":109,"children":111},{"class":47,"line":110},6,[112],{"type":13,"tag":45,"props":113,"children":114},{"style":63},[115],{"type":18,"value":116},"} VkPhysicalDeviceBorderColorSwizzleFeaturesEXT;\n",{"type":13,"tag":33,"props":118,"children":123},{"className":119,"code":120,"filename":121,"language":122,"meta":39,"style":39},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct PhysicalDeviceBorderColorSwizzleFeaturesEXT {\n s_type: vk::StructureType,\n p_next: *mut c_void,\n border_color_swizzle: vk::Bool32,\n border_color_swizzle_from_image: vk::Bool32,\n}\n","Rust","rs",[124],{"type":13,"tag":21,"props":125,"children":126},{"__ignoreMap":39},[127,150,183,205,234,262],{"type":13,"tag":45,"props":128,"children":129},{"class":47,"line":48},[130,135,139,145],{"type":13,"tag":45,"props":131,"children":132},{"style":52},[133],{"type":18,"value":134},"pub",{"type":13,"tag":45,"props":136,"children":137},{"style":52},[138],{"type":18,"value":60},{"type":13,"tag":45,"props":140,"children":142},{"style":141},"--shiki-default:#953800;--shiki-dark:#FFA657",[143],{"type":18,"value":144}," PhysicalDeviceBorderColorSwizzleFeaturesEXT",{"type":13,"tag":45,"props":146,"children":147},{"style":63},[148],{"type":18,"value":149}," {\n",{"type":13,"tag":45,"props":151,"children":152},{"class":47,"line":69},[153,158,163,168,173,178],{"type":13,"tag":45,"props":154,"children":155},{"style":63},[156],{"type":18,"value":157}," s_type",{"type":13,"tag":45,"props":159,"children":160},{"style":52},[161],{"type":18,"value":162},":",{"type":13,"tag":45,"props":164,"children":165},{"style":141},[166],{"type":18,"value":167}," vk",{"type":13,"tag":45,"props":169,"children":170},{"style":52},[171],{"type":18,"value":172},"::",{"type":13,"tag":45,"props":174,"children":175},{"style":141},[176],{"type":18,"value":177},"StructureType",{"type":13,"tag":45,"props":179,"children":180},{"style":63},[181],{"type":18,"value":182},",\n",{"type":13,"tag":45,"props":184,"children":185},{"class":47,"line":78},[186,191,195,200],{"type":13,"tag":45,"props":187,"children":188},{"style":63},[189],{"type":18,"value":190}," p_next",{"type":13,"tag":45,"props":192,"children":193},{"style":52},[194],{"type":18,"value":162},{"type":13,"tag":45,"props":196,"children":197},{"style":52},[198],{"type":18,"value":199}," *mut",{"type":13,"tag":45,"props":201,"children":202},{"style":63},[203],{"type":18,"value":204}," c_void,\n",{"type":13,"tag":45,"props":206,"children":207},{"class":47,"line":92},[208,213,217,221,225,230],{"type":13,"tag":45,"props":209,"children":210},{"style":63},[211],{"type":18,"value":212}," border_color_swizzle",{"type":13,"tag":45,"props":214,"children":215},{"style":52},[216],{"type":18,"value":162},{"type":13,"tag":45,"props":218,"children":219},{"style":141},[220],{"type":18,"value":167},{"type":13,"tag":45,"props":222,"children":223},{"style":52},[224],{"type":18,"value":172},{"type":13,"tag":45,"props":226,"children":227},{"style":141},[228],{"type":18,"value":229},"Bool32",{"type":13,"tag":45,"props":231,"children":232},{"style":63},[233],{"type":18,"value":182},{"type":13,"tag":45,"props":235,"children":236},{"class":47,"line":101},[237,242,246,250,254,258],{"type":13,"tag":45,"props":238,"children":239},{"style":63},[240],{"type":18,"value":241}," border_color_swizzle_from_image",{"type":13,"tag":45,"props":243,"children":244},{"style":52},[245],{"type":18,"value":162},{"type":13,"tag":45,"props":247,"children":248},{"style":141},[249],{"type":18,"value":167},{"type":13,"tag":45,"props":251,"children":252},{"style":52},[253],{"type":18,"value":172},{"type":13,"tag":45,"props":255,"children":256},{"style":141},[257],{"type":18,"value":229},{"type":13,"tag":45,"props":259,"children":260},{"style":63},[261],{"type":18,"value":182},{"type":13,"tag":45,"props":263,"children":264},{"class":47,"line":110},[265],{"type":13,"tag":45,"props":266,"children":267},{"style":63},[268],{"type":18,"value":269},"}\n",{"type":13,"tag":14,"props":271,"children":272},{},[273],{"type":18,"value":274},"This structure describes the following features:",{"type":13,"tag":276,"props":277,"children":278},"ul",{},[279,300,319,398],{"type":13,"tag":280,"props":281,"children":282},"li",{},[283,289,291,298],{"type":13,"tag":21,"props":284,"children":286},{"className":285},[],[287],{"type":18,"value":288},"sType",{"type":18,"value":290}," is a ",{"type":13,"tag":292,"props":293,"children":295},"a",{"href":294},"/man/VkStructureType",[296],{"type":18,"value":297},"VkStructureType",{"type":18,"value":299}," value identifying this structure.",{"type":13,"tag":280,"props":301,"children":302},{},[303,309,311,317],{"type":13,"tag":21,"props":304,"children":306},{"className":305},[],[307],{"type":18,"value":308},"pNext",{"type":18,"value":310}," is ",{"type":13,"tag":21,"props":312,"children":314},{"className":313},[],[315],{"type":18,"value":316},"NULL",{"type":18,"value":318}," or a pointer to a structure extending this\nstructure.",{"type":13,"tag":280,"props":320,"children":321},{},[322,327,329,335,337,343,344,350,351,357,359,365,366,372,374,380,382,388,390,396],{"type":13,"tag":323,"props":324,"children":326},"anchor",{"id":325},"features-borderColorSwizzle",[],{"type":18,"value":328}," ",{"type":13,"tag":21,"props":330,"children":332},{"className":331},[],[333],{"type":18,"value":334},"borderColorSwizzle",{"type":18,"value":336}," indicates that\ndefined values are returned by sampled image operations when used with a\nsampler that uses a ",{"type":13,"tag":21,"props":338,"children":340},{"className":339},[],[341],{"type":18,"value":342},"VK_BORDER_COLOR_FLOAT_OPAQUE_BLACK",{"type":18,"value":182},{"type":13,"tag":21,"props":345,"children":347},{"className":346},[],[348],{"type":18,"value":349},"VK_BORDER_COLOR_INT_OPAQUE_BLACK",{"type":18,"value":182},{"type":13,"tag":21,"props":352,"children":354},{"className":353},[],[355],{"type":18,"value":356},"VK_BORDER_COLOR_FLOAT_CUSTOM_EXT",{"type":18,"value":358},", or\n",{"type":13,"tag":21,"props":360,"children":362},{"className":361},[],[363],{"type":18,"value":364},"VK_BORDER_COLOR_INT_CUSTOM_EXT",{"type":18,"value":328},{"type":13,"tag":21,"props":367,"children":369},{"className":368},[],[370],{"type":18,"value":371},"borderColor",{"type":18,"value":373}," and an image view\nthat uses a non-",{"type":13,"tag":292,"props":375,"children":377},{"href":376},"/man/VkComponentSwizzle#resources-image-views-identity-mappings",[378],{"type":18,"value":379},"identity\ncomponent mapping",{"type":18,"value":381},", when either ",{"type":13,"tag":21,"props":383,"children":385},{"className":384},[],[386],{"type":18,"value":387},"borderColorSwizzleFromImage",{"type":18,"value":389}," is\nenabled or the ",{"type":13,"tag":292,"props":391,"children":393},{"href":392},"/man/VkSamplerBorderColorComponentMappingCreateInfoEXT",[394],{"type":18,"value":395},"VkSamplerBorderColorComponentMappingCreateInfoEXT",{"type":18,"value":397},"\nis specified.",{"type":13,"tag":280,"props":399,"children":400},{},[401,405,410,412,417,419,423,425,430],{"type":13,"tag":323,"props":402,"children":404},{"id":403},"features-borderColorSwizzleFromImage",[],{"type":13,"tag":21,"props":406,"children":408},{"className":407},[],[409],{"type":18,"value":387},{"type":18,"value":411}," indicates that the implementation will\nreturn the correct border color values from sampled image operations\nunder the conditions expressed above, without the application having to\nspecify the border color component mapping when creating the sampler\nobject.\nIf this feature bit is not set, applications ",{"type":13,"tag":413,"props":414,"children":416},"normative",{"type":415},"can",[],{"type":18,"value":418}," chain a\n",{"type":13,"tag":292,"props":420,"children":421},{"href":392},[422],{"type":18,"value":395},{"type":18,"value":424}," structure when\ncreating samplers for use with image views that do not have an\n",{"type":13,"tag":292,"props":426,"children":427},{"href":376},[428],{"type":18,"value":429},"identity swizzle",{"type":18,"value":431}," and, when\nthose samplers are combined with image views using the same component\nmapping, sampled image operations that use opaque black or custom border\ncolors will return the correct border color values.",{"type":13,"tag":14,"props":433,"children":434},{},[435,437,442,444,449,451,457,459,465,467,472,473,476,478,483,485,491],{"type":18,"value":436},"If the ",{"type":13,"tag":21,"props":438,"children":440},{"className":439},[],[441],{"type":18,"value":4},{"type":18,"value":443}," structure is included in the ",{"type":13,"tag":21,"props":445,"children":447},{"className":446},[],[448],{"type":18,"value":308},{"type":18,"value":450}," chain of the\n",{"type":13,"tag":292,"props":452,"children":454},{"href":453},"/man/VkPhysicalDeviceFeatures2",[455],{"type":18,"value":456},"VkPhysicalDeviceFeatures2",{"type":18,"value":458}," structure passed to\n",{"type":13,"tag":292,"props":460,"children":462},{"href":461},"/man/vkGetPhysicalDeviceFeatures2",[463],{"type":18,"value":464},"vkGetPhysicalDeviceFeatures2",{"type":18,"value":466},", it is filled in to indicate whether each\ncorresponding feature is supported.\n",{"type":13,"tag":21,"props":468,"children":470},{"className":469},[],[471],{"type":18,"value":4},{"type":18,"value":328},{"type":13,"tag":413,"props":474,"children":475},{"type":415},[],{"type":18,"value":477}," also be used in the ",{"type":13,"tag":21,"props":479,"children":481},{"className":480},[],[482],{"type":18,"value":308},{"type":18,"value":484}," chain of\n",{"type":13,"tag":292,"props":486,"children":488},{"href":487},"/man/VkDeviceCreateInfo",[489],{"type":18,"value":490},"VkDeviceCreateInfo",{"type":18,"value":492}," to selectively enable these features.",{"type":13,"tag":494,"props":495,"children":497},"validity-group",{"name":496},"Valid Usage (Implicit)",[498],{"type":13,"tag":499,"props":500,"children":502},"validity-field",{"name":501},"VUID-VkPhysicalDeviceBorderColorSwizzleFeaturesEXT-sType-sType",[503],{"type":13,"tag":14,"props":504,"children":505},{},[506,511,512,516,518],{"type":13,"tag":21,"props":507,"children":509},{"className":508},[],[510],{"type":18,"value":288},{"type":18,"value":328},{"type":13,"tag":413,"props":513,"children":515},{"type":514},"must",[],{"type":18,"value":517}," be ",{"type":13,"tag":21,"props":519,"children":521},{"className":520},[],[522],{"type":18,"value":523},"VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BORDER_COLOR_SWIZZLE_FEATURES_EXT",{"type":13,"tag":525,"props":526,"children":527},"style",{},[528],{"type":18,"value":529},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":39,"searchDepth":69,"depth":69,"links":531},[],"markdown",1729612460824]