Skip to content

Commit 7235d9f

Browse files
committed
Added comment/explanation
1 parent f5c6d27 commit 7235d9f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

wgpu-hal/src/gles/device.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,9 @@ impl super::Device {
507507
for item in stage_items {
508508
let source = &shaders[stage_idx].1.module.source;
509509
let super::ShaderModuleSource::Naga(naga_module) = source else {
510-
todo!();
510+
// ImmediateItem can only be constructed given a naga module, as it requires a type handle.
511+
// Passthrough shaders will have immediates_items empty
512+
unreachable!();
511513
};
512514
let type_inner = &naga_module.module.types[item.ty].inner;
513515

0 commit comments

Comments
 (0)