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