Skip to content

Commit 59ecc2e

Browse files
committed
[passthrough] Add back conversion to ShaderModuleDescriptor
Needed for trace
1 parent 57c3343 commit 59ecc2e

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

wgpu-core/src/device/global.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,20 @@ impl Global {
965965
let data = trace.make_binary(desc.trace_binary_ext(), desc.trace_data());
966966
trace.add(trace::Action::CreateShaderModule {
967967
id: fid.id(),
968-
desc: desc.clone().into(),
968+
desc: match desc {
969+
pipeline::ShaderModuleDescriptorPassthrough::SpirV(inner) => {
970+
pipeline::ShaderModuleDescriptor {
971+
label: inner.label.clone(),
972+
runtime_checks: wgt::ShaderRuntimeChecks::unchecked(),
973+
}
974+
}
975+
pipeline::ShaderModuleDescriptorPassthrough::Msl(inner) => {
976+
pipeline::ShaderModuleDescriptor {
977+
label: inner.label.clone(),
978+
runtime_checks: wgt::ShaderRuntimeChecks::unchecked(),
979+
}
980+
}
981+
},
969982
data,
970983
});
971984
};

0 commit comments

Comments
 (0)