summaryrefslogtreecommitdiffstats
path: root/wgpu/src/triangle.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-11-05 13:32:14 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-11-05 13:32:14 +0100
commitebc4e17ba853616326bd3957e75c3e8053b96513 (patch)
tree60e05ccb6f4636e2b1c265444da260b9dafb146c /wgpu/src/triangle.rs
parent50340b4b433abc7461400ce908ab644ab49aee74 (diff)
downloadiced-ebc4e17ba853616326bd3957e75c3e8053b96513.tar.gz
iced-ebc4e17ba853616326bd3957e75c3e8053b96513.tar.bz2
iced-ebc4e17ba853616326bd3957e75c3e8053b96513.zip
Update `wgpu` to `23.0`
Diffstat (limited to '')
-rw-r--r--wgpu/src/triangle.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/wgpu/src/triangle.rs b/wgpu/src/triangle.rs
index fb858c10..b865047e 100644
--- a/wgpu/src/triangle.rs
+++ b/wgpu/src/triangle.rs
@@ -753,7 +753,7 @@ mod solid {
layout: Some(&layout),
vertex: wgpu::VertexState {
module: &shader,
- entry_point: "solid_vs_main",
+ entry_point: Some("solid_vs_main"),
buffers: &[wgpu::VertexBufferLayout {
array_stride: std::mem::size_of::<
mesh::SolidVertex2D,
@@ -773,7 +773,7 @@ mod solid {
},
fragment: Some(wgpu::FragmentState {
module: &shader,
- entry_point: "solid_fs_main",
+ entry_point: Some("solid_fs_main"),
targets: &[Some(triangle::fragment_target(format))],
compilation_options:
wgpu::PipelineCompilationOptions::default(),
@@ -926,7 +926,7 @@ mod gradient {
layout: Some(&layout),
vertex: wgpu::VertexState {
module: &shader,
- entry_point: "gradient_vs_main",
+ entry_point: Some("gradient_vs_main"),
buffers: &[wgpu::VertexBufferLayout {
array_stride: std::mem::size_of::<
mesh::GradientVertex2D,
@@ -955,7 +955,7 @@ mod gradient {
},
fragment: Some(wgpu::FragmentState {
module: &shader,
- entry_point: "gradient_fs_main",
+ entry_point: Some("gradient_fs_main"),
targets: &[Some(triangle::fragment_target(format))],
compilation_options:
wgpu::PipelineCompilationOptions::default(),