[naga spv-out] Doc fix: typo

This commit is contained in:
Jim Blandy 2024-09-30 16:39:49 -07:00
parent 634a97fcb8
commit 21c527a458

View File

@ -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)