hlsl-to-ispc
hlsl-to-ispc copied to clipboard
Support for Texture Sampling
Added basic texture sampling support in this changelist:
- Since we can't create member functions in ISPC (i.e.: Texture2D.Sample(...)), texture sampling is encapsulated in SampleTexture2D(...)
- Support for Wrap, Clamp, Mirror and Border adressing modes
- Currently only supporting point sampling for texture filtering
- Tested a variety of combinations. Example to be provided in separate submit