[{"data":1,"prerenderedAt":532},["ShallowReactive",2],{"7LtICEUYZy":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":531,"_id":4},"VkCooperativeVectorMatrixLayoutNV","Specify cooperative vector matrix layout","VK_NV_cooperative_vector","enums",[],{"type":10,"children":11,"toc":529},"root",[12,28,388,464,469,523],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,26],{"type":18,"value":19},"text","Possible values for ",{"type":13,"tag":21,"props":22,"children":24},"a",{"href":23},"/man/VkCooperativeVectorMatrixLayoutNV",[25],{"type":18,"value":4},{"type":18,"value":27}," include:",{"type":13,"tag":29,"props":30,"children":31},"code-group",{},[32,168],{"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 enum VkCooperativeVectorMatrixLayoutNV {\n VK_COOPERATIVE_VECTOR_MATRIX_LAYOUT_ROW_MAJOR_NV = 0,\n VK_COOPERATIVE_VECTOR_MATRIX_LAYOUT_COLUMN_MAJOR_NV = 1,\n VK_COOPERATIVE_VECTOR_MATRIX_LAYOUT_INFERENCING_OPTIMAL_NV = 2,\n VK_COOPERATIVE_VECTOR_MATRIX_LAYOUT_TRAINING_OPTIMAL_NV = 3,\n} VkCooperativeVectorMatrixLayoutNV;\n","C","c","",[41],{"type":13,"tag":42,"props":43,"children":44},"code",{"__ignoreMap":39},[45,68,93,115,137,159],{"type":13,"tag":46,"props":47,"children":50},"span",{"class":48,"line":49},"line",1,[51,57,62],{"type":13,"tag":46,"props":52,"children":54},{"style":53},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[55],{"type":18,"value":56},"typedef",{"type":13,"tag":46,"props":58,"children":59},{"style":53},[60],{"type":18,"value":61}," enum",{"type":13,"tag":46,"props":63,"children":65},{"style":64},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[66],{"type":18,"value":67}," VkCooperativeVectorMatrixLayoutNV {\n",{"type":13,"tag":46,"props":69,"children":71},{"class":48,"line":70},2,[72,77,82,88],{"type":13,"tag":46,"props":73,"children":74},{"style":64},[75],{"type":18,"value":76}," VK_COOPERATIVE_VECTOR_MATRIX_LAYOUT_ROW_MAJOR_NV ",{"type":13,"tag":46,"props":78,"children":79},{"style":53},[80],{"type":18,"value":81},"=",{"type":13,"tag":46,"props":83,"children":85},{"style":84},"--shiki-default:#0550AE;--shiki-dark:#79C0FF",[86],{"type":18,"value":87}," 0",{"type":13,"tag":46,"props":89,"children":90},{"style":64},[91],{"type":18,"value":92},",\n",{"type":13,"tag":46,"props":94,"children":96},{"class":48,"line":95},3,[97,102,106,111],{"type":13,"tag":46,"props":98,"children":99},{"style":64},[100],{"type":18,"value":101}," VK_COOPERATIVE_VECTOR_MATRIX_LAYOUT_COLUMN_MAJOR_NV ",{"type":13,"tag":46,"props":103,"children":104},{"style":53},[105],{"type":18,"value":81},{"type":13,"tag":46,"props":107,"children":108},{"style":84},[109],{"type":18,"value":110}," 1",{"type":13,"tag":46,"props":112,"children":113},{"style":64},[114],{"type":18,"value":92},{"type":13,"tag":46,"props":116,"children":118},{"class":48,"line":117},4,[119,124,128,133],{"type":13,"tag":46,"props":120,"children":121},{"style":64},[122],{"type":18,"value":123}," VK_COOPERATIVE_VECTOR_MATRIX_LAYOUT_INFERENCING_OPTIMAL_NV ",{"type":13,"tag":46,"props":125,"children":126},{"style":53},[127],{"type":18,"value":81},{"type":13,"tag":46,"props":129,"children":130},{"style":84},[131],{"type":18,"value":132}," 2",{"type":13,"tag":46,"props":134,"children":135},{"style":64},[136],{"type":18,"value":92},{"type":13,"tag":46,"props":138,"children":140},{"class":48,"line":139},5,[141,146,150,155],{"type":13,"tag":46,"props":142,"children":143},{"style":64},[144],{"type":18,"value":145}," VK_COOPERATIVE_VECTOR_MATRIX_LAYOUT_TRAINING_OPTIMAL_NV ",{"type":13,"tag":46,"props":147,"children":148},{"style":53},[149],{"type":18,"value":81},{"type":13,"tag":46,"props":151,"children":152},{"style":84},[153],{"type":18,"value":154}," 3",{"type":13,"tag":46,"props":156,"children":157},{"style":64},[158],{"type":18,"value":92},{"type":13,"tag":46,"props":160,"children":162},{"class":48,"line":161},6,[163],{"type":13,"tag":46,"props":164,"children":165},{"style":64},[166],{"type":18,"value":167},"} VkCooperativeVectorMatrixLayoutNV;\n",{"type":13,"tag":33,"props":169,"children":174},{"className":170,"code":171,"filename":172,"language":173,"meta":39,"style":39},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct CooperativeVectorMatrixLayoutNV(u32);\nimpl CooperativeVectorMatrixLayoutNV {\n pub const ROW_MAJOR: Self = 0;\n pub const COLUMN_MAJOR: Self = 1;\n pub const INFERENCING_OPTIMAL: Self = 2;\n pub const TRAINING_OPTIMAL: Self = 3;\n}\n","Rust","rs",[175],{"type":13,"tag":42,"props":176,"children":177},{"__ignoreMap":39},[178,212,229,271,307,343,379],{"type":13,"tag":46,"props":179,"children":180},{"class":48,"line":49},[181,186,191,197,202,207],{"type":13,"tag":46,"props":182,"children":183},{"style":53},[184],{"type":18,"value":185},"pub",{"type":13,"tag":46,"props":187,"children":188},{"style":53},[189],{"type":18,"value":190}," struct",{"type":13,"tag":46,"props":192,"children":194},{"style":193},"--shiki-default:#953800;--shiki-dark:#FFA657",[195],{"type":18,"value":196}," CooperativeVectorMatrixLayoutNV",{"type":13,"tag":46,"props":198,"children":199},{"style":64},[200],{"type":18,"value":201},"(",{"type":13,"tag":46,"props":203,"children":204},{"style":193},[205],{"type":18,"value":206},"u32",{"type":13,"tag":46,"props":208,"children":209},{"style":64},[210],{"type":18,"value":211},");\n",{"type":13,"tag":46,"props":213,"children":214},{"class":48,"line":70},[215,220,224],{"type":13,"tag":46,"props":216,"children":217},{"style":53},[218],{"type":18,"value":219},"impl",{"type":13,"tag":46,"props":221,"children":222},{"style":193},[223],{"type":18,"value":196},{"type":13,"tag":46,"props":225,"children":226},{"style":64},[227],{"type":18,"value":228}," {\n",{"type":13,"tag":46,"props":230,"children":231},{"class":48,"line":95},[232,237,242,247,252,257,262,266],{"type":13,"tag":46,"props":233,"children":234},{"style":53},[235],{"type":18,"value":236}," pub",{"type":13,"tag":46,"props":238,"children":239},{"style":53},[240],{"type":18,"value":241}," const",{"type":13,"tag":46,"props":243,"children":244},{"style":84},[245],{"type":18,"value":246}," ROW_MAJOR",{"type":13,"tag":46,"props":248,"children":249},{"style":53},[250],{"type":18,"value":251},":",{"type":13,"tag":46,"props":253,"children":254},{"style":84},[255],{"type":18,"value":256}," Self",{"type":13,"tag":46,"props":258,"children":259},{"style":53},[260],{"type":18,"value":261}," =",{"type":13,"tag":46,"props":263,"children":264},{"style":84},[265],{"type":18,"value":87},{"type":13,"tag":46,"props":267,"children":268},{"style":64},[269],{"type":18,"value":270},";\n",{"type":13,"tag":46,"props":272,"children":273},{"class":48,"line":117},[274,278,282,287,291,295,299,303],{"type":13,"tag":46,"props":275,"children":276},{"style":53},[277],{"type":18,"value":236},{"type":13,"tag":46,"props":279,"children":280},{"style":53},[281],{"type":18,"value":241},{"type":13,"tag":46,"props":283,"children":284},{"style":84},[285],{"type":18,"value":286}," COLUMN_MAJOR",{"type":13,"tag":46,"props":288,"children":289},{"style":53},[290],{"type":18,"value":251},{"type":13,"tag":46,"props":292,"children":293},{"style":84},[294],{"type":18,"value":256},{"type":13,"tag":46,"props":296,"children":297},{"style":53},[298],{"type":18,"value":261},{"type":13,"tag":46,"props":300,"children":301},{"style":84},[302],{"type":18,"value":110},{"type":13,"tag":46,"props":304,"children":305},{"style":64},[306],{"type":18,"value":270},{"type":13,"tag":46,"props":308,"children":309},{"class":48,"line":139},[310,314,318,323,327,331,335,339],{"type":13,"tag":46,"props":311,"children":312},{"style":53},[313],{"type":18,"value":236},{"type":13,"tag":46,"props":315,"children":316},{"style":53},[317],{"type":18,"value":241},{"type":13,"tag":46,"props":319,"children":320},{"style":84},[321],{"type":18,"value":322}," INFERENCING_OPTIMAL",{"type":13,"tag":46,"props":324,"children":325},{"style":53},[326],{"type":18,"value":251},{"type":13,"tag":46,"props":328,"children":329},{"style":84},[330],{"type":18,"value":256},{"type":13,"tag":46,"props":332,"children":333},{"style":53},[334],{"type":18,"value":261},{"type":13,"tag":46,"props":336,"children":337},{"style":84},[338],{"type":18,"value":132},{"type":13,"tag":46,"props":340,"children":341},{"style":64},[342],{"type":18,"value":270},{"type":13,"tag":46,"props":344,"children":345},{"class":48,"line":161},[346,350,354,359,363,367,371,375],{"type":13,"tag":46,"props":347,"children":348},{"style":53},[349],{"type":18,"value":236},{"type":13,"tag":46,"props":351,"children":352},{"style":53},[353],{"type":18,"value":241},{"type":13,"tag":46,"props":355,"children":356},{"style":84},[357],{"type":18,"value":358}," TRAINING_OPTIMAL",{"type":13,"tag":46,"props":360,"children":361},{"style":53},[362],{"type":18,"value":251},{"type":13,"tag":46,"props":364,"children":365},{"style":84},[366],{"type":18,"value":256},{"type":13,"tag":46,"props":368,"children":369},{"style":53},[370],{"type":18,"value":261},{"type":13,"tag":46,"props":372,"children":373},{"style":84},[374],{"type":18,"value":154},{"type":13,"tag":46,"props":376,"children":377},{"style":64},[378],{"type":18,"value":270},{"type":13,"tag":46,"props":380,"children":382},{"class":48,"line":381},7,[383],{"type":13,"tag":46,"props":384,"children":385},{"style":64},[386],{"type":18,"value":387},"}\n",{"type":13,"tag":389,"props":390,"children":391},"ul",{},[392,412,429,447],{"type":13,"tag":393,"props":394,"children":395},"li",{},[396,402,404,410],{"type":13,"tag":42,"props":397,"children":399},{"className":398},[],[400],{"type":18,"value":401},"VK_COOPERATIVE_VECTOR_MATRIX_LAYOUT_ROW_MAJOR_NV",{"type":18,"value":403}," corresponds to\nSPIR-V ",{"type":13,"tag":42,"props":405,"children":407},{"className":406},[],[408],{"type":18,"value":409},"RowMajorNV",{"type":18,"value":411}," layout.",{"type":13,"tag":393,"props":413,"children":414},{},[415,421,422,428],{"type":13,"tag":42,"props":416,"children":418},{"className":417},[],[419],{"type":18,"value":420},"VK_COOPERATIVE_VECTOR_MATRIX_LAYOUT_COLUMN_MAJOR_NV",{"type":18,"value":403},{"type":13,"tag":42,"props":423,"children":425},{"className":424},[],[426],{"type":18,"value":427},"ColumnMajorNV",{"type":18,"value":411},{"type":13,"tag":393,"props":430,"children":431},{},[432,438,440,446],{"type":13,"tag":42,"props":433,"children":435},{"className":434},[],[436],{"type":18,"value":437},"VK_COOPERATIVE_VECTOR_MATRIX_LAYOUT_INFERENCING_OPTIMAL_NV",{"type":18,"value":439},"\ncorresponds to SPIR-V ",{"type":13,"tag":42,"props":441,"children":443},{"className":442},[],[444],{"type":18,"value":445},"InferencingOptimalNV",{"type":18,"value":411},{"type":13,"tag":393,"props":448,"children":449},{},[450,456,457,463],{"type":13,"tag":42,"props":451,"children":453},{"className":452},[],[454],{"type":18,"value":455},"VK_COOPERATIVE_VECTOR_MATRIX_LAYOUT_TRAINING_OPTIMAL_NV",{"type":18,"value":439},{"type":13,"tag":42,"props":458,"children":460},{"className":459},[],[461],{"type":18,"value":462},"TrainingOptimalNV",{"type":18,"value":411},{"type":13,"tag":14,"props":465,"children":466},{},[467],{"type":18,"value":468},"All enum values match the corresponding SPIR-V value.",{"type":13,"tag":14,"props":470,"children":471},{},[472,474,479,481,487,489,495,497,503,504,510,512,515,517,521],{"type":18,"value":473},"Row-major layout has elements of each row stored consecutively in memory,\nwith a controllable stride from the start of one row to the start of the\nnext row.\nColumn-major layout has elements of each column stored consecutively in\nmemory, with a controllable stride from the start of one column to the start\nof the next column.\nInferencing-optimal and Training-optimal layouts are\nimplementation-dependent, and the application ",{"type":13,"tag":475,"props":476,"children":478},"normative",{"type":477},"can",[],{"type":18,"value":480}," convert a matrix to those\nlayouts using ",{"type":13,"tag":21,"props":482,"children":484},{"href":483},"/man/vkConvertCooperativeVectorMatrixNV",[485],{"type":18,"value":486},"vkConvertCooperativeVectorMatrixNV",{"type":18,"value":488}," or\n",{"type":13,"tag":21,"props":490,"children":492},{"href":491},"/man/vkCmdConvertCooperativeVectorMatrixNV",[493],{"type":18,"value":494},"vkCmdConvertCooperativeVectorMatrixNV",{"type":18,"value":496},".\nTraining-optimal layout with ",{"type":13,"tag":42,"props":498,"children":500},{"className":499},[],[501],{"type":18,"value":502},"VK_COMPONENT_TYPE_FLOAT16_KHR",{"type":18,"value":488},{"type":13,"tag":42,"props":505,"children":507},{"className":506},[],[508],{"type":18,"value":509},"VK_COMPONENT_TYPE_FLOAT32_KHR",{"type":18,"value":511}," type has the additional guarantee that\nthe application ",{"type":13,"tag":475,"props":513,"children":514},{"type":477},[],{"type":18,"value":516}," reinterpret the data as an array of elements and\nperform element-wise operations on the data, and finite values in any\npadding elements do not affect the result of a matrix-vector multiply\n(inf/NaN values ",{"type":13,"tag":475,"props":518,"children":520},{"type":519},"may",[],{"type":18,"value":522}," still cause NaN values in the result).",{"type":13,"tag":524,"props":525,"children":526},"style",{},[527],{"type":18,"value":528},"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":70,"depth":70,"links":530},[],"markdown",1744876541061]