[{"data":1,"prerenderedAt":396},["ShallowReactive",2],{"NiWCgawPgp":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":395,"_id":4},"VkSubresourceHostMemcpySizeEXT","Memory size needed to copy to or from an image on the host with VK_HOST_IMAGE_COPY_MEMCPY_EXT","VK_EXT_host_image_copy","structs",[],{"type":10,"children":11,"toc":393},"root",[12,77,89,301,354,387],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,27,29,35,37,44,46,51,53,59,61,67,69,75],{"type":18,"value":19},"text","To query the memory size needed to copy to or from an image using\n",{"type":13,"tag":21,"props":22,"children":24},"a",{"href":23},"/man/vkCopyMemoryToImageEXT",[25],{"type":18,"value":26},"vkCopyMemoryToImageEXT",{"type":18,"value":28}," or ",{"type":13,"tag":21,"props":30,"children":32},{"href":31},"/man/vkCopyImageToMemoryEXT",[33],{"type":18,"value":34},"vkCopyImageToMemoryEXT",{"type":18,"value":36}," when the\n",{"type":13,"tag":38,"props":39,"children":41},"code",{"className":40},[],[42],{"type":18,"value":43},"VK_HOST_IMAGE_COPY_MEMCPY_EXT",{"type":18,"value":45}," flag is specified, add a\n",{"type":13,"tag":21,"props":47,"children":49},{"href":48},"/man/VkSubresourceHostMemcpySizeEXT",[50],{"type":18,"value":4},{"type":18,"value":52}," structure to the ",{"type":13,"tag":38,"props":54,"children":56},{"className":55},[],[57],{"type":18,"value":58},"pNext",{"type":18,"value":60}," chain of\nthe ",{"type":13,"tag":21,"props":62,"children":64},{"href":63},"/man/VkSubresourceLayout2EXT",[65],{"type":18,"value":66},"VkSubresourceLayout2EXT",{"type":18,"value":68}," structure in a call to\n",{"type":13,"tag":21,"props":70,"children":72},{"href":71},"/man/vkGetImageSubresourceLayout2EXT",[73],{"type":18,"value":74},"vkGetImageSubresourceLayout2EXT",{"type":18,"value":76},".",{"type":13,"tag":14,"props":78,"children":79},{},[80,82,87],{"type":18,"value":81},"The ",{"type":13,"tag":38,"props":83,"children":85},{"className":84},[],[86],{"type":18,"value":4},{"type":18,"value":88}," structure is defined as:",{"type":13,"tag":90,"props":91,"children":92},"code-group",{},[93,169],{"type":13,"tag":94,"props":95,"children":101},"pre",{"className":96,"code":97,"filename":98,"language":99,"meta":100,"style":100},"language-c shiki shiki-themes github-light-default github-dark-default","typedef struct VkSubresourceHostMemcpySizeEXT {\n VkStructureType sType;\n void* pNext;\n VkDeviceSize size;\n} VkSubresourceHostMemcpySizeEXT;\n","C","c","",[102],{"type":13,"tag":38,"props":103,"children":104},{"__ignoreMap":100},[105,128,137,151,160],{"type":13,"tag":106,"props":107,"children":110},"span",{"class":108,"line":109},"line",1,[111,117,122],{"type":13,"tag":106,"props":112,"children":114},{"style":113},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[115],{"type":18,"value":116},"typedef",{"type":13,"tag":106,"props":118,"children":119},{"style":113},[120],{"type":18,"value":121}," struct",{"type":13,"tag":106,"props":123,"children":125},{"style":124},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[126],{"type":18,"value":127}," VkSubresourceHostMemcpySizeEXT {\n",{"type":13,"tag":106,"props":129,"children":131},{"class":108,"line":130},2,[132],{"type":13,"tag":106,"props":133,"children":134},{"style":124},[135],{"type":18,"value":136}," VkStructureType sType;\n",{"type":13,"tag":106,"props":138,"children":140},{"class":108,"line":139},3,[141,146],{"type":13,"tag":106,"props":142,"children":143},{"style":113},[144],{"type":18,"value":145}," void*",{"type":13,"tag":106,"props":147,"children":148},{"style":124},[149],{"type":18,"value":150}," pNext;\n",{"type":13,"tag":106,"props":152,"children":154},{"class":108,"line":153},4,[155],{"type":13,"tag":106,"props":156,"children":157},{"style":124},[158],{"type":18,"value":159}," VkDeviceSize size;\n",{"type":13,"tag":106,"props":161,"children":163},{"class":108,"line":162},5,[164],{"type":13,"tag":106,"props":165,"children":166},{"style":124},[167],{"type":18,"value":168},"} VkSubresourceHostMemcpySizeEXT;\n",{"type":13,"tag":94,"props":170,"children":175},{"className":171,"code":172,"filename":173,"language":174,"meta":100,"style":100},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct SubresourceHostMemcpySizeEXT {\n s_type: vk::StructureType,\n p_next: *mut c_void,\n size: vk::DeviceSize, // Specified in bytes\n}\n","Rust","rs",[176],{"type":13,"tag":38,"props":177,"children":178},{"__ignoreMap":100},[179,202,235,257,293],{"type":13,"tag":106,"props":180,"children":181},{"class":108,"line":109},[182,187,191,197],{"type":13,"tag":106,"props":183,"children":184},{"style":113},[185],{"type":18,"value":186},"pub",{"type":13,"tag":106,"props":188,"children":189},{"style":113},[190],{"type":18,"value":121},{"type":13,"tag":106,"props":192,"children":194},{"style":193},"--shiki-default:#953800;--shiki-dark:#FFA657",[195],{"type":18,"value":196}," SubresourceHostMemcpySizeEXT",{"type":13,"tag":106,"props":198,"children":199},{"style":124},[200],{"type":18,"value":201}," {\n",{"type":13,"tag":106,"props":203,"children":204},{"class":108,"line":130},[205,210,215,220,225,230],{"type":13,"tag":106,"props":206,"children":207},{"style":124},[208],{"type":18,"value":209}," s_type",{"type":13,"tag":106,"props":211,"children":212},{"style":113},[213],{"type":18,"value":214},":",{"type":13,"tag":106,"props":216,"children":217},{"style":193},[218],{"type":18,"value":219}," vk",{"type":13,"tag":106,"props":221,"children":222},{"style":113},[223],{"type":18,"value":224},"::",{"type":13,"tag":106,"props":226,"children":227},{"style":193},[228],{"type":18,"value":229},"StructureType",{"type":13,"tag":106,"props":231,"children":232},{"style":124},[233],{"type":18,"value":234},",\n",{"type":13,"tag":106,"props":236,"children":237},{"class":108,"line":139},[238,243,247,252],{"type":13,"tag":106,"props":239,"children":240},{"style":124},[241],{"type":18,"value":242}," p_next",{"type":13,"tag":106,"props":244,"children":245},{"style":113},[246],{"type":18,"value":214},{"type":13,"tag":106,"props":248,"children":249},{"style":113},[250],{"type":18,"value":251}," *mut",{"type":13,"tag":106,"props":253,"children":254},{"style":124},[255],{"type":18,"value":256}," c_void,\n",{"type":13,"tag":106,"props":258,"children":259},{"class":108,"line":153},[260,265,269,273,277,282,287],{"type":13,"tag":106,"props":261,"children":262},{"style":124},[263],{"type":18,"value":264}," size",{"type":13,"tag":106,"props":266,"children":267},{"style":113},[268],{"type":18,"value":214},{"type":13,"tag":106,"props":270,"children":271},{"style":193},[272],{"type":18,"value":219},{"type":13,"tag":106,"props":274,"children":275},{"style":113},[276],{"type":18,"value":224},{"type":13,"tag":106,"props":278,"children":279},{"style":193},[280],{"type":18,"value":281},"DeviceSize",{"type":13,"tag":106,"props":283,"children":284},{"style":124},[285],{"type":18,"value":286},", ",{"type":13,"tag":106,"props":288,"children":290},{"style":289},"--shiki-default:#6E7781;--shiki-dark:#8B949E",[291],{"type":18,"value":292},"// Specified in bytes\n",{"type":13,"tag":106,"props":294,"children":295},{"class":108,"line":162},[296],{"type":13,"tag":106,"props":297,"children":298},{"style":124},[299],{"type":18,"value":300},"}\n",{"type":13,"tag":302,"props":303,"children":304},"ul",{},[305,325,343],{"type":13,"tag":306,"props":307,"children":308},"li",{},[309,315,317,323],{"type":13,"tag":38,"props":310,"children":312},{"className":311},[],[313],{"type":18,"value":314},"sType",{"type":18,"value":316}," is a ",{"type":13,"tag":21,"props":318,"children":320},{"href":319},"/man/VkStructureType",[321],{"type":18,"value":322},"VkStructureType",{"type":18,"value":324}," value identifying this structure.",{"type":13,"tag":306,"props":326,"children":327},{},[328,333,335,341],{"type":13,"tag":38,"props":329,"children":331},{"className":330},[],[332],{"type":18,"value":58},{"type":18,"value":334}," is ",{"type":13,"tag":38,"props":336,"children":338},{"className":337},[],[339],{"type":18,"value":340},"NULL",{"type":18,"value":342}," or a pointer to a structure extending this\nstructure.",{"type":13,"tag":306,"props":344,"children":345},{},[346,352],{"type":13,"tag":38,"props":347,"children":349},{"className":348},[],[350],{"type":18,"value":351},"size",{"type":18,"value":353}," is the size in bytes of the image subresource.",{"type":13,"tag":355,"props":356,"children":358},"validity-group",{"name":357},"Valid Usage (Implicit)",[359],{"type":13,"tag":360,"props":361,"children":363},"validity-field",{"name":362},"VUID-VkSubresourceHostMemcpySizeEXT-sType-sType",[364],{"type":13,"tag":14,"props":365,"children":366},{},[367,372,374,379,381],{"type":13,"tag":38,"props":368,"children":370},{"className":369},[],[371],{"type":18,"value":314},{"type":18,"value":373}," ",{"type":13,"tag":375,"props":376,"children":378},"normative",{"type":377},"must",[],{"type":18,"value":380}," be ",{"type":13,"tag":38,"props":382,"children":384},{"className":383},[],[385],{"type":18,"value":386},"VK_STRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE_EXT",{"type":13,"tag":388,"props":389,"children":390},"style",{},[391],{"type":18,"value":392},"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":100,"searchDepth":130,"depth":130,"links":394},[],"markdown",1725732588866]