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