mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-02-16 17:02:32 +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)? {
|
let index_id = match self.write_bounds_check(base, index, block)? {
|
||||||
BoundsCheckResult::KnownInBounds(known_index) => {
|
BoundsCheckResult::KnownInBounds(known_index) => {
|
||||||
// Even if the index is known, `OpAccessIndex`
|
// Even if the index is known, `OpAccessChain`
|
||||||
// requires expression operands, not literals.
|
// requires expression operands, not literals.
|
||||||
let scalar = crate::Literal::U32(known_index);
|
let scalar = crate::Literal::U32(known_index);
|
||||||
self.writer.get_constant_scalar(scalar)
|
self.writer.get_constant_scalar(scalar)
|
||||||
|
Loading…
Reference in New Issue
Block a user