summaryrefslogtreecommitdiff
path: root/src/input_common/sdl/sdl_impl.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-12-18 00:36:21 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-12-18 01:21:46 -0300
commitae8d4b6c0c930178d17bb61bb17270aea133754d (patch)
tree48ffb54bd8d8d397431c2c3474b2b02b0378da90 /src/input_common/sdl/sdl_impl.cpp
parent8825b88a4589c249e9faa53f3ec90e582fa64198 (diff)
shader/memory: Implement LDG.U8 and unaligned U8 loads
LDG can load single bytes instead of full integers or packs of integers. These have the advantage of loading bytes that are not aligned to 4 bytes. To emulate these this commit gets the byte being referenced (by doing "address & 3" and then using that to extract the byte from the loaded integer: result = bitfieldExtract(loaded_integer, (address % 4) * 8, 8)
Diffstat (limited to 'src/input_common/sdl/sdl_impl.cpp')
0 files changed, 0 insertions, 0 deletions