<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/reflection/sample-index-input.hlsl, branch master</title>
<subtitle>Making it easier to work with shaders</subtitle>
<id>https://git.yummers.dev/slang.git/atom?h=master</id>
<link rel='self' href='https://git.yummers.dev/slang.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/'/>
<updated>2022-05-18T17:57:37+00:00</updated>
<entry>
<title>Support for querying which parameters are used in emitted code (#2239)</title>
<updated>2022-05-18T17:57:37+00:00</updated>
<author>
<name>Alexey Panteleev</name>
<email>alpanteleev@nvidia.com</email>
</author>
<published>2022-05-18T17:57:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=69cb6e8f300d77e74bd2c7dfe15d12e10b38f512'/>
<id>urn:sha1:69cb6e8f300d77e74bd2c7dfe15d12e10b38f512</id>
<content type='text'>
See https://github.com/shader-slang/slang/issues/2213 </content>
</entry>
<entry>
<title>Add sample-rate-input detection for HLSL. (#312)</title>
<updated>2017-12-15T22:26:58+00:00</updated>
<author>
<name>Tim Foley</name>
<email>tfoleyNV@users.noreply.github.com</email>
</author>
<published>2017-12-15T22:26:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=46b68ed41daecfaf1761e299cf040156e0f65ac0'/>
<id>urn:sha1:46b68ed41daecfaf1761e299cf040156e0f65ac0</id>
<content type='text'>
* Add sample-rate-input detection for HLSL.

In the HLSL case, it is possible to do this detection entirely based on declared signatures (it doesn't have a dependency on code generation like the GLSL case does). I've added test cases for the two main ways that a shader can become sample rate:

1. Qualify a fragment input with `sample`
2. Accept an input with the `SV_SampleIndex` semantic

In each case I nested the input inside a `struct` to try to match common HLSL idiom, and to make sure that we handle the nested case.

This code is *not* robust against shaders that declare such an input and then never use it, but that is to be expected given the goals for Slang.

* Fixup: add missing test output files
</content>
</entry>
</feed>
