HLSL: add standard sample position return form of GetSamplePosition method
authorsteve-lunarg <steve_gh@khasekhemwy.net>
Wed, 26 Apr 2017 14:31:56 +0000 (08:31 -0600)
committersteve-lunarg <steve_gh@khasekhemwy.net>
Wed, 26 Apr 2017 14:31:56 +0000 (08:31 -0600)
commitd4d0b29752c173d2aa8d2d105f2f1844676bc165
tree928745b69afbd677864e7e8fbc9a584aac08488e
parenta1cdd13b1c148c42f225bf0544ea1d2b1f48d7d2
HLSL: add standard sample position return form of GetSamplePosition method

Multisample textures support a GetSamplePosition() method intended to query
positions given a sample index.  This cannot be truly implemented in SPIR-V,
but #753 requested returning standard positions for the 1..16 cases, which
this PR adds.  Anything besides that returns (0,0).  If the standard positions
are not used, this will be wrong.

This should be revisited when there is a real query available.
Test/baseResults/hlsl.getsampleposition.dx10.frag.out
Test/hlsl.getsampleposition.dx10.frag
hlsl/hlslParseHelper.cpp
hlsl/hlslParseHelper.h