mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 08:21:25 +01:00
Update wgpu, use defaults for rasterizer states, use depth-clamping
This commit is contained in:
1 parent
25b5fb01dc
commit
b76e560432
11 files changed
+21
-34
No files matched your search
@@ -586,11 +586,12 @@ impl crate::Context for Context {
|
||||
source: ShaderModuleSource,
|
||||
) -> Self::ShaderModuleId {
|
||||
let desc = match source {
|
||||
ShaderModuleSource::SpirV(ref spv) => wgc::pipeline::ShaderModuleSource::SpirV(spv),
|
||||
ShaderModuleSource::Wgsl(ref code) => wgc::pipeline::ShaderModuleSource::Wgsl(code),
|
||||
ShaderModuleSource::SpirV(spv) => wgc::pipeline::ShaderModuleSource::SpirV(spv),
|
||||
ShaderModuleSource::Wgsl(code) => wgc::pipeline::ShaderModuleSource::Wgsl(code),
|
||||
};
|
||||
let global = &self.0;
|
||||
wgc::gfx_select!(*device => global.device_create_shader_module(*device, desc, PhantomData))
|
||||
.unwrap()
|
||||
}
|
||||
|
||||
fn device_create_bind_group_layout(
|
||||
|
||||
Reference in new issue
Block a user