[{"data":1,"prerenderedAt":418},["ShallowReactive",2],{"eMiqoKeJhS":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":417,"_id":4},"vkAcquireProfilingLockKHR","Acquires the profiling lock","VK_KHR_performance_query","protos",[],{"type":10,"children":11,"toc":415},"root",[12,68,306,340,351,409],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,25,27,30,32,39,41,44,46,52,54,59,61,66],{"type":18,"value":19},"text","To record and submit a command buffer containing a performance query pool\nthe profiling lock ",{"type":13,"tag":21,"props":22,"children":24},"normative",{"type":23},"must",[],{"type":18,"value":26}," be held.\nThe profiling lock ",{"type":13,"tag":21,"props":28,"children":29},{"type":23},[],{"type":18,"value":31}," be acquired prior to any call to\n",{"type":13,"tag":33,"props":34,"children":36},"a",{"href":35},"/man/vkBeginCommandBuffer",[37],{"type":18,"value":38},"vkBeginCommandBuffer",{"type":18,"value":40}," that will be using a performance query pool.\nThe profiling lock ",{"type":13,"tag":21,"props":42,"children":43},{"type":23},[],{"type":18,"value":45}," be held while any command buffer containing a\nperformance query pool is in the ",{"type":13,"tag":47,"props":48,"children":49},"em",{},[50],{"type":18,"value":51},"recording",{"type":18,"value":53},", ",{"type":13,"tag":47,"props":55,"children":56},{},[57],{"type":18,"value":58},"executable",{"type":18,"value":60},", or ",{"type":13,"tag":47,"props":62,"children":63},{},[64],{"type":18,"value":65},"pending\nstate",{"type":18,"value":67},".\nTo acquire the profiling lock, call:",{"type":13,"tag":69,"props":70,"children":71},"code-group",{},[72,157],{"type":13,"tag":73,"props":74,"children":80},"pre",{"className":75,"code":76,"filename":77,"language":78,"meta":79,"style":79},"language-c shiki shiki-themes github-light-default github-dark-default","VkResult vkAcquireProfilingLockKHR(\n VkDevice device,\n const VkAcquireProfilingLockInfoKHR* pInfo);\n","C","c","",[81],{"type":13,"tag":82,"props":83,"children":84},"code",{"__ignoreMap":79},[85,107,127],{"type":13,"tag":86,"props":87,"children":90},"span",{"class":88,"line":89},"line",1,[91,97,102],{"type":13,"tag":86,"props":92,"children":94},{"style":93},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[95],{"type":18,"value":96},"VkResult ",{"type":13,"tag":86,"props":98,"children":100},{"style":99},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[101],{"type":18,"value":4},{"type":13,"tag":86,"props":103,"children":104},{"style":93},[105],{"type":18,"value":106},"(\n",{"type":13,"tag":86,"props":108,"children":110},{"class":88,"line":109},2,[111,116,122],{"type":13,"tag":86,"props":112,"children":113},{"style":93},[114],{"type":18,"value":115}," VkDevice ",{"type":13,"tag":86,"props":117,"children":119},{"style":118},"--shiki-default:#953800;--shiki-dark:#FFA657",[120],{"type":18,"value":121},"device",{"type":13,"tag":86,"props":123,"children":124},{"style":93},[125],{"type":18,"value":126},",\n",{"type":13,"tag":86,"props":128,"children":130},{"class":88,"line":129},3,[131,137,142,147,152],{"type":13,"tag":86,"props":132,"children":134},{"style":133},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[135],{"type":18,"value":136}," const",{"type":13,"tag":86,"props":138,"children":139},{"style":93},[140],{"type":18,"value":141}," VkAcquireProfilingLockInfoKHR",{"type":13,"tag":86,"props":143,"children":144},{"style":133},[145],{"type":18,"value":146},"*",{"type":13,"tag":86,"props":148,"children":149},{"style":118},[150],{"type":18,"value":151}," pInfo",{"type":13,"tag":86,"props":153,"children":154},{"style":93},[155],{"type":18,"value":156},");\n",{"type":13,"tag":73,"props":158,"children":163},{"className":159,"code":160,"filename":161,"language":162,"meta":79,"style":79},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn acquire_profiling_lock_khr(\n device: crate :: vk :: vk::Device,\n p_info: *const vk::AcquireProfilingLockInfoKHR,\n) -> vk::Result;\n","Rust","rs",[164],{"type":13,"tag":82,"props":165,"children":166},{"__ignoreMap":79},[167,189,240,274],{"type":13,"tag":86,"props":168,"children":169},{"class":88,"line":89},[170,175,180,185],{"type":13,"tag":86,"props":171,"children":172},{"style":133},[173],{"type":18,"value":174},"pub",{"type":13,"tag":86,"props":176,"children":177},{"style":133},[178],{"type":18,"value":179}," fn",{"type":13,"tag":86,"props":181,"children":182},{"style":99},[183],{"type":18,"value":184}," acquire_profiling_lock_khr",{"type":13,"tag":86,"props":186,"children":187},{"style":93},[188],{"type":18,"value":106},{"type":13,"tag":86,"props":190,"children":191},{"class":88,"line":109},[192,197,202,207,212,217,222,227,231,236],{"type":13,"tag":86,"props":193,"children":194},{"style":93},[195],{"type":18,"value":196}," device",{"type":13,"tag":86,"props":198,"children":199},{"style":133},[200],{"type":18,"value":201},":",{"type":13,"tag":86,"props":203,"children":204},{"style":133},[205],{"type":18,"value":206}," crate",{"type":13,"tag":86,"props":208,"children":209},{"style":133},[210],{"type":18,"value":211}," ::",{"type":13,"tag":86,"props":213,"children":214},{"style":93},[215],{"type":18,"value":216}," vk ",{"type":13,"tag":86,"props":218,"children":219},{"style":133},[220],{"type":18,"value":221},"::",{"type":13,"tag":86,"props":223,"children":224},{"style":118},[225],{"type":18,"value":226}," vk",{"type":13,"tag":86,"props":228,"children":229},{"style":133},[230],{"type":18,"value":221},{"type":13,"tag":86,"props":232,"children":233},{"style":118},[234],{"type":18,"value":235},"Device",{"type":13,"tag":86,"props":237,"children":238},{"style":93},[239],{"type":18,"value":126},{"type":13,"tag":86,"props":241,"children":242},{"class":88,"line":129},[243,248,252,257,261,265,270],{"type":13,"tag":86,"props":244,"children":245},{"style":93},[246],{"type":18,"value":247}," p_info",{"type":13,"tag":86,"props":249,"children":250},{"style":133},[251],{"type":18,"value":201},{"type":13,"tag":86,"props":253,"children":254},{"style":133},[255],{"type":18,"value":256}," *const",{"type":13,"tag":86,"props":258,"children":259},{"style":118},[260],{"type":18,"value":226},{"type":13,"tag":86,"props":262,"children":263},{"style":133},[264],{"type":18,"value":221},{"type":13,"tag":86,"props":266,"children":267},{"style":118},[268],{"type":18,"value":269},"AcquireProfilingLockInfoKHR",{"type":13,"tag":86,"props":271,"children":272},{"style":93},[273],{"type":18,"value":126},{"type":13,"tag":86,"props":275,"children":277},{"class":88,"line":276},4,[278,283,288,292,296,301],{"type":13,"tag":86,"props":279,"children":280},{"style":93},[281],{"type":18,"value":282},") ",{"type":13,"tag":86,"props":284,"children":285},{"style":133},[286],{"type":18,"value":287},"->",{"type":13,"tag":86,"props":289,"children":290},{"style":118},[291],{"type":18,"value":226},{"type":13,"tag":86,"props":293,"children":294},{"style":133},[295],{"type":18,"value":221},{"type":13,"tag":86,"props":297,"children":298},{"style":118},[299],{"type":18,"value":300},"Result",{"type":13,"tag":86,"props":302,"children":303},{"style":93},[304],{"type":18,"value":305},";\n",{"type":13,"tag":307,"props":308,"children":309},"ul",{},[310,321],{"type":13,"tag":311,"props":312,"children":313},"li",{},[314,319],{"type":13,"tag":82,"props":315,"children":317},{"className":316},[],[318],{"type":18,"value":121},{"type":18,"value":320}," is the logical device to profile.",{"type":13,"tag":311,"props":322,"children":323},{},[324,330,332,338],{"type":13,"tag":82,"props":325,"children":327},{"className":326},[],[328],{"type":18,"value":329},"pInfo",{"type":18,"value":331}," is a pointer to a ",{"type":13,"tag":82,"props":333,"children":335},{"className":334},[],[336],{"type":18,"value":337},"VkAcquireProfilingLockInfoKHR",{"type":18,"value":339},"\nstructure containing information about how the profiling is to be\nacquired.",{"type":13,"tag":14,"props":341,"children":342},{},[343,345,349],{"type":18,"value":344},"Implementations ",{"type":13,"tag":21,"props":346,"children":348},{"type":347},"may",[],{"type":18,"value":350}," allow multiple actors to hold the profiling lock\nconcurrently.",{"type":13,"tag":352,"props":353,"children":355},"validity-group",{"name":354},"Valid Usage (Implicit)",[356,384],{"type":13,"tag":357,"props":358,"children":360},"validity-field",{"name":359},"VUID-vkAcquireProfilingLockKHR-device-parameter",[361],{"type":13,"tag":14,"props":362,"children":363},{},[364,369,371,374,376,382],{"type":13,"tag":82,"props":365,"children":367},{"className":366},[],[368],{"type":18,"value":121},{"type":18,"value":370}," ",{"type":13,"tag":21,"props":372,"children":373},{"type":23},[],{"type":18,"value":375}," be a valid ",{"type":13,"tag":33,"props":377,"children":379},{"href":378},"/man/VkDevice",[380],{"type":18,"value":381},"VkDevice",{"type":18,"value":383}," handle",{"type":13,"tag":357,"props":385,"children":387},{"name":386},"VUID-vkAcquireProfilingLockKHR-pInfo-parameter",[388],{"type":13,"tag":14,"props":389,"children":390},{},[391,396,397,400,402,407],{"type":13,"tag":82,"props":392,"children":394},{"className":393},[],[395],{"type":18,"value":329},{"type":18,"value":370},{"type":13,"tag":21,"props":398,"children":399},{"type":23},[],{"type":18,"value":401}," be a valid pointer to a valid ",{"type":13,"tag":33,"props":403,"children":405},{"href":404},"/man/VkAcquireProfilingLockInfoKHR",[406],{"type":18,"value":337},{"type":18,"value":408}," structure",{"type":13,"tag":410,"props":411,"children":412},"style",{},[413],{"type":18,"value":414},"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":79,"searchDepth":109,"depth":109,"links":416},[],"markdown",1725732596599]