[{"data":1,"prerenderedAt":610},["ShallowReactive",2],{"$fow2Sy7hJ_WQ9xnlec9LTSFX3OS3JKHxTt_CsL_sfcNA":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":609,"_id":4},"vkCreateTensorARM","Create a new tensor object","VK_ARM_tensors","protos",[],{"type":10,"children":11,"toc":607},"root",[12,20,354,426,460,601],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","To create tensors, 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 vkCreateTensorARM(\n VkDevice device,\n const VkTensorCreateInfoARM* pCreateInfo,\n const VkAllocationCallbacks* pAllocator,\n VkTensorARM* pTensor);\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}," VkTensorCreateInfoARM",{"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}," VkTensorARM",{"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}," pTensor",{"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_arm(\n device: vk::Device,\n p_create_info: *const vk::TensorCreateInfoARM,\n p_allocator: *const vk::AllocationCallbacks,\n p_tensor: *mut vk::TensorARM,\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_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},"TensorCreateInfoARM",{"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_tensor",{"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},"TensorARM",{"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,389,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.",{"type":13,"tag":359,"props":370,"children":371},{},[372,378,380,387],{"type":13,"tag":34,"props":373,"children":375},{"className":374},[],[376],{"type":18,"value":377},"pCreateInfo",{"type":18,"value":379}," is a pointer to a ",{"type":13,"tag":381,"props":382,"children":384},"a",{"href":383},"/man/VkTensorCreateInfoARM",[385],{"type":18,"value":386},"VkTensorCreateInfoARM",{"type":18,"value":388},"\nstructure containing parameters to be used to create the tensor.",{"type":13,"tag":359,"props":390,"children":391},{},[392,398,400,406],{"type":13,"tag":34,"props":393,"children":395},{"className":394},[],[396],{"type":18,"value":397},"pAllocator",{"type":18,"value":399}," controls host memory allocation as described in the\n",{"type":13,"tag":381,"props":401,"children":403},{"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,418,424],{"type":13,"tag":34,"props":412,"children":414},{"className":413},[],[415],{"type":18,"value":416},"pTensor",{"type":18,"value":379},{"type":13,"tag":381,"props":419,"children":421},{"href":420},"/man/VkTensorARM",[422],{"type":18,"value":423},"VkTensorARM",{"type":18,"value":425}," handle in which the\nresulting tensor object is returned.",{"type":13,"tag":427,"props":428,"children":430},"validity-group",{"name":429},"Valid Usage",[431],{"type":13,"tag":432,"props":433,"children":435},"validity-field",{"name":434},"VUID-vkCreateTensorARM-tensors-09832",[436],{"type":13,"tag":14,"props":437,"children":438},{},[439,441,451,453,458],{"type":18,"value":440},"The ",{"type":13,"tag":381,"props":442,"children":444},{"href":443},"/man/VkPhysicalDeviceTensorFeaturesARM#features-tensors",[445],{"type":13,"tag":34,"props":446,"children":448},{"className":447},[],[449],{"type":18,"value":450},"tensors",{"type":18,"value":452}," feature ",{"type":13,"tag":454,"props":455,"children":457},"normative",{"type":456},"must",[],{"type":18,"value":459}," be enabled",{"type":13,"tag":427,"props":461,"children":463},{"name":462},"Valid Usage (Implicit)",[464,491,515,556,579],{"type":13,"tag":432,"props":465,"children":467},{"name":466},"VUID-vkCreateTensorARM-device-parameter",[468],{"type":13,"tag":14,"props":469,"children":470},{},[471,476,478,481,483,489],{"type":13,"tag":34,"props":472,"children":474},{"className":473},[],[475],{"type":18,"value":73},{"type":18,"value":477}," ",{"type":13,"tag":454,"props":479,"children":480},{"type":456},[],{"type":18,"value":482}," be a valid ",{"type":13,"tag":381,"props":484,"children":486},{"href":485},"/man/VkDevice",[487],{"type":18,"value":488},"VkDevice",{"type":18,"value":490}," handle",{"type":13,"tag":432,"props":492,"children":494},{"name":493},"VUID-vkCreateTensorARM-pCreateInfo-parameter",[495],{"type":13,"tag":14,"props":496,"children":497},{},[498,503,504,507,509,513],{"type":13,"tag":34,"props":499,"children":501},{"className":500},[],[502],{"type":18,"value":377},{"type":18,"value":477},{"type":13,"tag":454,"props":505,"children":506},{"type":456},[],{"type":18,"value":508}," be a valid pointer to a valid ",{"type":13,"tag":381,"props":510,"children":511},{"href":383},[512],{"type":18,"value":386},{"type":18,"value":514}," structure",{"type":13,"tag":432,"props":516,"children":518},{"name":517},"VUID-vkCreateTensorARM-pAllocator-parameter",[519],{"type":13,"tag":14,"props":520,"children":521},{},[522,524,529,531,537,539,544,545,548,549,555],{"type":18,"value":523},"If ",{"type":13,"tag":34,"props":525,"children":527},{"className":526},[],[528],{"type":18,"value":397},{"type":18,"value":530}," is not ",{"type":13,"tag":34,"props":532,"children":534},{"className":533},[],[535],{"type":18,"value":536},"NULL",{"type":18,"value":538},", ",{"type":13,"tag":34,"props":540,"children":542},{"className":541},[],[543],{"type":18,"value":397},{"type":18,"value":477},{"type":13,"tag":454,"props":546,"children":547},{"type":456},[],{"type":18,"value":508},{"type":13,"tag":381,"props":550,"children":552},{"href":551},"/man/VkAllocationCallbacks",[553],{"type":18,"value":554},"VkAllocationCallbacks",{"type":18,"value":514},{"type":13,"tag":432,"props":557,"children":559},{"name":558},"VUID-vkCreateTensorARM-pTensor-parameter",[560],{"type":13,"tag":14,"props":561,"children":562},{},[563,568,569,572,574,578],{"type":13,"tag":34,"props":564,"children":566},{"className":565},[],[567],{"type":18,"value":416},{"type":18,"value":477},{"type":13,"tag":454,"props":570,"children":571},{"type":456},[],{"type":18,"value":573}," be a valid pointer to a ",{"type":13,"tag":381,"props":575,"children":576},{"href":420},[577],{"type":18,"value":423},{"type":18,"value":490},{"type":13,"tag":432,"props":580,"children":582},{"name":581},"VUID-vkCreateTensorARM-device-queuecount",[583],{"type":13,"tag":14,"props":584,"children":585},{},[586,588,591,593,599],{"type":18,"value":587},"The device ",{"type":13,"tag":454,"props":589,"children":590},{"type":456},[],{"type":18,"value":592}," have been created with at least ",{"type":13,"tag":34,"props":594,"children":596},{"className":595},[],[597],{"type":18,"value":598},"1",{"type":18,"value":600}," queue",{"type":13,"tag":602,"props":603,"children":604},"style",{},[605],{"type":18,"value":606},"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":608},[],"markdown",1773121643311]