<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/compute/discard-stmt.slang.expected.txt, 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>2017-11-08T00:47:36+00:00</updated>
<entry>
<title>IR: add support for `discard` statement (#261)</title>
<updated>2017-11-08T00:47:36+00:00</updated>
<author>
<name>Tim Foley</name>
<email>tfoleyNV@users.noreply.github.com</email>
</author>
<published>2017-11-08T00:47:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=a5dfa5cd2bfa11fb3d9e84877f8dead1815e9077'/>
<id>urn:sha1:a5dfa5cd2bfa11fb3d9e84877f8dead1815e9077</id>
<content type='text'>
- Add definition of `discard` instruction
  - A `discard` is a terminator instruction, just like `returnVoid`

- Lower `DiscardStmt` in AST to a `discard` instruction in the IR

- Emit `discard` instruction as a `discard;` statement when emitting HLSL/GLSL

- Add a test case using the "graphics compute" mode that tests discard. The test writes to one entry in a UAV before doing a conditional (always true at runtime) discard, and then writes to another entry; we expect to see the results of the first write, but not the second.</content>
</entry>
</feed>
