Searched refs:virtualSizeAtLevel (Results 1 – 4 of 4) sorted by relevance
90 Extent3D virtualSizeAtLevel = texture->GetMipLevelVirtualSize(textureCopy.mipLevel); in ComputeTextureCopyExtent() local91 ASSERT(textureCopy.origin.x <= virtualSizeAtLevel.width); in ComputeTextureCopyExtent()92 ASSERT(textureCopy.origin.y <= virtualSizeAtLevel.height); in ComputeTextureCopyExtent()93 if (copySize.width > virtualSizeAtLevel.width - textureCopy.origin.x) { in ComputeTextureCopyExtent()95 validTextureCopyExtent.width = virtualSizeAtLevel.width - textureCopy.origin.x; in ComputeTextureCopyExtent()97 if (copySize.height > virtualSizeAtLevel.height - textureCopy.origin.y) { in ComputeTextureCopyExtent()99 validTextureCopyExtent.height = virtualSizeAtLevel.height - textureCopy.origin.y; in ComputeTextureCopyExtent()
655 const Extent3D virtualSizeAtLevel = GetMipLevelVirtualSize(level); in ClampToMipLevelVirtualSize() local656 ASSERT(origin.x <= virtualSizeAtLevel.width); in ClampToMipLevelVirtualSize()657 ASSERT(origin.y <= virtualSizeAtLevel.height); in ClampToMipLevelVirtualSize()658 uint32_t clampedCopyExtentWidth = (extent.width > virtualSizeAtLevel.width - origin.x) in ClampToMipLevelVirtualSize()659 ? (virtualSizeAtLevel.width - origin.x) in ClampToMipLevelVirtualSize()661 uint32_t clampedCopyExtentHeight = (extent.height > virtualSizeAtLevel.height - origin.y) in ClampToMipLevelVirtualSize()662 ? (virtualSizeAtLevel.height - origin.y) in ClampToMipLevelVirtualSize()
237 wgpu::Extent3D virtualSizeAtLevel = GetVirtualSizeAtLevel(config); in VerifyTexture() local243 if (config.copyOrigin3D.x + config.copyExtent3D.width > virtualSizeAtLevel.width) { in VerifyTexture()244 noPaddingExtent3D.width = virtualSizeAtLevel.width - config.copyOrigin3D.x; in VerifyTexture()246 if (config.copyOrigin3D.y + config.copyExtent3D.height > virtualSizeAtLevel.height) { in VerifyTexture()247 noPaddingExtent3D.height = virtualSizeAtLevel.height - config.copyOrigin3D.y; in VerifyTexture()258 VerifyCompressedTexturePixelValues(renderPipeline, bindGroup, virtualSizeAtLevel, in VerifyTexture()
459 Extent3D virtualSizeAtLevel = texture->GetMipLevelVirtualSize(textureCopy.mipLevel); in ComputeTextureCopyExtent() local460 ASSERT(textureCopy.origin.x <= virtualSizeAtLevel.width); in ComputeTextureCopyExtent()461 ASSERT(textureCopy.origin.y <= virtualSizeAtLevel.height); in ComputeTextureCopyExtent()462 if (copySize.width > virtualSizeAtLevel.width - textureCopy.origin.x) { in ComputeTextureCopyExtent()464 validTextureCopyExtent.width = virtualSizeAtLevel.width - textureCopy.origin.x; in ComputeTextureCopyExtent()466 if (copySize.height > virtualSizeAtLevel.height - textureCopy.origin.y) { in ComputeTextureCopyExtent()468 validTextureCopyExtent.height = virtualSizeAtLevel.height - textureCopy.origin.y; in ComputeTextureCopyExtent()