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