[{"data":1,"prerenderedAt":644},["ShallowReactive",2],{"Mhf02DGU5A":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":643,"_id":4},"VkPeerMemoryFeatureFlagBits","Bitmask specifying supported peer memory features","VK_VERSION_1_1","enums",[],{"type":10,"children":11,"toc":641},"root",[12,45,425,430,510,592,614,630,635],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,25,27,34,36,43],{"type":18,"value":19},"text","Bits which ",{"type":13,"tag":21,"props":22,"children":24},"normative",{"type":23},"may",[],{"type":18,"value":26}," be set in\n",{"type":13,"tag":28,"props":29,"children":31},"a",{"href":30},"/man/vkGetDeviceGroupPeerMemoryFeatures",[32],{"type":18,"value":33},"vkGetDeviceGroupPeerMemoryFeatures",{"type":18,"value":35},"::",{"type":13,"tag":37,"props":38,"children":40},"code",{"className":39},[],[41],{"type":18,"value":42},"pPeerMemoryFeatures",{"type":18,"value":44},",\nindicating supported peer memory features, are:",{"type":13,"tag":46,"props":47,"children":48},"code-group",{},[49,201],{"type":13,"tag":50,"props":51,"children":57},"pre",{"className":52,"code":53,"filename":54,"language":55,"meta":56,"style":56},"language-c shiki shiki-themes github-light-default github-dark-default","typedef enum VkPeerMemoryFeatureFlagBits {\n VK_PEER_MEMORY_FEATURE_COPY_SRC_BIT = 0x00000001,\n VK_PEER_MEMORY_FEATURE_COPY_DST_BIT = 0x00000002,\n VK_PEER_MEMORY_FEATURE_GENERIC_SRC_BIT = 0x00000004,\n VK_PEER_MEMORY_FEATURE_GENERIC_DST_BIT = 0x00000008,\n} VkPeerMemoryFeatureFlagBits;\n","C","c","",[58],{"type":13,"tag":37,"props":59,"children":60},{"__ignoreMap":56},[61,84,114,140,166,192],{"type":13,"tag":62,"props":63,"children":66},"span",{"class":64,"line":65},"line",1,[67,73,78],{"type":13,"tag":62,"props":68,"children":70},{"style":69},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[71],{"type":18,"value":72},"typedef",{"type":13,"tag":62,"props":74,"children":75},{"style":69},[76],{"type":18,"value":77}," enum",{"type":13,"tag":62,"props":79,"children":81},{"style":80},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[82],{"type":18,"value":83}," VkPeerMemoryFeatureFlagBits {\n",{"type":13,"tag":62,"props":85,"children":87},{"class":64,"line":86},2,[88,93,98,103,109],{"type":13,"tag":62,"props":89,"children":90},{"style":80},[91],{"type":18,"value":92}," VK_PEER_MEMORY_FEATURE_COPY_SRC_BIT ",{"type":13,"tag":62,"props":94,"children":95},{"style":69},[96],{"type":18,"value":97},"=",{"type":13,"tag":62,"props":99,"children":100},{"style":69},[101],{"type":18,"value":102}," 0x",{"type":13,"tag":62,"props":104,"children":106},{"style":105},"--shiki-default:#0550AE;--shiki-dark:#79C0FF",[107],{"type":18,"value":108},"00000001",{"type":13,"tag":62,"props":110,"children":111},{"style":80},[112],{"type":18,"value":113},",\n",{"type":13,"tag":62,"props":115,"children":117},{"class":64,"line":116},3,[118,123,127,131,136],{"type":13,"tag":62,"props":119,"children":120},{"style":80},[121],{"type":18,"value":122}," VK_PEER_MEMORY_FEATURE_COPY_DST_BIT ",{"type":13,"tag":62,"props":124,"children":125},{"style":69},[126],{"type":18,"value":97},{"type":13,"tag":62,"props":128,"children":129},{"style":69},[130],{"type":18,"value":102},{"type":13,"tag":62,"props":132,"children":133},{"style":105},[134],{"type":18,"value":135},"00000002",{"type":13,"tag":62,"props":137,"children":138},{"style":80},[139],{"type":18,"value":113},{"type":13,"tag":62,"props":141,"children":143},{"class":64,"line":142},4,[144,149,153,157,162],{"type":13,"tag":62,"props":145,"children":146},{"style":80},[147],{"type":18,"value":148}," VK_PEER_MEMORY_FEATURE_GENERIC_SRC_BIT ",{"type":13,"tag":62,"props":150,"children":151},{"style":69},[152],{"type":18,"value":97},{"type":13,"tag":62,"props":154,"children":155},{"style":69},[156],{"type":18,"value":102},{"type":13,"tag":62,"props":158,"children":159},{"style":105},[160],{"type":18,"value":161},"00000004",{"type":13,"tag":62,"props":163,"children":164},{"style":80},[165],{"type":18,"value":113},{"type":13,"tag":62,"props":167,"children":169},{"class":64,"line":168},5,[170,175,179,183,188],{"type":13,"tag":62,"props":171,"children":172},{"style":80},[173],{"type":18,"value":174}," VK_PEER_MEMORY_FEATURE_GENERIC_DST_BIT ",{"type":13,"tag":62,"props":176,"children":177},{"style":69},[178],{"type":18,"value":97},{"type":13,"tag":62,"props":180,"children":181},{"style":69},[182],{"type":18,"value":102},{"type":13,"tag":62,"props":184,"children":185},{"style":105},[186],{"type":18,"value":187},"00000008",{"type":13,"tag":62,"props":189,"children":190},{"style":80},[191],{"type":18,"value":113},{"type":13,"tag":62,"props":193,"children":195},{"class":64,"line":194},6,[196],{"type":13,"tag":62,"props":197,"children":198},{"style":80},[199],{"type":18,"value":200},"} VkPeerMemoryFeatureFlagBits;\n",{"type":13,"tag":50,"props":202,"children":207},{"className":203,"code":204,"filename":205,"language":206,"meta":56,"style":56},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct PeerMemoryFeatureFlagBits(u32);\nimpl PeerMemoryFeatureFlagBits {\n pub const COPY_SRC: Self = 0x00000001;\n pub const COPY_DST: Self = 0x00000002;\n pub const GENERIC_SRC: Self = 0x00000004;\n pub const GENERIC_DST: Self = 0x00000008;\n}\n","Rust","rs",[208],{"type":13,"tag":37,"props":209,"children":210},{"__ignoreMap":56},[211,245,262,305,342,379,416],{"type":13,"tag":62,"props":212,"children":213},{"class":64,"line":65},[214,219,224,230,235,240],{"type":13,"tag":62,"props":215,"children":216},{"style":69},[217],{"type":18,"value":218},"pub",{"type":13,"tag":62,"props":220,"children":221},{"style":69},[222],{"type":18,"value":223}," struct",{"type":13,"tag":62,"props":225,"children":227},{"style":226},"--shiki-default:#953800;--shiki-dark:#FFA657",[228],{"type":18,"value":229}," PeerMemoryFeatureFlagBits",{"type":13,"tag":62,"props":231,"children":232},{"style":80},[233],{"type":18,"value":234},"(",{"type":13,"tag":62,"props":236,"children":237},{"style":226},[238],{"type":18,"value":239},"u32",{"type":13,"tag":62,"props":241,"children":242},{"style":80},[243],{"type":18,"value":244},");\n",{"type":13,"tag":62,"props":246,"children":247},{"class":64,"line":86},[248,253,257],{"type":13,"tag":62,"props":249,"children":250},{"style":69},[251],{"type":18,"value":252},"impl",{"type":13,"tag":62,"props":254,"children":255},{"style":226},[256],{"type":18,"value":229},{"type":13,"tag":62,"props":258,"children":259},{"style":80},[260],{"type":18,"value":261}," {\n",{"type":13,"tag":62,"props":263,"children":264},{"class":64,"line":116},[265,270,275,280,285,290,295,300],{"type":13,"tag":62,"props":266,"children":267},{"style":69},[268],{"type":18,"value":269}," pub",{"type":13,"tag":62,"props":271,"children":272},{"style":69},[273],{"type":18,"value":274}," const",{"type":13,"tag":62,"props":276,"children":277},{"style":105},[278],{"type":18,"value":279}," COPY_SRC",{"type":13,"tag":62,"props":281,"children":282},{"style":69},[283],{"type":18,"value":284},":",{"type":13,"tag":62,"props":286,"children":287},{"style":105},[288],{"type":18,"value":289}," Self",{"type":13,"tag":62,"props":291,"children":292},{"style":69},[293],{"type":18,"value":294}," =",{"type":13,"tag":62,"props":296,"children":297},{"style":105},[298],{"type":18,"value":299}," 0x00000001",{"type":13,"tag":62,"props":301,"children":302},{"style":80},[303],{"type":18,"value":304},";\n",{"type":13,"tag":62,"props":306,"children":307},{"class":64,"line":142},[308,312,316,321,325,329,333,338],{"type":13,"tag":62,"props":309,"children":310},{"style":69},[311],{"type":18,"value":269},{"type":13,"tag":62,"props":313,"children":314},{"style":69},[315],{"type":18,"value":274},{"type":13,"tag":62,"props":317,"children":318},{"style":105},[319],{"type":18,"value":320}," COPY_DST",{"type":13,"tag":62,"props":322,"children":323},{"style":69},[324],{"type":18,"value":284},{"type":13,"tag":62,"props":326,"children":327},{"style":105},[328],{"type":18,"value":289},{"type":13,"tag":62,"props":330,"children":331},{"style":69},[332],{"type":18,"value":294},{"type":13,"tag":62,"props":334,"children":335},{"style":105},[336],{"type":18,"value":337}," 0x00000002",{"type":13,"tag":62,"props":339,"children":340},{"style":80},[341],{"type":18,"value":304},{"type":13,"tag":62,"props":343,"children":344},{"class":64,"line":168},[345,349,353,358,362,366,370,375],{"type":13,"tag":62,"props":346,"children":347},{"style":69},[348],{"type":18,"value":269},{"type":13,"tag":62,"props":350,"children":351},{"style":69},[352],{"type":18,"value":274},{"type":13,"tag":62,"props":354,"children":355},{"style":105},[356],{"type":18,"value":357}," GENERIC_SRC",{"type":13,"tag":62,"props":359,"children":360},{"style":69},[361],{"type":18,"value":284},{"type":13,"tag":62,"props":363,"children":364},{"style":105},[365],{"type":18,"value":289},{"type":13,"tag":62,"props":367,"children":368},{"style":69},[369],{"type":18,"value":294},{"type":13,"tag":62,"props":371,"children":372},{"style":105},[373],{"type":18,"value":374}," 0x00000004",{"type":13,"tag":62,"props":376,"children":377},{"style":80},[378],{"type":18,"value":304},{"type":13,"tag":62,"props":380,"children":381},{"class":64,"line":194},[382,386,390,395,399,403,407,412],{"type":13,"tag":62,"props":383,"children":384},{"style":69},[385],{"type":18,"value":269},{"type":13,"tag":62,"props":387,"children":388},{"style":69},[389],{"type":18,"value":274},{"type":13,"tag":62,"props":391,"children":392},{"style":105},[393],{"type":18,"value":394}," GENERIC_DST",{"type":13,"tag":62,"props":396,"children":397},{"style":69},[398],{"type":18,"value":284},{"type":13,"tag":62,"props":400,"children":401},{"style":105},[402],{"type":18,"value":289},{"type":13,"tag":62,"props":404,"children":405},{"style":69},[406],{"type":18,"value":294},{"type":13,"tag":62,"props":408,"children":409},{"style":105},[410],{"type":18,"value":411}," 0x00000008",{"type":13,"tag":62,"props":413,"children":414},{"style":80},[415],{"type":18,"value":304},{"type":13,"tag":62,"props":417,"children":419},{"class":64,"line":418},7,[420],{"type":13,"tag":62,"props":421,"children":422},{"style":80},[423],{"type":18,"value":424},"}\n",{"type":13,"tag":14,"props":426,"children":427},{},[428],{"type":18,"value":429},"or the equivalent",{"type":13,"tag":46,"props":431,"children":432},{},[433,459],{"type":13,"tag":50,"props":434,"children":436},{"className":52,"code":435,"filename":54,"language":55,"meta":56,"style":56},"#define VkPeerMemoryFeatureFlagBitsKHR VkPeerMemoryFeatureFlagBits\n",[437],{"type":13,"tag":37,"props":438,"children":439},{"__ignoreMap":56},[440],{"type":13,"tag":62,"props":441,"children":442},{"class":64,"line":65},[443,448,454],{"type":13,"tag":62,"props":444,"children":445},{"style":69},[446],{"type":18,"value":447},"#define",{"type":13,"tag":62,"props":449,"children":451},{"style":450},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[452],{"type":18,"value":453}," VkPeerMemoryFeatureFlagBitsKHR",{"type":13,"tag":62,"props":455,"children":456},{"style":80},[457],{"type":18,"value":458}," VkPeerMemoryFeatureFlagBits\n",{"type":13,"tag":50,"props":460,"children":462},{"className":203,"code":461,"filename":205,"language":206,"meta":56,"style":56},"const PeerMemoryFeatureFlagBitsKHR: _ = vk::PeerMemoryFeatureFlagBits;\n",[463],{"type":13,"tag":37,"props":464,"children":465},{"__ignoreMap":56},[466],{"type":13,"tag":62,"props":467,"children":468},{"class":64,"line":65},[469,474,479,483,488,492,497,501,506],{"type":13,"tag":62,"props":470,"children":471},{"style":69},[472],{"type":18,"value":473},"const",{"type":13,"tag":62,"props":475,"children":476},{"style":105},[477],{"type":18,"value":478}," PeerMemoryFeatureFlagBitsKHR",{"type":13,"tag":62,"props":480,"children":481},{"style":69},[482],{"type":18,"value":284},{"type":13,"tag":62,"props":484,"children":485},{"style":80},[486],{"type":18,"value":487}," _ ",{"type":13,"tag":62,"props":489,"children":490},{"style":69},[491],{"type":18,"value":97},{"type":13,"tag":62,"props":493,"children":494},{"style":226},[495],{"type":18,"value":496}," vk",{"type":13,"tag":62,"props":498,"children":499},{"style":69},[500],{"type":18,"value":35},{"type":13,"tag":62,"props":502,"children":503},{"style":226},[504],{"type":18,"value":505},"PeerMemoryFeatureFlagBits",{"type":13,"tag":62,"props":507,"children":508},{"style":80},[509],{"type":18,"value":304},{"type":13,"tag":511,"props":512,"children":513},"ul",{},[514,540,561,577],{"type":13,"tag":515,"props":516,"children":517},"li",{},[518,524,526,530,532,538],{"type":13,"tag":37,"props":519,"children":521},{"className":520},[],[522],{"type":18,"value":523},"VK_PEER_MEMORY_FEATURE_COPY_SRC_BIT",{"type":18,"value":525}," specifies that the memory ",{"type":13,"tag":21,"props":527,"children":529},{"type":528},"can",[],{"type":18,"value":531},"\nbe accessed as the source of any ",{"type":13,"tag":37,"props":533,"children":535},{"className":534},[],[536],{"type":18,"value":537},"vkCmdCopy*",{"type":18,"value":539}," command.",{"type":13,"tag":515,"props":541,"children":542},{},[543,549,550,553,555,560],{"type":13,"tag":37,"props":544,"children":546},{"className":545},[],[547],{"type":18,"value":548},"VK_PEER_MEMORY_FEATURE_COPY_DST_BIT",{"type":18,"value":525},{"type":13,"tag":21,"props":551,"children":552},{"type":528},[],{"type":18,"value":554},"\nbe accessed as the destination of any ",{"type":13,"tag":37,"props":556,"children":558},{"className":557},[],[559],{"type":18,"value":537},{"type":18,"value":539},{"type":13,"tag":515,"props":562,"children":563},{},[564,570,572,575],{"type":13,"tag":37,"props":565,"children":567},{"className":566},[],[568],{"type":18,"value":569},"VK_PEER_MEMORY_FEATURE_GENERIC_SRC_BIT",{"type":18,"value":571}," specifies that the memory\n",{"type":13,"tag":21,"props":573,"children":574},{"type":528},[],{"type":18,"value":576}," be read as any memory access type.",{"type":13,"tag":515,"props":578,"children":579},{},[580,586,587,590],{"type":13,"tag":37,"props":581,"children":583},{"className":582},[],[584],{"type":18,"value":585},"VK_PEER_MEMORY_FEATURE_GENERIC_DST_BIT",{"type":18,"value":571},{"type":13,"tag":21,"props":588,"children":589},{"type":528},[],{"type":18,"value":591}," be written as any memory access type.\nShader atomics are considered to be writes.",{"type":13,"tag":593,"props":594,"children":595},"note",{},[596],{"type":13,"tag":14,"props":597,"children":598},{},[599,601,604,606,612],{"type":18,"value":600},"The peer memory features of a memory heap also apply to any accesses that\n",{"type":13,"tag":21,"props":602,"children":603},{"type":23},[],{"type":18,"value":605}," be performed during ",{"type":13,"tag":28,"props":607,"children":609},{"href":608},"/chapters/synchronization#synchronization-image-layout-transitions",[610],{"type":18,"value":611},"image\nlayout transitions",{"type":18,"value":613},".",{"type":13,"tag":14,"props":615,"children":616},{},[617,622,624,628],{"type":13,"tag":37,"props":618,"children":620},{"className":619},[],[621],{"type":18,"value":548},{"type":18,"value":623}," ",{"type":13,"tag":21,"props":625,"children":627},{"type":626},"must",[],{"type":18,"value":629}," be supported for all host\nlocal heaps and for at least one device-local memory heap.",{"type":13,"tag":14,"props":631,"children":632},{},[633],{"type":18,"value":634},"If a device does not support a peer memory feature, it is still valid to use\na resource that includes both local and peer memory bindings with the\ncorresponding access type as long as only the local bindings are actually\naccessed.\nFor example, an application doing split-frame rendering would use\nframebuffer attachments that include both local and peer memory bindings,\nbut would scissor the rendering to only update local memory.",{"type":13,"tag":636,"props":637,"children":638},"style",{},[639],{"type":18,"value":640},"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":56,"searchDepth":86,"depth":86,"links":642},[],"markdown",1725732564618]