1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

wgpu: Bump to wgpu 23.0.0 and wasm-bindgen to 0.2.95

This commit is contained in:
TÖRÖK Attila
2024-10-30 16:04:19 +01:00
parent 5bfff316c9
commit 80ebaa23a8
7 changed files with 155 additions and 185 deletions

View File

@@ -313,7 +313,7 @@ impl Renderer {
label: Some("egui_pipeline"),
layout: Some(&pipeline_layout),
vertex: wgpu::VertexState {
entry_point: "vs_main",
entry_point: Some("vs_main"),
module: &module,
buffers: &[wgpu::VertexBufferLayout {
array_stride: 5 * 4,
@@ -343,12 +343,12 @@ impl Renderer {
fragment: Some(wgpu::FragmentState {
module: &module,
entry_point: if output_color_format.is_srgb() {
entry_point: Some(if output_color_format.is_srgb() {
log::warn!("Detected a linear (sRGBA aware) framebuffer {:?}. egui prefers Rgba8Unorm or Bgra8Unorm", output_color_format);
"fs_main_linear_framebuffer"
} else {
"fs_main_gamma_framebuffer" // this is what we prefer
},
}),
targets: &[Some(wgpu::ColorTargetState {
format: output_color_format,
blend: Some(wgpu::BlendState {