[{"data":1,"prerenderedAt":328},["ShallowReactive",2],{"wKg3oHBRzg":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":327,"_id":4},"VkMemoryRequirements","Structure specifying memory requirements","VK_VERSION_1_0","structs",[],{"type":10,"children":11,"toc":325},"root",[12,28,246,319],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,26],{"type":18,"value":19},"text","The ",{"type":13,"tag":21,"props":22,"children":24},"code",{"className":23},[],[25],{"type":18,"value":4},{"type":18,"value":27}," structure is defined as:",{"type":13,"tag":29,"props":30,"children":31},"code-group",{},[32,108],{"type":13,"tag":33,"props":34,"children":40},"pre",{"className":35,"code":36,"filename":37,"language":38,"meta":39,"style":39},"language-c shiki shiki-themes github-light-default github-dark-default","typedef struct VkMemoryRequirements {\n VkDeviceSize size;\n VkDeviceSize alignment;\n uint32_t memoryTypeBits;\n} VkMemoryRequirements;\n","C","c","",[41],{"type":13,"tag":21,"props":42,"children":43},{"__ignoreMap":39},[44,67,76,85,99],{"type":13,"tag":45,"props":46,"children":49},"span",{"class":47,"line":48},"line",1,[50,56,61],{"type":13,"tag":45,"props":51,"children":53},{"style":52},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[54],{"type":18,"value":55},"typedef",{"type":13,"tag":45,"props":57,"children":58},{"style":52},[59],{"type":18,"value":60}," struct",{"type":13,"tag":45,"props":62,"children":64},{"style":63},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[65],{"type":18,"value":66}," VkMemoryRequirements {\n",{"type":13,"tag":45,"props":68,"children":70},{"class":47,"line":69},2,[71],{"type":13,"tag":45,"props":72,"children":73},{"style":63},[74],{"type":18,"value":75}," VkDeviceSize size;\n",{"type":13,"tag":45,"props":77,"children":79},{"class":47,"line":78},3,[80],{"type":13,"tag":45,"props":81,"children":82},{"style":63},[83],{"type":18,"value":84}," VkDeviceSize alignment;\n",{"type":13,"tag":45,"props":86,"children":88},{"class":47,"line":87},4,[89,94],{"type":13,"tag":45,"props":90,"children":91},{"style":52},[92],{"type":18,"value":93}," uint32_t",{"type":13,"tag":45,"props":95,"children":96},{"style":63},[97],{"type":18,"value":98}," memoryTypeBits;\n",{"type":13,"tag":45,"props":100,"children":102},{"class":47,"line":101},5,[103],{"type":13,"tag":45,"props":104,"children":105},{"style":63},[106],{"type":18,"value":107},"} VkMemoryRequirements;\n",{"type":13,"tag":33,"props":109,"children":114},{"className":110,"code":111,"filename":112,"language":113,"meta":39,"style":39},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct MemoryRequirements {\n size: vk::DeviceSize, // Specified in bytes\n alignment: vk::DeviceSize, // Specified in bytes\n memory_type_bits: u32, // Bitmask of the allowed memory type indices into memoryTypes[] for this object\n}\n","Rust","rs",[115],{"type":13,"tag":21,"props":116,"children":117},{"__ignoreMap":39},[118,141,180,212,238],{"type":13,"tag":45,"props":119,"children":120},{"class":47,"line":48},[121,126,130,136],{"type":13,"tag":45,"props":122,"children":123},{"style":52},[124],{"type":18,"value":125},"pub",{"type":13,"tag":45,"props":127,"children":128},{"style":52},[129],{"type":18,"value":60},{"type":13,"tag":45,"props":131,"children":133},{"style":132},"--shiki-default:#953800;--shiki-dark:#FFA657",[134],{"type":18,"value":135}," MemoryRequirements",{"type":13,"tag":45,"props":137,"children":138},{"style":63},[139],{"type":18,"value":140}," {\n",{"type":13,"tag":45,"props":142,"children":143},{"class":47,"line":69},[144,149,154,159,164,169,174],{"type":13,"tag":45,"props":145,"children":146},{"style":63},[147],{"type":18,"value":148}," size",{"type":13,"tag":45,"props":150,"children":151},{"style":52},[152],{"type":18,"value":153},":",{"type":13,"tag":45,"props":155,"children":156},{"style":132},[157],{"type":18,"value":158}," vk",{"type":13,"tag":45,"props":160,"children":161},{"style":52},[162],{"type":18,"value":163},"::",{"type":13,"tag":45,"props":165,"children":166},{"style":132},[167],{"type":18,"value":168},"DeviceSize",{"type":13,"tag":45,"props":170,"children":171},{"style":63},[172],{"type":18,"value":173},", ",{"type":13,"tag":45,"props":175,"children":177},{"style":176},"--shiki-default:#6E7781;--shiki-dark:#8B949E",[178],{"type":18,"value":179},"// Specified in bytes\n",{"type":13,"tag":45,"props":181,"children":182},{"class":47,"line":78},[183,188,192,196,200,204,208],{"type":13,"tag":45,"props":184,"children":185},{"style":63},[186],{"type":18,"value":187}," alignment",{"type":13,"tag":45,"props":189,"children":190},{"style":52},[191],{"type":18,"value":153},{"type":13,"tag":45,"props":193,"children":194},{"style":132},[195],{"type":18,"value":158},{"type":13,"tag":45,"props":197,"children":198},{"style":52},[199],{"type":18,"value":163},{"type":13,"tag":45,"props":201,"children":202},{"style":132},[203],{"type":18,"value":168},{"type":13,"tag":45,"props":205,"children":206},{"style":63},[207],{"type":18,"value":173},{"type":13,"tag":45,"props":209,"children":210},{"style":176},[211],{"type":18,"value":179},{"type":13,"tag":45,"props":213,"children":214},{"class":47,"line":87},[215,220,224,229,233],{"type":13,"tag":45,"props":216,"children":217},{"style":63},[218],{"type":18,"value":219}," memory_type_bits",{"type":13,"tag":45,"props":221,"children":222},{"style":52},[223],{"type":18,"value":153},{"type":13,"tag":45,"props":225,"children":226},{"style":132},[227],{"type":18,"value":228}," u32",{"type":13,"tag":45,"props":230,"children":231},{"style":63},[232],{"type":18,"value":173},{"type":13,"tag":45,"props":234,"children":235},{"style":176},[236],{"type":18,"value":237},"// Bitmask of the allowed memory type indices into memoryTypes[] for this object\n",{"type":13,"tag":45,"props":239,"children":240},{"class":47,"line":101},[241],{"type":13,"tag":45,"props":242,"children":243},{"style":63},[244],{"type":18,"value":245},"}\n",{"type":13,"tag":247,"props":248,"children":249},"ul",{},[250,269,285],{"type":13,"tag":251,"props":252,"children":253},"li",{},[254,260,262,267],{"type":13,"tag":21,"props":255,"children":257},{"className":256},[],[258],{"type":18,"value":259},"size",{"type":18,"value":261}," is the size, in bytes, of the memory allocation ",{"type":13,"tag":263,"props":264,"children":266},"normative",{"type":265},"required",[],{"type":18,"value":268}," for\nthe resource.",{"type":13,"tag":251,"props":270,"children":271},{},[272,278,280,283],{"type":13,"tag":21,"props":273,"children":275},{"className":274},[],[276],{"type":18,"value":277},"alignment",{"type":18,"value":279}," is the alignment, in bytes, of the offset within the\nallocation ",{"type":13,"tag":263,"props":281,"children":282},{"type":265},[],{"type":18,"value":284}," for the resource.",{"type":13,"tag":251,"props":286,"children":287},{},[288,294,296,302,304,309,311,317],{"type":13,"tag":21,"props":289,"children":291},{"className":290},[],[292],{"type":18,"value":293},"memoryTypeBits",{"type":18,"value":295}," is a bitmask and contains one bit set for every\nsupported memory type for the resource.\nBit ",{"type":13,"tag":21,"props":297,"children":299},{"className":298},[],[300],{"type":18,"value":301},"i",{"type":18,"value":303}," is set if and only if the memory type ",{"type":13,"tag":21,"props":305,"children":307},{"className":306},[],[308],{"type":18,"value":301},{"type":18,"value":310}," in the\n",{"type":13,"tag":21,"props":312,"children":314},{"className":313},[],[315],{"type":18,"value":316},"VkPhysicalDeviceMemoryProperties",{"type":18,"value":318}," structure for the physical device\nis supported for the resource.",{"type":13,"tag":320,"props":321,"children":322},"style",{},[323],{"type":18,"value":324},"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":39,"searchDepth":69,"depth":69,"links":326},[],"markdown",1725732562837]