[{"data":1,"prerenderedAt":854},["ShallowReactive",2],{"79WpdoYyH0":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":853,"_id":4},"VkComponentSwizzle","Specify how a component is swizzled","VK_VERSION_1_0","enums",[],{"type":10,"children":11,"toc":851},"root",[12,29,563,661,666,671,845],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,27],{"type":18,"value":19},"text","Possible values of the members of ",{"type":13,"tag":21,"props":22,"children":24},"a",{"href":23},"/man/VkComponentMapping",[25],{"type":18,"value":26},"VkComponentMapping",{"type":18,"value":28},", specifying the\ncomponent values placed in each component of the output vector, are:",{"type":13,"tag":30,"props":31,"children":32},"code-group",{},[33,235],{"type":13,"tag":34,"props":35,"children":41},"pre",{"className":36,"code":37,"filename":38,"language":39,"meta":40,"style":40},"language-c shiki shiki-themes github-light-default github-dark-default","typedef enum VkComponentSwizzle {\n VK_COMPONENT_SWIZZLE_IDENTITY = 0,\n VK_COMPONENT_SWIZZLE_ZERO = 1,\n VK_COMPONENT_SWIZZLE_ONE = 2,\n VK_COMPONENT_SWIZZLE_R = 3,\n VK_COMPONENT_SWIZZLE_G = 4,\n VK_COMPONENT_SWIZZLE_B = 5,\n VK_COMPONENT_SWIZZLE_A = 6,\n} VkComponentSwizzle;\n","C","c","",[42],{"type":13,"tag":43,"props":44,"children":45},"code",{"__ignoreMap":40},[46,69,94,116,138,160,182,204,226],{"type":13,"tag":47,"props":48,"children":51},"span",{"class":49,"line":50},"line",1,[52,58,63],{"type":13,"tag":47,"props":53,"children":55},{"style":54},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[56],{"type":18,"value":57},"typedef",{"type":13,"tag":47,"props":59,"children":60},{"style":54},[61],{"type":18,"value":62}," enum",{"type":13,"tag":47,"props":64,"children":66},{"style":65},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[67],{"type":18,"value":68}," VkComponentSwizzle {\n",{"type":13,"tag":47,"props":70,"children":72},{"class":49,"line":71},2,[73,78,83,89],{"type":13,"tag":47,"props":74,"children":75},{"style":65},[76],{"type":18,"value":77}," VK_COMPONENT_SWIZZLE_IDENTITY ",{"type":13,"tag":47,"props":79,"children":80},{"style":54},[81],{"type":18,"value":82},"=",{"type":13,"tag":47,"props":84,"children":86},{"style":85},"--shiki-default:#0550AE;--shiki-dark:#79C0FF",[87],{"type":18,"value":88}," 0",{"type":13,"tag":47,"props":90,"children":91},{"style":65},[92],{"type":18,"value":93},",\n",{"type":13,"tag":47,"props":95,"children":97},{"class":49,"line":96},3,[98,103,107,112],{"type":13,"tag":47,"props":99,"children":100},{"style":65},[101],{"type":18,"value":102}," VK_COMPONENT_SWIZZLE_ZERO ",{"type":13,"tag":47,"props":104,"children":105},{"style":54},[106],{"type":18,"value":82},{"type":13,"tag":47,"props":108,"children":109},{"style":85},[110],{"type":18,"value":111}," 1",{"type":13,"tag":47,"props":113,"children":114},{"style":65},[115],{"type":18,"value":93},{"type":13,"tag":47,"props":117,"children":119},{"class":49,"line":118},4,[120,125,129,134],{"type":13,"tag":47,"props":121,"children":122},{"style":65},[123],{"type":18,"value":124}," VK_COMPONENT_SWIZZLE_ONE ",{"type":13,"tag":47,"props":126,"children":127},{"style":54},[128],{"type":18,"value":82},{"type":13,"tag":47,"props":130,"children":131},{"style":85},[132],{"type":18,"value":133}," 2",{"type":13,"tag":47,"props":135,"children":136},{"style":65},[137],{"type":18,"value":93},{"type":13,"tag":47,"props":139,"children":141},{"class":49,"line":140},5,[142,147,151,156],{"type":13,"tag":47,"props":143,"children":144},{"style":65},[145],{"type":18,"value":146}," VK_COMPONENT_SWIZZLE_R ",{"type":13,"tag":47,"props":148,"children":149},{"style":54},[150],{"type":18,"value":82},{"type":13,"tag":47,"props":152,"children":153},{"style":85},[154],{"type":18,"value":155}," 3",{"type":13,"tag":47,"props":157,"children":158},{"style":65},[159],{"type":18,"value":93},{"type":13,"tag":47,"props":161,"children":163},{"class":49,"line":162},6,[164,169,173,178],{"type":13,"tag":47,"props":165,"children":166},{"style":65},[167],{"type":18,"value":168}," VK_COMPONENT_SWIZZLE_G ",{"type":13,"tag":47,"props":170,"children":171},{"style":54},[172],{"type":18,"value":82},{"type":13,"tag":47,"props":174,"children":175},{"style":85},[176],{"type":18,"value":177}," 4",{"type":13,"tag":47,"props":179,"children":180},{"style":65},[181],{"type":18,"value":93},{"type":13,"tag":47,"props":183,"children":185},{"class":49,"line":184},7,[186,191,195,200],{"type":13,"tag":47,"props":187,"children":188},{"style":65},[189],{"type":18,"value":190}," VK_COMPONENT_SWIZZLE_B ",{"type":13,"tag":47,"props":192,"children":193},{"style":54},[194],{"type":18,"value":82},{"type":13,"tag":47,"props":196,"children":197},{"style":85},[198],{"type":18,"value":199}," 5",{"type":13,"tag":47,"props":201,"children":202},{"style":65},[203],{"type":18,"value":93},{"type":13,"tag":47,"props":205,"children":207},{"class":49,"line":206},8,[208,213,217,222],{"type":13,"tag":47,"props":209,"children":210},{"style":65},[211],{"type":18,"value":212}," VK_COMPONENT_SWIZZLE_A ",{"type":13,"tag":47,"props":214,"children":215},{"style":54},[216],{"type":18,"value":82},{"type":13,"tag":47,"props":218,"children":219},{"style":85},[220],{"type":18,"value":221}," 6",{"type":13,"tag":47,"props":223,"children":224},{"style":65},[225],{"type":18,"value":93},{"type":13,"tag":47,"props":227,"children":229},{"class":49,"line":228},9,[230],{"type":13,"tag":47,"props":231,"children":232},{"style":65},[233],{"type":18,"value":234},"} VkComponentSwizzle;\n",{"type":13,"tag":34,"props":236,"children":241},{"className":237,"code":238,"filename":239,"language":240,"meta":40,"style":40},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct ComponentSwizzle(u32);\nimpl ComponentSwizzle {\n pub const IDENTITY: Self = 0;\n pub const ZERO: Self = 1;\n pub const ONE: Self = 2;\n pub const R: Self = 3;\n pub const G: Self = 4;\n pub const B: Self = 5;\n pub const A: Self = 6;\n}\n","Rust","rs",[242],{"type":13,"tag":43,"props":243,"children":244},{"__ignoreMap":40},[245,279,296,338,374,410,446,482,518,554],{"type":13,"tag":47,"props":246,"children":247},{"class":49,"line":50},[248,253,258,264,269,274],{"type":13,"tag":47,"props":249,"children":250},{"style":54},[251],{"type":18,"value":252},"pub",{"type":13,"tag":47,"props":254,"children":255},{"style":54},[256],{"type":18,"value":257}," struct",{"type":13,"tag":47,"props":259,"children":261},{"style":260},"--shiki-default:#953800;--shiki-dark:#FFA657",[262],{"type":18,"value":263}," ComponentSwizzle",{"type":13,"tag":47,"props":265,"children":266},{"style":65},[267],{"type":18,"value":268},"(",{"type":13,"tag":47,"props":270,"children":271},{"style":260},[272],{"type":18,"value":273},"u32",{"type":13,"tag":47,"props":275,"children":276},{"style":65},[277],{"type":18,"value":278},");\n",{"type":13,"tag":47,"props":280,"children":281},{"class":49,"line":71},[282,287,291],{"type":13,"tag":47,"props":283,"children":284},{"style":54},[285],{"type":18,"value":286},"impl",{"type":13,"tag":47,"props":288,"children":289},{"style":260},[290],{"type":18,"value":263},{"type":13,"tag":47,"props":292,"children":293},{"style":65},[294],{"type":18,"value":295}," {\n",{"type":13,"tag":47,"props":297,"children":298},{"class":49,"line":96},[299,304,309,314,319,324,329,333],{"type":13,"tag":47,"props":300,"children":301},{"style":54},[302],{"type":18,"value":303}," pub",{"type":13,"tag":47,"props":305,"children":306},{"style":54},[307],{"type":18,"value":308}," const",{"type":13,"tag":47,"props":310,"children":311},{"style":85},[312],{"type":18,"value":313}," IDENTITY",{"type":13,"tag":47,"props":315,"children":316},{"style":54},[317],{"type":18,"value":318},":",{"type":13,"tag":47,"props":320,"children":321},{"style":85},[322],{"type":18,"value":323}," Self",{"type":13,"tag":47,"props":325,"children":326},{"style":54},[327],{"type":18,"value":328}," =",{"type":13,"tag":47,"props":330,"children":331},{"style":85},[332],{"type":18,"value":88},{"type":13,"tag":47,"props":334,"children":335},{"style":65},[336],{"type":18,"value":337},";\n",{"type":13,"tag":47,"props":339,"children":340},{"class":49,"line":118},[341,345,349,354,358,362,366,370],{"type":13,"tag":47,"props":342,"children":343},{"style":54},[344],{"type":18,"value":303},{"type":13,"tag":47,"props":346,"children":347},{"style":54},[348],{"type":18,"value":308},{"type":13,"tag":47,"props":350,"children":351},{"style":85},[352],{"type":18,"value":353}," ZERO",{"type":13,"tag":47,"props":355,"children":356},{"style":54},[357],{"type":18,"value":318},{"type":13,"tag":47,"props":359,"children":360},{"style":85},[361],{"type":18,"value":323},{"type":13,"tag":47,"props":363,"children":364},{"style":54},[365],{"type":18,"value":328},{"type":13,"tag":47,"props":367,"children":368},{"style":85},[369],{"type":18,"value":111},{"type":13,"tag":47,"props":371,"children":372},{"style":65},[373],{"type":18,"value":337},{"type":13,"tag":47,"props":375,"children":376},{"class":49,"line":140},[377,381,385,390,394,398,402,406],{"type":13,"tag":47,"props":378,"children":379},{"style":54},[380],{"type":18,"value":303},{"type":13,"tag":47,"props":382,"children":383},{"style":54},[384],{"type":18,"value":308},{"type":13,"tag":47,"props":386,"children":387},{"style":85},[388],{"type":18,"value":389}," ONE",{"type":13,"tag":47,"props":391,"children":392},{"style":54},[393],{"type":18,"value":318},{"type":13,"tag":47,"props":395,"children":396},{"style":85},[397],{"type":18,"value":323},{"type":13,"tag":47,"props":399,"children":400},{"style":54},[401],{"type":18,"value":328},{"type":13,"tag":47,"props":403,"children":404},{"style":85},[405],{"type":18,"value":133},{"type":13,"tag":47,"props":407,"children":408},{"style":65},[409],{"type":18,"value":337},{"type":13,"tag":47,"props":411,"children":412},{"class":49,"line":162},[413,417,421,426,430,434,438,442],{"type":13,"tag":47,"props":414,"children":415},{"style":54},[416],{"type":18,"value":303},{"type":13,"tag":47,"props":418,"children":419},{"style":54},[420],{"type":18,"value":308},{"type":13,"tag":47,"props":422,"children":423},{"style":85},[424],{"type":18,"value":425}," R",{"type":13,"tag":47,"props":427,"children":428},{"style":54},[429],{"type":18,"value":318},{"type":13,"tag":47,"props":431,"children":432},{"style":85},[433],{"type":18,"value":323},{"type":13,"tag":47,"props":435,"children":436},{"style":54},[437],{"type":18,"value":328},{"type":13,"tag":47,"props":439,"children":440},{"style":85},[441],{"type":18,"value":155},{"type":13,"tag":47,"props":443,"children":444},{"style":65},[445],{"type":18,"value":337},{"type":13,"tag":47,"props":447,"children":448},{"class":49,"line":184},[449,453,457,462,466,470,474,478],{"type":13,"tag":47,"props":450,"children":451},{"style":54},[452],{"type":18,"value":303},{"type":13,"tag":47,"props":454,"children":455},{"style":54},[456],{"type":18,"value":308},{"type":13,"tag":47,"props":458,"children":459},{"style":85},[460],{"type":18,"value":461}," G",{"type":13,"tag":47,"props":463,"children":464},{"style":54},[465],{"type":18,"value":318},{"type":13,"tag":47,"props":467,"children":468},{"style":85},[469],{"type":18,"value":323},{"type":13,"tag":47,"props":471,"children":472},{"style":54},[473],{"type":18,"value":328},{"type":13,"tag":47,"props":475,"children":476},{"style":85},[477],{"type":18,"value":177},{"type":13,"tag":47,"props":479,"children":480},{"style":65},[481],{"type":18,"value":337},{"type":13,"tag":47,"props":483,"children":484},{"class":49,"line":206},[485,489,493,498,502,506,510,514],{"type":13,"tag":47,"props":486,"children":487},{"style":54},[488],{"type":18,"value":303},{"type":13,"tag":47,"props":490,"children":491},{"style":54},[492],{"type":18,"value":308},{"type":13,"tag":47,"props":494,"children":495},{"style":85},[496],{"type":18,"value":497}," B",{"type":13,"tag":47,"props":499,"children":500},{"style":54},[501],{"type":18,"value":318},{"type":13,"tag":47,"props":503,"children":504},{"style":85},[505],{"type":18,"value":323},{"type":13,"tag":47,"props":507,"children":508},{"style":54},[509],{"type":18,"value":328},{"type":13,"tag":47,"props":511,"children":512},{"style":85},[513],{"type":18,"value":199},{"type":13,"tag":47,"props":515,"children":516},{"style":65},[517],{"type":18,"value":337},{"type":13,"tag":47,"props":519,"children":520},{"class":49,"line":228},[521,525,529,534,538,542,546,550],{"type":13,"tag":47,"props":522,"children":523},{"style":54},[524],{"type":18,"value":303},{"type":13,"tag":47,"props":526,"children":527},{"style":54},[528],{"type":18,"value":308},{"type":13,"tag":47,"props":530,"children":531},{"style":85},[532],{"type":18,"value":533}," A",{"type":13,"tag":47,"props":535,"children":536},{"style":54},[537],{"type":18,"value":318},{"type":13,"tag":47,"props":539,"children":540},{"style":85},[541],{"type":18,"value":323},{"type":13,"tag":47,"props":543,"children":544},{"style":54},[545],{"type":18,"value":328},{"type":13,"tag":47,"props":547,"children":548},{"style":85},[549],{"type":18,"value":221},{"type":13,"tag":47,"props":551,"children":552},{"style":65},[553],{"type":18,"value":337},{"type":13,"tag":47,"props":555,"children":557},{"class":49,"line":556},10,[558],{"type":13,"tag":47,"props":559,"children":560},{"style":65},[561],{"type":18,"value":562},"}\n",{"type":13,"tag":564,"props":565,"children":566},"ul",{},[567,579,590,617,628,639,650],{"type":13,"tag":568,"props":569,"children":570},"li",{},[571,577],{"type":13,"tag":43,"props":572,"children":574},{"className":573},[],[575],{"type":18,"value":576},"VK_COMPONENT_SWIZZLE_IDENTITY",{"type":18,"value":578}," specifies that the component is set\nto the identity swizzle.",{"type":13,"tag":568,"props":580,"children":581},{},[582,588],{"type":13,"tag":43,"props":583,"children":585},{"className":584},[],[586],{"type":18,"value":587},"VK_COMPONENT_SWIZZLE_ZERO",{"type":18,"value":589}," specifies that the component is set to\nzero.",{"type":13,"tag":568,"props":591,"children":592},{},[593,599,601,607,609,615],{"type":13,"tag":43,"props":594,"children":596},{"className":595},[],[597],{"type":18,"value":598},"VK_COMPONENT_SWIZZLE_ONE",{"type":18,"value":600}," specifies that the component is set to\neither 1 or 1.0, depending on whether the type of the image view format\nis integer or floating-point respectively, as determined by the\n",{"type":13,"tag":21,"props":602,"children":604},{"href":603},"/chapters/formats#formats-definition",[605],{"type":18,"value":606},"Format Definition",{"type":18,"value":608}," section for each\n",{"type":13,"tag":21,"props":610,"children":612},{"href":611},"/man/VkFormat",[613],{"type":18,"value":614},"VkFormat",{"type":18,"value":616},".",{"type":13,"tag":568,"props":618,"children":619},{},[620,626],{"type":13,"tag":43,"props":621,"children":623},{"className":622},[],[624],{"type":18,"value":625},"VK_COMPONENT_SWIZZLE_R",{"type":18,"value":627}," specifies that the component is set to the\nvalue of the R component of the image.",{"type":13,"tag":568,"props":629,"children":630},{},[631,637],{"type":13,"tag":43,"props":632,"children":634},{"className":633},[],[635],{"type":18,"value":636},"VK_COMPONENT_SWIZZLE_G",{"type":18,"value":638}," specifies that the component is set to the\nvalue of the G component of the image.",{"type":13,"tag":568,"props":640,"children":641},{},[642,648],{"type":13,"tag":43,"props":643,"children":645},{"className":644},[],[646],{"type":18,"value":647},"VK_COMPONENT_SWIZZLE_B",{"type":18,"value":649}," specifies that the component is set to the\nvalue of the B component of the image.",{"type":13,"tag":568,"props":651,"children":652},{},[653,659],{"type":13,"tag":43,"props":654,"children":656},{"className":655},[],[657],{"type":18,"value":658},"VK_COMPONENT_SWIZZLE_A",{"type":18,"value":660}," specifies that the component is set to the\nvalue of the A component of the image.",{"type":13,"tag":662,"props":663,"children":665},"anchor",{"id":664},"resources-image-views-identity-mappings",[],{"type":13,"tag":14,"props":667,"children":668},{},[669],{"type":18,"value":670},"Setting the identity swizzle on a component is equivalent to setting the\nidentity mapping on that component.\nThat is:",{"type":13,"tag":672,"props":673,"children":679},"table",{"className":674},[675,676,677,678],"tableblock","frame-all","grid-all","stretch",[680,693,705,728],{"type":13,"tag":681,"props":682,"children":685},"caption",{"className":683},[684],"title",[686,688],{"type":18,"value":687},"Table 1. Component Mappings Equivalent To ",{"type":13,"tag":689,"props":690,"children":691},"literal",{},[692],{"type":18,"value":576},{"type":13,"tag":694,"props":695,"children":696},"colgroup",{},[697,702],{"type":13,"tag":698,"props":699,"children":701},"col",{"style":700},"width: 50%;",[],{"type":13,"tag":698,"props":703,"children":704},{"style":700},[],{"type":13,"tag":706,"props":707,"children":708},"thead",{},[709],{"type":13,"tag":710,"props":711,"children":712},"tr",{},[713,722],{"type":13,"tag":714,"props":715,"children":719},"th",{"className":716},[675,717,718],"halign-left","valign-top",[720],{"type":18,"value":721},"Component",{"type":13,"tag":714,"props":723,"children":725},{"className":724},[675,717,718],[726],{"type":18,"value":727},"Identity Mapping",{"type":13,"tag":729,"props":730,"children":731},"tbody",{},[732,761,789,817],{"type":13,"tag":710,"props":733,"children":734},{},[735,749],{"type":13,"tag":736,"props":737,"children":739},"td",{"className":738},[675,717,718],[740],{"type":13,"tag":14,"props":741,"children":743},{"className":742},[675],[744],{"type":13,"tag":689,"props":745,"children":746},{},[747],{"type":18,"value":748},"components.r",{"type":13,"tag":736,"props":750,"children":752},{"className":751},[675,717,718],[753],{"type":13,"tag":14,"props":754,"children":756},{"className":755},[675],[757],{"type":13,"tag":689,"props":758,"children":759},{},[760],{"type":18,"value":625},{"type":13,"tag":710,"props":762,"children":763},{},[764,777],{"type":13,"tag":736,"props":765,"children":767},{"className":766},[675,717,718],[768],{"type":13,"tag":14,"props":769,"children":771},{"className":770},[675],[772],{"type":13,"tag":689,"props":773,"children":774},{},[775],{"type":18,"value":776},"components.g",{"type":13,"tag":736,"props":778,"children":780},{"className":779},[675,717,718],[781],{"type":13,"tag":14,"props":782,"children":784},{"className":783},[675],[785],{"type":13,"tag":689,"props":786,"children":787},{},[788],{"type":18,"value":636},{"type":13,"tag":710,"props":790,"children":791},{},[792,805],{"type":13,"tag":736,"props":793,"children":795},{"className":794},[675,717,718],[796],{"type":13,"tag":14,"props":797,"children":799},{"className":798},[675],[800],{"type":13,"tag":689,"props":801,"children":802},{},[803],{"type":18,"value":804},"components.b",{"type":13,"tag":736,"props":806,"children":808},{"className":807},[675,717,718],[809],{"type":13,"tag":14,"props":810,"children":812},{"className":811},[675],[813],{"type":13,"tag":689,"props":814,"children":815},{},[816],{"type":18,"value":647},{"type":13,"tag":710,"props":818,"children":819},{},[820,833],{"type":13,"tag":736,"props":821,"children":823},{"className":822},[675,717,718],[824],{"type":13,"tag":14,"props":825,"children":827},{"className":826},[675],[828],{"type":13,"tag":689,"props":829,"children":830},{},[831],{"type":18,"value":832},"components.a",{"type":13,"tag":736,"props":834,"children":836},{"className":835},[675,717,718],[837],{"type":13,"tag":14,"props":838,"children":840},{"className":839},[675],[841],{"type":13,"tag":689,"props":842,"children":843},{},[844],{"type":18,"value":658},{"type":13,"tag":846,"props":847,"children":848},"style",{},[849],{"type":18,"value":850},"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":40,"searchDepth":71,"depth":71,"links":852},[],"markdown",1725732543403]