Home
last modified time | relevance | path

Searched refs:virtualSizeAtLevel (Results 1 – 4 of 4) sorted by relevance

/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DUtilsVulkan.cpp90 Extent3D virtualSizeAtLevel = texture->GetMipLevelVirtualSize(textureCopy.mipLevel); in ComputeTextureCopyExtent() local
91 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()
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DTexture.cpp655 const Extent3D virtualSizeAtLevel = GetMipLevelVirtualSize(level); in ClampToMipLevelVirtualSize() local
656 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()
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DCompressedTextureFormatTests.cpp237 wgpu::Extent3D virtualSizeAtLevel = GetVirtualSizeAtLevel(config); in VerifyTexture() local
243 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()
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
DCommandBufferGL.cpp459 Extent3D virtualSizeAtLevel = texture->GetMipLevelVirtualSize(textureCopy.mipLevel); in ComputeTextureCopyExtent() local
460 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()