Skip to content

Commit

Permalink
update wgpu
Browse files Browse the repository at this point in the history
  • Loading branch information
ScanMountGoat committed Oct 30, 2024
1 parent 9dbcb10 commit 538f10a
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"

[dependencies]
winit = "0.30"
wgpu = "22.0.0"
wgpu = "23.0.0"
futures = "0.3"
bytemuck = { version = "1.16", features = ["derive"] }
encase = { version = "0.9.0", features = ["glam"] }
Expand Down
2 changes: 1 addition & 1 deletion example/src/compute_shader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub mod compute {
label: Some("Compute Pipeline main"),
layout: Some(&layout),
module: &module,
entry_point: "main",
entry_point: Some("main"),
compilation_options: Default::default(),
cache: Default::default(),
})
Expand Down
4 changes: 2 additions & 2 deletions example/src/shader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ pub fn vertex_state<'a, const N: usize>(
) -> wgpu::VertexState<'a> {
wgpu::VertexState {
module,
entry_point: entry.entry_point,
entry_point: Some(entry.entry_point),
buffers: &entry.buffers,
compilation_options: wgpu::PipelineCompilationOptions {
constants: &entry.constants,
Expand Down Expand Up @@ -233,7 +233,7 @@ pub fn fragment_state<'a, const N: usize>(
) -> wgpu::FragmentState<'a> {
wgpu::FragmentState {
module,
entry_point: entry.entry_point,
entry_point: Some(entry.entry_point),
targets: &entry.targets,
compilation_options: wgpu::PipelineCompilationOptions {
constants: &entry.constants,
Expand Down
4 changes: 2 additions & 2 deletions wgsl_to_wgpu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ readme = "../README.md"
edition = "2021"

[dependencies]
naga = { version = "22.0.0", features = ["wgsl-in"] }
wgpu-types = "22.0.0"
naga = { version = "23.0.0", features = ["wgsl-in"] }
wgpu-types = "23.0.0"
syn = "2.0"
quote = "1.0"
proc-macro2 = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion wgsl_to_wgpu/src/data/fragment_simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub fn fragment_state<'a, const N: usize>(
) -> wgpu::FragmentState<'a> {
wgpu::FragmentState {
module,
entry_point: entry.entry_point,
entry_point: Some(entry.entry_point),
targets: &entry.targets,
compilation_options: wgpu::PipelineCompilationOptions {
constants: &entry.constants,
Expand Down
2 changes: 1 addition & 1 deletion wgsl_to_wgpu/src/data/fragment_simple_rustfmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub fn fragment_state<'a, const N: usize>(
) -> wgpu::FragmentState<'a> {
wgpu::FragmentState {
module,
entry_point: entry.entry_point,
entry_point: Some(entry.entry_point),
targets: &entry.targets,
compilation_options: wgpu::PipelineCompilationOptions {
constants: &entry.constants,
Expand Down
8 changes: 4 additions & 4 deletions wgsl_to_wgpu/src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ pub fn vertex_states(module: &naga::Module) -> TokenStream {
) -> wgpu::VertexState<'a> {
wgpu::VertexState {
module,
entry_point: entry.entry_point,
entry_point: Some(entry.entry_point),
buffers: &entry.buffers,
compilation_options: wgpu::PipelineCompilationOptions {
constants: &entry.constants,
Expand Down Expand Up @@ -268,7 +268,7 @@ pub fn fragment_states(module: &naga::Module) -> TokenStream {
) -> wgpu::FragmentState<'a> {
wgpu::FragmentState {
module,
entry_point: entry.entry_point,
entry_point: Some(entry.entry_point),
targets: &entry.targets,
compilation_options: wgpu::PipelineCompilationOptions {
constants: &entry.constants,
Expand Down Expand Up @@ -345,7 +345,7 @@ mod test {
) -> wgpu::FragmentState<'a> {
wgpu::FragmentState {
module,
entry_point: entry.entry_point,
entry_point: Some(entry.entry_point),
targets: &entry.targets,
compilation_options: wgpu::PipelineCompilationOptions {
constants: &entry.constants,
Expand Down Expand Up @@ -421,7 +421,7 @@ mod test {
) -> wgpu::FragmentState<'a> {
wgpu::FragmentState {
module,
entry_point: entry.entry_point,
entry_point: Some(entry.entry_point),
targets: &entry.targets,
compilation_options: wgpu::PipelineCompilationOptions {
constants: &entry.constants,
Expand Down
8 changes: 4 additions & 4 deletions wgsl_to_wgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ fn create_compute_pipeline(e: &naga::EntryPoint) -> TokenStream {
label: Some(#label),
layout: Some(&layout),
module: &module,
entry_point: #entry_point,
entry_point: Some(#entry_point),
compilation_options: Default::default(),
cache: Default::default(),
})
Expand Down Expand Up @@ -486,7 +486,7 @@ mod test {
) -> wgpu::FragmentState<'a> {
wgpu::FragmentState {
module,
entry_point: entry.entry_point,
entry_point: Some(entry.entry_point),
targets: &entry.targets,
compilation_options: wgpu::PipelineCompilationOptions {
constants: &entry.constants,
Expand Down Expand Up @@ -893,7 +893,7 @@ mod test {
label: Some("Compute Pipeline main1"),
layout: Some(&layout),
module: &module,
entry_point: "main1",
entry_point: Some("main1"),
compilation_options: Default::default(),
cache: Default::default(),
},
Expand All @@ -909,7 +909,7 @@ mod test {
label: Some("Compute Pipeline main2"),
layout: Some(&layout),
module: &module,
entry_point: "main2",
entry_point: Some("main2"),
compilation_options: Default::default(),
cache: Default::default(),
},
Expand Down
2 changes: 1 addition & 1 deletion wgsl_to_wgpu/tests/output/vertex_entries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub fn vertex_state<'a, const N: usize>(
) -> wgpu::VertexState<'a> {
wgpu::VertexState {
module,
entry_point: entry.entry_point,
entry_point: Some(entry.entry_point),
buffers: &entry.buffers,
compilation_options: wgpu::PipelineCompilationOptions {
constants: &entry.constants,
Expand Down

0 comments on commit 538f10a

Please sign in to comment.