mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 10:49:14 +00:00
Reland "CopyTextureForBrowser: Support color format conversion"
This is a reland of f84daa070f
Eliminate static initializer(disallowed in Chromium) by replacing
shader string living in anonymous namespace from type "std::string"
to char array.
Original change's description:
> CopyTextureForBrowser: Support color format conversion
>
> This CL enables blit from RGBA8Unorm soruce texture to dst texture that
> |CopyImageBitmapToTexture| supported dst format.
>
> BUG=dawn:465
>
> Change-Id: I99846cf8dc37bc89e0c168a3d86193bb3a0c0ebb
> Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/44020
> Commit-Queue: Shaobo Yan <shaobo.yan@intel.com>
> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
> Reviewed-by: Austin Eng <enga@chromium.org>
Bug: dawn:465
Change-Id: Ic3a156f5a20b217fd2aa5f86b01bad8ce77dc41c
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/45443
Commit-Queue: Shaobo Yan <shaobo.yan@intel.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
97da45c373
commit
d42f4b3ca5
@@ -25,7 +25,9 @@ namespace dawn_native {
|
||||
class ShaderModuleBase;
|
||||
|
||||
struct InternalPipelineStore {
|
||||
Ref<RenderPipelineBase> copyTextureForBrowserPipeline;
|
||||
std::unordered_map<wgpu::TextureFormat, Ref<RenderPipelineBase>>
|
||||
copyTextureForBrowserPipelines;
|
||||
|
||||
Ref<ShaderModuleBase> copyTextureForBrowserVS;
|
||||
Ref<ShaderModuleBase> copyTextureForBrowserFS;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user