Lines Matching refs:imgpair
159 ImageSubresourcePair imgpair = {image, true, range}; in SetLayout() local
160 SetLayout(pObject, imgpair, layout, VK_IMAGE_ASPECT_COLOR_BIT); in SetLayout()
161 SetLayout(pObject, imgpair, layout, VK_IMAGE_ASPECT_DEPTH_BIT); in SetLayout()
162 SetLayout(pObject, imgpair, layout, VK_IMAGE_ASPECT_STENCIL_BIT); in SetLayout()
163 SetLayout(pObject, imgpair, layout, VK_IMAGE_ASPECT_METADATA_BIT); in SetLayout()
165 SetLayout(pObject, imgpair, layout, VK_IMAGE_ASPECT_PLANE_0_BIT_KHR); in SetLayout()
166 SetLayout(pObject, imgpair, layout, VK_IMAGE_ASPECT_PLANE_1_BIT_KHR); in SetLayout()
167 SetLayout(pObject, imgpair, layout, VK_IMAGE_ASPECT_PLANE_2_BIT_KHR); in SetLayout()
172 void CoreChecks::SetLayout(OBJECT *pObject, ImageSubresourcePair imgpair, const LAYOUT &layout, VkI… in SetLayout() argument
173 if (imgpair.subresource.aspectMask & aspectMask) { in SetLayout()
174 imgpair.subresource.aspectMask = aspectMask; in SetLayout()
175 SetLayout(pObject, imgpair, layout); in SetLayout()
180 void CoreChecks::SetLayout(ImageSubresPairLayoutMap &imageLayoutMap, ImageSubresourcePair imgpair, … in SetLayout() argument
181 auto it = imageLayoutMap.find(imgpair); in SetLayout()
185 imageLayoutMap[imgpair].layout = layout; // Insert in SetLayout()
189 bool CoreChecks::FindLayoutVerifyLayout(ImageSubresourcePair imgpair, VkImageLayout &layout, const … in FindLayoutVerifyLayout() argument
190 if (!(imgpair.subresource.aspectMask & aspectMask)) { in FindLayoutVerifyLayout()
193 VkImageAspectFlags oldAspectMask = imgpair.subresource.aspectMask; in FindLayoutVerifyLayout()
194 imgpair.subresource.aspectMask = aspectMask; in FindLayoutVerifyLayout()
195 auto imgsubIt = imageLayoutMap.find(imgpair); in FindLayoutVerifyLayout()
200 …K_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT, HandleToUint64(imgpair.image), in FindLayoutVerifyLayout()
203 … report_data->FormatHandle(imgpair.image).c_str(), oldAspectMask, string_VkImageLayout(layout), in FindLayoutVerifyLayout()
211 bool CoreChecks::FindGlobalLayout(ImageSubresourcePair imgpair, VkImageLayout &layout) { in FindGlobalLayout() argument
213 FindLayoutVerifyLayout(imgpair, layout, VK_IMAGE_ASPECT_COLOR_BIT); in FindGlobalLayout()
214 FindLayoutVerifyLayout(imgpair, layout, VK_IMAGE_ASPECT_DEPTH_BIT); in FindGlobalLayout()
215 FindLayoutVerifyLayout(imgpair, layout, VK_IMAGE_ASPECT_STENCIL_BIT); in FindGlobalLayout()
216 FindLayoutVerifyLayout(imgpair, layout, VK_IMAGE_ASPECT_METADATA_BIT); in FindGlobalLayout()
218 FindLayoutVerifyLayout(imgpair, layout, VK_IMAGE_ASPECT_PLANE_0_BIT_KHR); in FindGlobalLayout()
219 FindLayoutVerifyLayout(imgpair, layout, VK_IMAGE_ASPECT_PLANE_1_BIT_KHR); in FindGlobalLayout()
220 FindLayoutVerifyLayout(imgpair, layout, VK_IMAGE_ASPECT_PLANE_2_BIT_KHR); in FindGlobalLayout()
223 imgpair = {imgpair.image, false, VkImageSubresource()}; in FindGlobalLayout()
224 auto imgsubIt = imageLayoutMap.find(imgpair); in FindGlobalLayout()
251 …out(const ImageSubresPairLayoutMap &imageLayoutMap, ImageSubresourcePair imgpair, VkImageLayout &l… in FindLayout() argument
253 if (!(imgpair.subresource.aspectMask & aspectMask)) { in FindLayout()
256 imgpair.subresource.aspectMask = aspectMask; in FindLayout()
257 auto imgsubIt = imageLayoutMap.find(imgpair); in FindLayout()
266 …oreChecks::FindLayout(const ImageSubresPairLayoutMap &imageLayoutMap, ImageSubresourcePair imgpair, in FindLayout() argument
269 FindLayout(imageLayoutMap, imgpair, layout, VK_IMAGE_ASPECT_COLOR_BIT); in FindLayout()
270 FindLayout(imageLayoutMap, imgpair, layout, VK_IMAGE_ASPECT_DEPTH_BIT); in FindLayout()
271 FindLayout(imageLayoutMap, imgpair, layout, VK_IMAGE_ASPECT_STENCIL_BIT); in FindLayout()
272 FindLayout(imageLayoutMap, imgpair, layout, VK_IMAGE_ASPECT_METADATA_BIT); in FindLayout()
274 FindLayout(imageLayoutMap, imgpair, layout, VK_IMAGE_ASPECT_PLANE_0_BIT_KHR); in FindLayout()
275 FindLayout(imageLayoutMap, imgpair, layout, VK_IMAGE_ASPECT_PLANE_1_BIT_KHR); in FindLayout()
276 FindLayout(imageLayoutMap, imgpair, layout, VK_IMAGE_ASPECT_PLANE_2_BIT_KHR); in FindLayout()
280 imgpair = {imgpair.image, false, VkImageSubresource()}; in FindLayout()
281 auto imgsubIt = imageLayoutMap.find(imgpair); in FindLayout()
289 void CoreChecks::SetGlobalLayout(ImageSubresourcePair imgpair, const VkImageLayout &layout) { in SetGlobalLayout() argument
290 VkImage &image = imgpair.image; in SetGlobalLayout()
291 auto data = imageLayoutMap.find(imgpair); in SetGlobalLayout()
295 imageLayoutMap[imgpair].layout = layout; // Insert in SetGlobalLayout()
298 auto subresource = std::find(image_subresources.begin(), image_subresources.end(), imgpair); in SetGlobalLayout()
300 image_subresources.push_back(imgpair); in SetGlobalLayout()