HLSL: cast non-int types to uint on Load/Store indexes
Some texture and SB operations can take non-integer indexes, which should be
cast to integers before use if they are not already. This adds makeIntegerIndex()
for the purpose. Int types are left alone.
(This was done before for operator[], but needs to apply to some other things
too, hence its extraction into common function now)
Showing
This diff is collapsed.
Click to expand it.
Test/hlsl.structbuffer.floatidx.comp
0 → 100644
Please
register
or
sign in
to comment