mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-24 04:32:08 +00:00
Current implementation of CopyTextureForBrowser() uses sampler to load and store values in shader to *-srgb format textures. This is the wrong implementation because it cannot reserve the origin bytes. This CL remove *-srgb formats from supporting lists. This CL also refactor CopyTextureForBrowserTest to reduce duplication and prepare for color space conversion test case. Bug: dawn:1195 Change-Id: Ib00d863e99bde8c7bf86fbb8ff93f0c799babe23 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/70040 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Shaobo Yan <shaobo.yan@intel.com>