Skip to content

Commit

Permalink
HLSL: add standard sample position return form of GetSamplePosition m…
Browse files Browse the repository at this point in the history
…ethod

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.
  • Loading branch information
steve-lunarg committed Apr 26, 2017
1 parent a1cdd13 commit d4d0b29
Show file tree
Hide file tree
Showing 4 changed files with 935 additions and 36 deletions.

0 comments on commit d4d0b29

Please sign in to comment.