hlsl-to-ispc icon indicating copy to clipboard operation
hlsl-to-ispc copied to clipboard

Support for Texture Sampling

Open zigguratvertigo opened this issue 8 years ago • 1 comments

Ability to sample textures as close as possible to this.

zigguratvertigo avatar Jul 01 '17 05:07 zigguratvertigo

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

zigguratvertigo avatar Jul 01 '17 20:07 zigguratvertigo