Lines Matching refs:pRegion
73 void Image::copyTo(VkImage dstImage, const VkImageCopy& pRegion) in copyTo() argument
78 int srcBytesPerTexel = bytesPerTexel(pRegion.srcSubresource.aspectMask); in copyTo()
79 ASSERT(srcBytesPerTexel == dst->bytesPerTexel(pRegion.dstSubresource.aspectMask)); in copyTo()
81 if(!((pRegion.srcSubresource.aspectMask == VK_IMAGE_ASPECT_COLOR_BIT) || in copyTo()
82 (pRegion.srcSubresource.aspectMask == VK_IMAGE_ASPECT_DEPTH_BIT) || in copyTo()
83 (pRegion.srcSubresource.aspectMask == VK_IMAGE_ASPECT_STENCIL_BIT)) || in copyTo()
84 (pRegion.srcSubresource.baseArrayLayer != 0) || in copyTo()
85 (pRegion.srcSubresource.layerCount != 1)) in copyTo()
90 if(!((pRegion.dstSubresource.aspectMask == VK_IMAGE_ASPECT_COLOR_BIT) || in copyTo()
91 (pRegion.dstSubresource.aspectMask == VK_IMAGE_ASPECT_DEPTH_BIT) || in copyTo()
92 (pRegion.dstSubresource.aspectMask == VK_IMAGE_ASPECT_STENCIL_BIT)) || in copyTo()
93 (pRegion.dstSubresource.baseArrayLayer != 0) || in copyTo()
94 (pRegion.dstSubresource.layerCount != 1)) in copyTo()
99 …const char* srcMem = static_cast<const char*>(getTexelPointer(pRegion.srcOffset, pRegion.srcSubres… in copyTo()
100 char* dstMem = static_cast<char*>(dst->getTexelPointer(pRegion.dstOffset, pRegion.dstSubresource)); in copyTo()
102 …int srcRowPitchBytes = rowPitchBytes(pRegion.srcSubresource.aspectMask, pRegion.srcSubresource.mip… in copyTo()
103 …int srcSlicePitchBytes = slicePitchBytes(pRegion.srcSubresource.aspectMask, pRegion.srcSubresource… in copyTo()
104 …int dstRowPitchBytes = dst->rowPitchBytes(pRegion.dstSubresource.aspectMask, pRegion.dstSubresourc… in copyTo()
105 …int dstSlicePitchBytes = dst->slicePitchBytes(pRegion.dstSubresource.aspectMask, pRegion.dstSubres… in copyTo()
107 VkExtent3D srcExtent = getMipLevelExtent(pRegion.srcSubresource.mipLevel); in copyTo()
108 VkExtent3D dstExtent = dst->getMipLevelExtent(pRegion.dstSubresource.mipLevel); in copyTo()
110 bool isSinglePlane = (pRegion.extent.depth == 1); in copyTo()
111 bool isSingleLine = (pRegion.extent.height == 1) && isSinglePlane; in copyTo()
115 bool isEntireLine = (pRegion.extent.width == srcExtent.width) && in copyTo()
116 (pRegion.extent.width == dstExtent.width) && in copyTo()
122 (pRegion.extent.height == srcExtent.height) && in copyTo()
123 (pRegion.extent.height == dstExtent.height) && in copyTo()
128 memcpy(dstMem, srcMem, pRegion.extent.width * srcBytesPerTexel); in copyTo()
132 memcpy(dstMem, srcMem, pRegion.extent.height * srcRowPitchBytes); in copyTo()
136 memcpy(dstMem, srcMem, pRegion.extent.depth * srcSlicePitchBytes); in copyTo()
140 …for(uint32_t z = 0; z < pRegion.extent.depth; z++, dstMem += dstSlicePitchBytes, srcMem += srcSlic… in copyTo()
142 memcpy(dstMem, srcMem, pRegion.extent.height * srcRowPitchBytes); in copyTo()
147 for(uint32_t z = 0; z < pRegion.extent.depth; z++) in copyTo()
149 …for(uint32_t y = 0; y < pRegion.extent.height; y++, dstMem += dstRowPitchBytes, srcMem += srcRowPi… in copyTo()
151 memcpy(dstMem, srcMem, pRegion.extent.width * srcBytesPerTexel); in copyTo()