Mark inputs read-only with const - GPU Programming | Zoonk
Mark inputs read-only with const
Mark function inputs as `const` when they should not be changed. Use const-correct parameters to make read-only data clear and catch accidental writes at compile time.