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