[{"data":1,"prerenderedAt":695},["ShallowReactive",2],{"RY47SZz3xj":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":694,"_id":4},"VkMemoryPropertyFlagBits","Bitmask specifying properties for a memory type","VK_VERSION_1_0","enums",[],{"type":10,"children":11,"toc":692},"root",[12,45,488,658,677,686],{"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 ",{"type":13,"tag":28,"props":29,"children":31},"a",{"href":30},"/man/VkMemoryType",[32],{"type":18,"value":33},"VkMemoryType",{"type":18,"value":35},"::",{"type":13,"tag":37,"props":38,"children":40},"code",{"className":39},[],[41],{"type":18,"value":42},"propertyFlags",{"type":18,"value":44},",\nindicating properties of a memory type, are:",{"type":13,"tag":46,"props":47,"children":48},"code-group",{},[49,227],{"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 VkMemoryPropertyFlagBits {\n VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT = 0x00000001,\n VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT = 0x00000002,\n VK_MEMORY_PROPERTY_HOST_COHERENT_BIT = 0x00000004,\n VK_MEMORY_PROPERTY_HOST_CACHED_BIT = 0x00000008,\n VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT = 0x00000010,\n} VkMemoryPropertyFlagBits;\n","C","c","",[58],{"type":13,"tag":37,"props":59,"children":60},{"__ignoreMap":56},[61,84,114,140,166,192,218],{"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}," VkMemoryPropertyFlagBits {\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_MEMORY_PROPERTY_DEVICE_LOCAL_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_MEMORY_PROPERTY_HOST_VISIBLE_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_MEMORY_PROPERTY_HOST_COHERENT_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_MEMORY_PROPERTY_HOST_CACHED_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,201,205,209,214],{"type":13,"tag":62,"props":197,"children":198},{"style":80},[199],{"type":18,"value":200}," VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT ",{"type":13,"tag":62,"props":202,"children":203},{"style":69},[204],{"type":18,"value":97},{"type":13,"tag":62,"props":206,"children":207},{"style":69},[208],{"type":18,"value":102},{"type":13,"tag":62,"props":210,"children":211},{"style":105},[212],{"type":18,"value":213},"00000010",{"type":13,"tag":62,"props":215,"children":216},{"style":80},[217],{"type":18,"value":113},{"type":13,"tag":62,"props":219,"children":221},{"class":64,"line":220},7,[222],{"type":13,"tag":62,"props":223,"children":224},{"style":80},[225],{"type":18,"value":226},"} VkMemoryPropertyFlagBits;\n",{"type":13,"tag":50,"props":228,"children":233},{"className":229,"code":230,"filename":231,"language":232,"meta":56,"style":56},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct MemoryPropertyFlagBits(u32);\nimpl MemoryPropertyFlagBits {\n pub const DEVICE_LOCAL: Self = 0x00000001;\n pub const HOST_VISIBLE: Self = 0x00000002;\n pub const HOST_COHERENT: Self = 0x00000004;\n pub const HOST_CACHED: Self = 0x00000008;\n pub const LAZILY_ALLOCATED: Self = 0x00000010;\n}\n","Rust","rs",[234],{"type":13,"tag":37,"props":235,"children":236},{"__ignoreMap":56},[237,271,288,331,368,405,442,479],{"type":13,"tag":62,"props":238,"children":239},{"class":64,"line":65},[240,245,250,256,261,266],{"type":13,"tag":62,"props":241,"children":242},{"style":69},[243],{"type":18,"value":244},"pub",{"type":13,"tag":62,"props":246,"children":247},{"style":69},[248],{"type":18,"value":249}," struct",{"type":13,"tag":62,"props":251,"children":253},{"style":252},"--shiki-default:#953800;--shiki-dark:#FFA657",[254],{"type":18,"value":255}," MemoryPropertyFlagBits",{"type":13,"tag":62,"props":257,"children":258},{"style":80},[259],{"type":18,"value":260},"(",{"type":13,"tag":62,"props":262,"children":263},{"style":252},[264],{"type":18,"value":265},"u32",{"type":13,"tag":62,"props":267,"children":268},{"style":80},[269],{"type":18,"value":270},");\n",{"type":13,"tag":62,"props":272,"children":273},{"class":64,"line":86},[274,279,283],{"type":13,"tag":62,"props":275,"children":276},{"style":69},[277],{"type":18,"value":278},"impl",{"type":13,"tag":62,"props":280,"children":281},{"style":252},[282],{"type":18,"value":255},{"type":13,"tag":62,"props":284,"children":285},{"style":80},[286],{"type":18,"value":287}," {\n",{"type":13,"tag":62,"props":289,"children":290},{"class":64,"line":116},[291,296,301,306,311,316,321,326],{"type":13,"tag":62,"props":292,"children":293},{"style":69},[294],{"type":18,"value":295}," pub",{"type":13,"tag":62,"props":297,"children":298},{"style":69},[299],{"type":18,"value":300}," const",{"type":13,"tag":62,"props":302,"children":303},{"style":105},[304],{"type":18,"value":305}," DEVICE_LOCAL",{"type":13,"tag":62,"props":307,"children":308},{"style":69},[309],{"type":18,"value":310},":",{"type":13,"tag":62,"props":312,"children":313},{"style":105},[314],{"type":18,"value":315}," Self",{"type":13,"tag":62,"props":317,"children":318},{"style":69},[319],{"type":18,"value":320}," =",{"type":13,"tag":62,"props":322,"children":323},{"style":105},[324],{"type":18,"value":325}," 0x00000001",{"type":13,"tag":62,"props":327,"children":328},{"style":80},[329],{"type":18,"value":330},";\n",{"type":13,"tag":62,"props":332,"children":333},{"class":64,"line":142},[334,338,342,347,351,355,359,364],{"type":13,"tag":62,"props":335,"children":336},{"style":69},[337],{"type":18,"value":295},{"type":13,"tag":62,"props":339,"children":340},{"style":69},[341],{"type":18,"value":300},{"type":13,"tag":62,"props":343,"children":344},{"style":105},[345],{"type":18,"value":346}," HOST_VISIBLE",{"type":13,"tag":62,"props":348,"children":349},{"style":69},[350],{"type":18,"value":310},{"type":13,"tag":62,"props":352,"children":353},{"style":105},[354],{"type":18,"value":315},{"type":13,"tag":62,"props":356,"children":357},{"style":69},[358],{"type":18,"value":320},{"type":13,"tag":62,"props":360,"children":361},{"style":105},[362],{"type":18,"value":363}," 0x00000002",{"type":13,"tag":62,"props":365,"children":366},{"style":80},[367],{"type":18,"value":330},{"type":13,"tag":62,"props":369,"children":370},{"class":64,"line":168},[371,375,379,384,388,392,396,401],{"type":13,"tag":62,"props":372,"children":373},{"style":69},[374],{"type":18,"value":295},{"type":13,"tag":62,"props":376,"children":377},{"style":69},[378],{"type":18,"value":300},{"type":13,"tag":62,"props":380,"children":381},{"style":105},[382],{"type":18,"value":383}," HOST_COHERENT",{"type":13,"tag":62,"props":385,"children":386},{"style":69},[387],{"type":18,"value":310},{"type":13,"tag":62,"props":389,"children":390},{"style":105},[391],{"type":18,"value":315},{"type":13,"tag":62,"props":393,"children":394},{"style":69},[395],{"type":18,"value":320},{"type":13,"tag":62,"props":397,"children":398},{"style":105},[399],{"type":18,"value":400}," 0x00000004",{"type":13,"tag":62,"props":402,"children":403},{"style":80},[404],{"type":18,"value":330},{"type":13,"tag":62,"props":406,"children":407},{"class":64,"line":194},[408,412,416,421,425,429,433,438],{"type":13,"tag":62,"props":409,"children":410},{"style":69},[411],{"type":18,"value":295},{"type":13,"tag":62,"props":413,"children":414},{"style":69},[415],{"type":18,"value":300},{"type":13,"tag":62,"props":417,"children":418},{"style":105},[419],{"type":18,"value":420}," HOST_CACHED",{"type":13,"tag":62,"props":422,"children":423},{"style":69},[424],{"type":18,"value":310},{"type":13,"tag":62,"props":426,"children":427},{"style":105},[428],{"type":18,"value":315},{"type":13,"tag":62,"props":430,"children":431},{"style":69},[432],{"type":18,"value":320},{"type":13,"tag":62,"props":434,"children":435},{"style":105},[436],{"type":18,"value":437}," 0x00000008",{"type":13,"tag":62,"props":439,"children":440},{"style":80},[441],{"type":18,"value":330},{"type":13,"tag":62,"props":443,"children":444},{"class":64,"line":220},[445,449,453,458,462,466,470,475],{"type":13,"tag":62,"props":446,"children":447},{"style":69},[448],{"type":18,"value":295},{"type":13,"tag":62,"props":450,"children":451},{"style":69},[452],{"type":18,"value":300},{"type":13,"tag":62,"props":454,"children":455},{"style":105},[456],{"type":18,"value":457}," LAZILY_ALLOCATED",{"type":13,"tag":62,"props":459,"children":460},{"style":69},[461],{"type":18,"value":310},{"type":13,"tag":62,"props":463,"children":464},{"style":105},[465],{"type":18,"value":315},{"type":13,"tag":62,"props":467,"children":468},{"style":69},[469],{"type":18,"value":320},{"type":13,"tag":62,"props":471,"children":472},{"style":105},[473],{"type":18,"value":474}," 0x00000010",{"type":13,"tag":62,"props":476,"children":477},{"style":80},[478],{"type":18,"value":330},{"type":13,"tag":62,"props":480,"children":482},{"class":64,"line":481},8,[483],{"type":13,"tag":62,"props":484,"children":485},{"style":80},[486],{"type":18,"value":487},"}\n",{"type":13,"tag":489,"props":490,"children":491},"ul",{},[492,512,537,571,582,625,636,647],{"type":13,"tag":493,"props":494,"children":495},"li",{},[496,502,504,510],{"type":13,"tag":37,"props":497,"children":499},{"className":498},[],[500],{"type":18,"value":501},"VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT",{"type":18,"value":503}," bit specifies that memory\nallocated with this type is the most efficient for device access.\nThis property will be set if and only if the memory type belongs to a\nheap with the ",{"type":13,"tag":37,"props":505,"children":507},{"className":506},[],[508],{"type":18,"value":509},"VK_MEMORY_HEAP_DEVICE_LOCAL_BIT",{"type":18,"value":511}," set.",{"type":13,"tag":493,"props":513,"children":514},{},[515,521,523,527,529,535],{"type":13,"tag":37,"props":516,"children":518},{"className":517},[],[519],{"type":18,"value":520},"VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT",{"type":18,"value":522}," bit specifies that memory\nallocated with this type ",{"type":13,"tag":21,"props":524,"children":526},{"type":525},"can",[],{"type":18,"value":528}," be mapped for host access using\n",{"type":13,"tag":28,"props":530,"children":532},{"href":531},"/man/vkMapMemory",[533],{"type":18,"value":534},"vkMapMemory",{"type":18,"value":536},".",{"type":13,"tag":493,"props":538,"children":539},{},[540,545,547,553,555,561,563,569],{"type":13,"tag":541,"props":542,"children":544},"anchor",{"id":543},"memory-coherent",[],{"type":18,"value":546}," ",{"type":13,"tag":37,"props":548,"children":550},{"className":549},[],[551],{"type":18,"value":552},"VK_MEMORY_PROPERTY_HOST_COHERENT_BIT",{"type":18,"value":554}," bit\nspecifies that the host cache management commands\n",{"type":13,"tag":28,"props":556,"children":558},{"href":557},"/man/vkFlushMappedMemoryRanges",[559],{"type":18,"value":560},"vkFlushMappedMemoryRanges",{"type":18,"value":562}," and ",{"type":13,"tag":28,"props":564,"children":566},{"href":565},"/man/vkInvalidateMappedMemoryRanges",[567],{"type":18,"value":568},"vkInvalidateMappedMemoryRanges",{"type":18,"value":570},"\nare not needed to flush host writes to the device or make device writes\nvisible to the host, respectively.",{"type":13,"tag":493,"props":572,"children":573},{},[574,580],{"type":13,"tag":37,"props":575,"children":577},{"className":576},[],[578],{"type":18,"value":579},"VK_MEMORY_PROPERTY_HOST_CACHED_BIT",{"type":18,"value":581}," bit specifies that memory\nallocated with this type is cached on the host.\nHost memory accesses to uncached memory are slower than to cached\nmemory, however uncached memory is always host coherent.",{"type":13,"tag":493,"props":583,"children":584},{},[585,591,593,597,599,604,606,611,613,616,618,624],{"type":13,"tag":37,"props":586,"children":588},{"className":587},[],[589],{"type":18,"value":590},"VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT",{"type":18,"value":592}," bit specifies that the\nmemory type only allows device access to the memory.\nMemory types ",{"type":13,"tag":21,"props":594,"children":596},{"type":595},"must",[],{"type":18,"value":598}," not have both\n",{"type":13,"tag":37,"props":600,"children":602},{"className":601},[],[603],{"type":18,"value":590},{"type":18,"value":605}," and\n",{"type":13,"tag":37,"props":607,"children":609},{"className":608},[],[610],{"type":18,"value":520},{"type":18,"value":612}," set.\nAdditionally, the object’s backing memory ",{"type":13,"tag":21,"props":614,"children":615},{"type":23},[],{"type":18,"value":617}," be provided by the\nimplementation lazily as specified in ",{"type":13,"tag":28,"props":619,"children":621},{"href":620},"/chapters/memory#memory-device-lazy_allocation",[622],{"type":18,"value":623},"Lazily Allocated Memory",{"type":18,"value":536},{"type":13,"tag":493,"props":626,"children":627},{},[628,634],{"type":13,"tag":37,"props":629,"children":631},{"className":630},[],[632],{"type":18,"value":633},"VK_MEMORY_PROPERTY_DEVICE_COHERENT_BIT_AMD",{"type":18,"value":635}," bit specifies that\ndevice accesses to allocations of this memory type are automatically\nmade available and visible.",{"type":13,"tag":493,"props":637,"children":638},{},[639,645],{"type":13,"tag":37,"props":640,"children":642},{"className":641},[],[643],{"type":18,"value":644},"VK_MEMORY_PROPERTY_DEVICE_UNCACHED_BIT_AMD",{"type":18,"value":646}," bit specifies that\nmemory allocated with this type is not cached on the device.\nUncached device memory is always device coherent.",{"type":13,"tag":493,"props":648,"children":649},{},[650,656],{"type":13,"tag":37,"props":651,"children":653},{"className":652},[],[654],{"type":18,"value":655},"VK_MEMORY_PROPERTY_RDMA_CAPABLE_BIT_NV",{"type":18,"value":657}," bit specifies that external\ndevices can access this memory directly.",{"type":13,"tag":14,"props":659,"children":660},{},[661,663,668,670,675],{"type":18,"value":662},"For any memory allocated with both the\n",{"type":13,"tag":37,"props":664,"children":666},{"className":665},[],[667],{"type":18,"value":552},{"type":18,"value":669}," and the\n",{"type":13,"tag":37,"props":671,"children":673},{"className":672},[],[674],{"type":18,"value":633},{"type":18,"value":676},", host or device accesses\nalso perform automatic memory domain transfer operations, such that writes\nare always automatically available and visible to both host and device\nmemory domains.",{"type":13,"tag":678,"props":679,"children":680},"note",{},[681],{"type":13,"tag":14,"props":682,"children":683},{},[684],{"type":18,"value":685},"Device coherence is a useful property for certain debugging use cases (e.g.\ncrash analysis, where performing separate coherence actions could mean\nvalues are not reported correctly).\nHowever, device coherent accesses may be slower than equivalent accesses\nwithout device coherence, particularly if they are also device uncached.\nFor device uncached memory in particular, repeated accesses to the same or\nneighboring memory locations over a short time period (e.g. within a frame)\nmay be slower than it would be for the equivalent cached memory type.\nAs such, it is generally inadvisable to use device coherent or device\nuncached memory except when really needed.",{"type":13,"tag":687,"props":688,"children":689},"style",{},[690],{"type":18,"value":691},"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":693},[],"markdown",1725732562793]