summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2015-11-12 13:02:05 -0800
committerKenneth Graunke <[email protected]>2015-11-13 16:09:58 -0800
commit511de1a80cedc0add386dad79cce56dd68d2f611 (patch)
treed95816e408fc226f705d7a6b65891532487add11 /src/mesa/main
parenta4ba476c30ebcb99694c6167ac9b8af9414cb656 (diff)
glsl: Allow implicit int -> uint conversions for the % operator.
GLSL 4.00 and GL_ARB_gpu_shader5 introduced a new int -> uint implicit conversion rule and updated the rules for modulus to use them. (In earlier languages, none of the implicit conversion rules did anything relevant, so there was no point in applying them.) This allows expressions such as: int foo; uint bar; uint mod = foo % bar; Cc: [email protected] Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main')
0 files changed, 0 insertions, 0 deletions