Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bumping wgpu from 0.14.2 to 0.15.1 #168

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reverting last commit and correctly remove redefinition
The last commit removed the MeshMetadata shader code from a shader which
was used as a header and broke other code. This commit readds it to the
header shader and removes it from the actual offending shader with a
double definition.
  • Loading branch information
jpteb committed Feb 24, 2023
commit 0758deb60be68323a9a0e8eeb08fc2c7561e174e
1 change: 0 additions & 1 deletion crates/renderer/src/collect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ impl RendererCollect {
"collect",
&[
get_defs_module(assets),
get_mesh_buffer_types(),
get_resources_module(),
GpuWorldShaderModuleKey { read_only: true }.get(assets),
ShaderModule::new(
Expand Down
2 changes: 1 addition & 1 deletion crates/renderer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ pub fn get_defs_module(_: &AssetCache) -> ShaderModule {
[("PI", PI)]
.iter()
.map(|(k, v)| format!("const {k}: f32 = {v};\n"))
.chain([wgsl_interpolate(), include_file!("polyfill.wgsl")])
.chain([wgsl_interpolate(), include_file!("polyfill.wgsl"), MESH_BUFFER_TYPES_WGSL.to_string()])
.collect::<String>(),
)
}
Expand Down