[{"data":1,"prerenderedAt":466},["ShallowReactive",2],{"PoN5ZbO7Gl":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":465,"_id":4},"VkSubresourceHostMemcpySize","Memory size needed to copy to or from an image on the host with VK_HOST_IMAGE_COPY_MEMCPY","VK_VERSION_1_4","structs",[],{"type":10,"children":11,"toc":463},"root",[12,77,89,301,306,371,424,457],{"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/vkCopyMemoryToImage",[25],{"type":18,"value":26},"vkCopyMemoryToImage",{"type":18,"value":28}," or ",{"type":13,"tag":21,"props":30,"children":32},{"href":31},"/man/vkCopyImageToMemory",[33],{"type":18,"value":34},"vkCopyImageToMemory",{"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",{"type":18,"value":45}," flag is specified, add a\n",{"type":13,"tag":21,"props":47,"children":49},{"href":48},"/man/VkSubresourceHostMemcpySize",[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 the\n",{"type":13,"tag":21,"props":62,"children":64},{"href":63},"/man/VkSubresourceLayout2",[65],{"type":18,"value":66},"VkSubresourceLayout2",{"type":18,"value":68}," structure in a call to\n",{"type":13,"tag":21,"props":70,"children":72},{"href":71},"/man/vkGetImageSubresourceLayout2",[73],{"type":18,"value":74},"vkGetImageSubresourceLayout2",{"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 VkSubresourceHostMemcpySize {\n VkStructureType sType;\n void* pNext;\n VkDeviceSize size;\n} VkSubresourceHostMemcpySize;\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}," VkSubresourceHostMemcpySize {\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},"} VkSubresourceHostMemcpySize;\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 SubresourceHostMemcpySize {\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}," SubresourceHostMemcpySize",{"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":14,"props":302,"children":303},{},[304],{"type":18,"value":305},"or the equivalent",{"type":13,"tag":90,"props":307,"children":308},{},[309,328],{"type":13,"tag":94,"props":310,"children":312},{"className":96,"code":311,"filename":98,"language":99,"meta":100,"style":100},"typedef VkSubresourceHostMemcpySize VkSubresourceHostMemcpySizeEXT;\n",[313],{"type":13,"tag":38,"props":314,"children":315},{"__ignoreMap":100},[316],{"type":13,"tag":106,"props":317,"children":318},{"class":108,"line":109},[319,323],{"type":13,"tag":106,"props":320,"children":321},{"style":113},[322],{"type":18,"value":116},{"type":13,"tag":106,"props":324,"children":325},{"style":124},[326],{"type":18,"value":327}," VkSubresourceHostMemcpySize VkSubresourceHostMemcpySizeEXT;\n",{"type":13,"tag":94,"props":329,"children":331},{"className":171,"code":330,"filename":173,"language":174,"meta":100,"style":100},"type SubresourceHostMemcpySizeEXT = vk::SubresourceHostMemcpySize;\n",[332],{"type":13,"tag":38,"props":333,"children":334},{"__ignoreMap":100},[335],{"type":13,"tag":106,"props":336,"children":337},{"class":108,"line":109},[338,343,348,353,357,361,366],{"type":13,"tag":106,"props":339,"children":340},{"style":113},[341],{"type":18,"value":342},"type",{"type":13,"tag":106,"props":344,"children":345},{"style":193},[346],{"type":18,"value":347}," SubresourceHostMemcpySizeEXT",{"type":13,"tag":106,"props":349,"children":350},{"style":113},[351],{"type":18,"value":352}," =",{"type":13,"tag":106,"props":354,"children":355},{"style":193},[356],{"type":18,"value":219},{"type":13,"tag":106,"props":358,"children":359},{"style":113},[360],{"type":18,"value":224},{"type":13,"tag":106,"props":362,"children":363},{"style":193},[364],{"type":18,"value":365},"SubresourceHostMemcpySize",{"type":13,"tag":106,"props":367,"children":368},{"style":124},[369],{"type":18,"value":370},";\n",{"type":13,"tag":372,"props":373,"children":374},"ul",{},[375,395,413],{"type":13,"tag":376,"props":377,"children":378},"li",{},[379,385,387,393],{"type":13,"tag":38,"props":380,"children":382},{"className":381},[],[383],{"type":18,"value":384},"sType",{"type":18,"value":386}," is a ",{"type":13,"tag":21,"props":388,"children":390},{"href":389},"/man/VkStructureType",[391],{"type":18,"value":392},"VkStructureType",{"type":18,"value":394}," value identifying this structure.",{"type":13,"tag":376,"props":396,"children":397},{},[398,403,405,411],{"type":13,"tag":38,"props":399,"children":401},{"className":400},[],[402],{"type":18,"value":58},{"type":18,"value":404}," is ",{"type":13,"tag":38,"props":406,"children":408},{"className":407},[],[409],{"type":18,"value":410},"NULL",{"type":18,"value":412}," or a pointer to a structure extending this\nstructure.",{"type":13,"tag":376,"props":414,"children":415},{},[416,422],{"type":13,"tag":38,"props":417,"children":419},{"className":418},[],[420],{"type":18,"value":421},"size",{"type":18,"value":423}," is the size in bytes of the image subresource.",{"type":13,"tag":425,"props":426,"children":428},"validity-group",{"name":427},"Valid Usage (Implicit)",[429],{"type":13,"tag":430,"props":431,"children":433},"validity-field",{"name":432},"VUID-VkSubresourceHostMemcpySize-sType-sType",[434],{"type":13,"tag":14,"props":435,"children":436},{},[437,442,444,449,451],{"type":13,"tag":38,"props":438,"children":440},{"className":439},[],[441],{"type":18,"value":384},{"type":18,"value":443}," ",{"type":13,"tag":445,"props":446,"children":448},"normative",{"type":447},"must",[],{"type":18,"value":450}," be ",{"type":13,"tag":38,"props":452,"children":454},{"className":453},[],[455],{"type":18,"value":456},"VK_STRUCTURE_TYPE_SUBRESOURCE_HOST_MEMCPY_SIZE",{"type":13,"tag":458,"props":459,"children":460},"style",{},[461],{"type":18,"value":462},"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":464},[],"markdown",1744876574268]