<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/compute/select-expr.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-07T19:57:48+00:00</updated>
<entry>
<title>IR: support for select and negate (#257)</title>
<updated>2017-11-07T19:57:48+00:00</updated>
<author>
<name>Tim Foley</name>
<email>tfoleyNV@users.noreply.github.com</email>
</author>
<published>2017-11-07T19:57:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=d1b45f3059e100d096327eb178c1bac365e564f1'/>
<id>urn:sha1:d1b45f3059e100d096327eb178c1bac365e564f1</id>
<content type='text'>
- During IR emit, treat a "select" expression (`?:` operator) like any other `InvokeExpr`, since it will have an `__intrinsic_op` modifier attached to turn it into a `select` instruction.

- During HLSL/GLSL emit from IR, turn a `select` instruction into a `?:` expression

- Also add support for the `neg` instruction during HLSL/GLSL emit

Note that right now we are assuming HLSL semantics for `?:` where it does not short-circuit. Correctly handling the GLSL case would require going back to special-case codegen for `SelectExpr`, but we can cross that bridge when we come to it.</content>
</entry>
</feed>
