region.imageSubresource.mipLevel = level;
region.imageSubresource.baseArrayLayer = (is_array() ? z : 0);
region.imageSubresource.layerCount = (is_array() ? dp : 1);
region.imageOffset = { x, y, (is_array() ? 0 : z) };
region.imageExtent = { wd, ht, (is_array() ? 1 : dp) };
region.imageSubresource.mipLevel = level;
region.imageSubresource.baseArrayLayer = (is_array() ? z : 0);
region.imageSubresource.layerCount = (is_array() ? dp : 1);
region.imageOffset = { x, y, (is_array() ? 0 : z) };
region.imageExtent = { wd, ht, (is_array() ? 1 : dp) };