mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 06:44:14 +00:00
[naga spv-out] Doc fix: typo
This commit is contained in:
parent
634a97fcb8
commit
21c527a458
@ -1833,7 +1833,7 @@ impl<'w> BlockContext<'w> {
|
||||
|
||||
let index_id = match self.write_bounds_check(base, index, block)? {
|
||||
BoundsCheckResult::KnownInBounds(known_index) => {
|
||||
// Even if the index is known, `OpAccessIndex`
|
||||
// Even if the index is known, `OpAccessChain`
|
||||
// requires expression operands, not literals.
|
||||
let scalar = crate::Literal::U32(known_index);
|
||||
self.writer.get_constant_scalar(scalar)
|
||||
|
Loading…
Reference in New Issue
Block a user