[{"data":1,"prerenderedAt":599},["ShallowReactive",2],{"$fX3rPPQ4uYCPeycWVXE92FZNHoejjmuM5uvrRiCBIbN4":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":598,"_id":4},"vkCreateTensorViewARM","Create an tensor view from an existing tensor","VK_ARM_tensors","protos",[],{"type":10,"children":11,"toc":596},"root",[12,20,354,427,432,444,590],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","To create a tensor view, call:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,157],{"type":13,"tag":25,"props":26,"children":32},"pre",{"className":27,"code":28,"filename":29,"language":30,"meta":31,"style":31},"language-c shiki shiki-themes github-light-default github-dark-default","VkResult vkCreateTensorViewARM(\n VkDevice device,\n const VkTensorViewCreateInfoARM* pCreateInfo,\n const VkAllocationCallbacks* pAllocator,\n VkTensorViewARM* pView);\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,59,79,108,134],{"type":13,"tag":38,"props":39,"children":42},"span",{"class":40,"line":41},"line",1,[43,49,54],{"type":13,"tag":38,"props":44,"children":46},{"style":45},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[47],{"type":18,"value":48},"VkResult ",{"type":13,"tag":38,"props":50,"children":52},{"style":51},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[53],{"type":18,"value":4},{"type":13,"tag":38,"props":55,"children":56},{"style":45},[57],{"type":18,"value":58},"(\n",{"type":13,"tag":38,"props":60,"children":62},{"class":40,"line":61},2,[63,68,74],{"type":13,"tag":38,"props":64,"children":65},{"style":45},[66],{"type":18,"value":67}," VkDevice ",{"type":13,"tag":38,"props":69,"children":71},{"style":70},"--shiki-default:#953800;--shiki-dark:#FFA657",[72],{"type":18,"value":73},"device",{"type":13,"tag":38,"props":75,"children":76},{"style":45},[77],{"type":18,"value":78},",\n",{"type":13,"tag":38,"props":80,"children":82},{"class":40,"line":81},3,[83,89,94,99,104],{"type":13,"tag":38,"props":84,"children":86},{"style":85},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[87],{"type":18,"value":88}," const",{"type":13,"tag":38,"props":90,"children":91},{"style":45},[92],{"type":18,"value":93}," VkTensorViewCreateInfoARM",{"type":13,"tag":38,"props":95,"children":96},{"style":85},[97],{"type":18,"value":98},"*",{"type":13,"tag":38,"props":100,"children":101},{"style":70},[102],{"type":18,"value":103}," pCreateInfo",{"type":13,"tag":38,"props":105,"children":106},{"style":45},[107],{"type":18,"value":78},{"type":13,"tag":38,"props":109,"children":111},{"class":40,"line":110},4,[112,116,121,125,130],{"type":13,"tag":38,"props":113,"children":114},{"style":85},[115],{"type":18,"value":88},{"type":13,"tag":38,"props":117,"children":118},{"style":45},[119],{"type":18,"value":120}," VkAllocationCallbacks",{"type":13,"tag":38,"props":122,"children":123},{"style":85},[124],{"type":18,"value":98},{"type":13,"tag":38,"props":126,"children":127},{"style":70},[128],{"type":18,"value":129}," pAllocator",{"type":13,"tag":38,"props":131,"children":132},{"style":45},[133],{"type":18,"value":78},{"type":13,"tag":38,"props":135,"children":137},{"class":40,"line":136},5,[138,143,147,152],{"type":13,"tag":38,"props":139,"children":140},{"style":45},[141],{"type":18,"value":142}," VkTensorViewARM",{"type":13,"tag":38,"props":144,"children":145},{"style":85},[146],{"type":18,"value":98},{"type":13,"tag":38,"props":148,"children":149},{"style":70},[150],{"type":18,"value":151}," pView",{"type":13,"tag":38,"props":153,"children":154},{"style":45},[155],{"type":18,"value":156},");\n",{"type":13,"tag":25,"props":158,"children":163},{"className":159,"code":160,"filename":161,"language":162,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn create_tensor_view_arm(\n device: vk::Device,\n p_create_info: *const vk::TensorViewCreateInfoARM,\n p_allocator: *const vk::AllocationCallbacks,\n p_view: *mut vk::TensorViewARM,\n) -> vk::Result;\n","Rust","rs",[164],{"type":13,"tag":34,"props":165,"children":166},{"__ignoreMap":31},[167,189,221,255,288,322],{"type":13,"tag":38,"props":168,"children":169},{"class":40,"line":41},[170,175,180,185],{"type":13,"tag":38,"props":171,"children":172},{"style":85},[173],{"type":18,"value":174},"pub",{"type":13,"tag":38,"props":176,"children":177},{"style":85},[178],{"type":18,"value":179}," fn",{"type":13,"tag":38,"props":181,"children":182},{"style":51},[183],{"type":18,"value":184}," create_tensor_view_arm",{"type":13,"tag":38,"props":186,"children":187},{"style":45},[188],{"type":18,"value":58},{"type":13,"tag":38,"props":190,"children":191},{"class":40,"line":61},[192,197,202,207,212,217],{"type":13,"tag":38,"props":193,"children":194},{"style":45},[195],{"type":18,"value":196}," device",{"type":13,"tag":38,"props":198,"children":199},{"style":85},[200],{"type":18,"value":201},":",{"type":13,"tag":38,"props":203,"children":204},{"style":70},[205],{"type":18,"value":206}," vk",{"type":13,"tag":38,"props":208,"children":209},{"style":85},[210],{"type":18,"value":211},"::",{"type":13,"tag":38,"props":213,"children":214},{"style":70},[215],{"type":18,"value":216},"Device",{"type":13,"tag":38,"props":218,"children":219},{"style":45},[220],{"type":18,"value":78},{"type":13,"tag":38,"props":222,"children":223},{"class":40,"line":81},[224,229,233,238,242,246,251],{"type":13,"tag":38,"props":225,"children":226},{"style":45},[227],{"type":18,"value":228}," p_create_info",{"type":13,"tag":38,"props":230,"children":231},{"style":85},[232],{"type":18,"value":201},{"type":13,"tag":38,"props":234,"children":235},{"style":85},[236],{"type":18,"value":237}," *const",{"type":13,"tag":38,"props":239,"children":240},{"style":70},[241],{"type":18,"value":206},{"type":13,"tag":38,"props":243,"children":244},{"style":85},[245],{"type":18,"value":211},{"type":13,"tag":38,"props":247,"children":248},{"style":70},[249],{"type":18,"value":250},"TensorViewCreateInfoARM",{"type":13,"tag":38,"props":252,"children":253},{"style":45},[254],{"type":18,"value":78},{"type":13,"tag":38,"props":256,"children":257},{"class":40,"line":110},[258,263,267,271,275,279,284],{"type":13,"tag":38,"props":259,"children":260},{"style":45},[261],{"type":18,"value":262}," p_allocator",{"type":13,"tag":38,"props":264,"children":265},{"style":85},[266],{"type":18,"value":201},{"type":13,"tag":38,"props":268,"children":269},{"style":85},[270],{"type":18,"value":237},{"type":13,"tag":38,"props":272,"children":273},{"style":70},[274],{"type":18,"value":206},{"type":13,"tag":38,"props":276,"children":277},{"style":85},[278],{"type":18,"value":211},{"type":13,"tag":38,"props":280,"children":281},{"style":70},[282],{"type":18,"value":283},"AllocationCallbacks",{"type":13,"tag":38,"props":285,"children":286},{"style":45},[287],{"type":18,"value":78},{"type":13,"tag":38,"props":289,"children":290},{"class":40,"line":136},[291,296,300,305,309,313,318],{"type":13,"tag":38,"props":292,"children":293},{"style":45},[294],{"type":18,"value":295}," p_view",{"type":13,"tag":38,"props":297,"children":298},{"style":85},[299],{"type":18,"value":201},{"type":13,"tag":38,"props":301,"children":302},{"style":85},[303],{"type":18,"value":304}," *mut",{"type":13,"tag":38,"props":306,"children":307},{"style":70},[308],{"type":18,"value":206},{"type":13,"tag":38,"props":310,"children":311},{"style":85},[312],{"type":18,"value":211},{"type":13,"tag":38,"props":314,"children":315},{"style":70},[316],{"type":18,"value":317},"TensorViewARM",{"type":13,"tag":38,"props":319,"children":320},{"style":45},[321],{"type":18,"value":78},{"type":13,"tag":38,"props":323,"children":325},{"class":40,"line":324},6,[326,331,336,340,344,349],{"type":13,"tag":38,"props":327,"children":328},{"style":45},[329],{"type":18,"value":330},") ",{"type":13,"tag":38,"props":332,"children":333},{"style":85},[334],{"type":18,"value":335},"->",{"type":13,"tag":38,"props":337,"children":338},{"style":70},[339],{"type":18,"value":206},{"type":13,"tag":38,"props":341,"children":342},{"style":85},[343],{"type":18,"value":211},{"type":13,"tag":38,"props":345,"children":346},{"style":70},[347],{"type":18,"value":348},"Result",{"type":13,"tag":38,"props":350,"children":351},{"style":45},[352],{"type":18,"value":353},";\n",{"type":13,"tag":355,"props":356,"children":357},"ul",{},[358,369,388,408],{"type":13,"tag":359,"props":360,"children":361},"li",{},[362,367],{"type":13,"tag":34,"props":363,"children":365},{"className":364},[],[366],{"type":18,"value":73},{"type":18,"value":368}," is the logical device that creates the tensor view.",{"type":13,"tag":359,"props":370,"children":371},{},[372,378,380,386],{"type":13,"tag":34,"props":373,"children":375},{"className":374},[],[376],{"type":18,"value":377},"pCreateInfo",{"type":18,"value":379}," is a pointer to an instance of the\n",{"type":13,"tag":34,"props":381,"children":383},{"className":382},[],[384],{"type":18,"value":385},"VkTensorViewCreateInfoARM",{"type":18,"value":387}," structure containing parameters to be\nused to create the tensor view.",{"type":13,"tag":359,"props":389,"children":390},{},[391,397,399,406],{"type":13,"tag":34,"props":392,"children":394},{"className":393},[],[395],{"type":18,"value":396},"pAllocator",{"type":18,"value":398}," controls host memory allocation as described in the\n",{"type":13,"tag":400,"props":401,"children":403},"a",{"href":402},"/chapters/memory#memory-allocation",[404],{"type":18,"value":405},"Memory Allocation",{"type":18,"value":407}," chapter.",{"type":13,"tag":359,"props":409,"children":410},{},[411,417,419,425],{"type":13,"tag":34,"props":412,"children":414},{"className":413},[],[415],{"type":18,"value":416},"pView",{"type":18,"value":418}," is a pointer to a ",{"type":13,"tag":400,"props":420,"children":422},{"href":421},"/man/VkTensorViewARM",[423],{"type":18,"value":424},"VkTensorViewARM",{"type":18,"value":426}," handle in which the\nresulting tensor view object is returned.",{"type":13,"tag":14,"props":428,"children":429},{},[430],{"type":18,"value":431},"Some of the tensor creation parameters are inherited by the view.\nIn particular, other than format, the tensor view creation inherits all\nother parameters from the tensor.",{"type":13,"tag":14,"props":433,"children":434},{},[435,437,442],{"type":18,"value":436},"The remaining parameters are contained in ",{"type":13,"tag":34,"props":438,"children":440},{"className":439},[],[441],{"type":18,"value":377},{"type":18,"value":443},".",{"type":13,"tag":445,"props":446,"children":448},"validity-group",{"name":447},"Valid Usage (Implicit)",[449,479,504,545,568],{"type":13,"tag":450,"props":451,"children":453},"validity-field",{"name":452},"VUID-vkCreateTensorViewARM-device-parameter",[454],{"type":13,"tag":14,"props":455,"children":456},{},[457,462,464,469,471,477],{"type":13,"tag":34,"props":458,"children":460},{"className":459},[],[461],{"type":18,"value":73},{"type":18,"value":463}," ",{"type":13,"tag":465,"props":466,"children":468},"normative",{"type":467},"must",[],{"type":18,"value":470}," be a valid ",{"type":13,"tag":400,"props":472,"children":474},{"href":473},"/man/VkDevice",[475],{"type":18,"value":476},"VkDevice",{"type":18,"value":478}," handle",{"type":13,"tag":450,"props":480,"children":482},{"name":481},"VUID-vkCreateTensorViewARM-pCreateInfo-parameter",[483],{"type":13,"tag":14,"props":484,"children":485},{},[486,491,492,495,497,502],{"type":13,"tag":34,"props":487,"children":489},{"className":488},[],[490],{"type":18,"value":377},{"type":18,"value":463},{"type":13,"tag":465,"props":493,"children":494},{"type":467},[],{"type":18,"value":496}," be a valid pointer to a valid ",{"type":13,"tag":400,"props":498,"children":500},{"href":499},"/man/VkTensorViewCreateInfoARM",[501],{"type":18,"value":385},{"type":18,"value":503}," structure",{"type":13,"tag":450,"props":505,"children":507},{"name":506},"VUID-vkCreateTensorViewARM-pAllocator-parameter",[508],{"type":13,"tag":14,"props":509,"children":510},{},[511,513,518,520,526,528,533,534,537,538,544],{"type":18,"value":512},"If ",{"type":13,"tag":34,"props":514,"children":516},{"className":515},[],[517],{"type":18,"value":396},{"type":18,"value":519}," is not ",{"type":13,"tag":34,"props":521,"children":523},{"className":522},[],[524],{"type":18,"value":525},"NULL",{"type":18,"value":527},", ",{"type":13,"tag":34,"props":529,"children":531},{"className":530},[],[532],{"type":18,"value":396},{"type":18,"value":463},{"type":13,"tag":465,"props":535,"children":536},{"type":467},[],{"type":18,"value":496},{"type":13,"tag":400,"props":539,"children":541},{"href":540},"/man/VkAllocationCallbacks",[542],{"type":18,"value":543},"VkAllocationCallbacks",{"type":18,"value":503},{"type":13,"tag":450,"props":546,"children":548},{"name":547},"VUID-vkCreateTensorViewARM-pView-parameter",[549],{"type":13,"tag":14,"props":550,"children":551},{},[552,557,558,561,563,567],{"type":13,"tag":34,"props":553,"children":555},{"className":554},[],[556],{"type":18,"value":416},{"type":18,"value":463},{"type":13,"tag":465,"props":559,"children":560},{"type":467},[],{"type":18,"value":562}," be a valid pointer to a ",{"type":13,"tag":400,"props":564,"children":565},{"href":421},[566],{"type":18,"value":424},{"type":18,"value":478},{"type":13,"tag":450,"props":569,"children":571},{"name":570},"VUID-vkCreateTensorViewARM-device-queuecount",[572],{"type":13,"tag":14,"props":573,"children":574},{},[575,577,580,582,588],{"type":18,"value":576},"The device ",{"type":13,"tag":465,"props":578,"children":579},{"type":467},[],{"type":18,"value":581}," have been created with at least ",{"type":13,"tag":34,"props":583,"children":585},{"className":584},[],[586],{"type":18,"value":587},"1",{"type":18,"value":589}," queue",{"type":13,"tag":591,"props":592,"children":593},"style",{},[594],{"type":18,"value":595},"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":31,"searchDepth":61,"depth":61,"links":597},[],"markdown",1773121643343]