Skip to content

Commit

Permalink
[WebGPU] Set surfaceConfiguration alphaMode default value to auto (em…
Browse files Browse the repository at this point in the history
…scripten-core#22006)

As raised in emscripten-core#21939 (comment), the default value for surfaceConfiguration alphaMode
should be "auto", not "opaque".

Relevant Dawn CL: https://dawn-review.googlesource.com/c/dawn/+/190080
  • Loading branch information
beaufortfrancois authored and Morten Sørvig committed Jun 4, 2024
1 parent 0358146 commit f079d79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/include/webgpu/webgpu_cpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -1560,7 +1560,7 @@ namespace wgpu {
TextureUsage usage = TextureUsage::RenderAttachment;
size_t viewFormatCount = 0;
TextureFormat const * viewFormats;
CompositeAlphaMode alphaMode = CompositeAlphaMode::Opaque;
CompositeAlphaMode alphaMode = CompositeAlphaMode::Auto;
uint32_t width;
uint32_t height;
PresentMode presentMode = PresentMode::Fifo;
Expand Down

0 comments on commit f079d79

Please sign in to comment.