<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/cross-compile/barriers.slang, 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>2023-08-30T18:45:47+00:00</updated>
<entry>
<title>Fix memory barrier intrinsics. (#3166)</title>
<updated>2023-08-30T18:45:47+00:00</updated>
<author>
<name>Yong He</name>
<email>yonghe@outlook.com</email>
</author>
<published>2023-08-30T18:45:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=bb15f5b494b20e957127f0ffa6040c94349da0d0'/>
<id>urn:sha1:bb15f5b494b20e957127f0ffa6040c94349da0d0</id>
<content type='text'>
* Fix memory barrier intrinsics.

Makes them produce the same spirv code as dxc.

* Fix.

* filecheck barrier test for spirv backend.

* Fix glsl intrinsic definition.

* Fix intrinsics.

* Fix intrinsics.

* Fix.

* Fix.

---------

Co-authored-by: Yong He &lt;yhe@nvidia.com&gt;</content>
</entry>
<entry>
<title>Add Vulkan translations for HLSL barrier operations (#737)</title>
<updated>2018-12-03T22:57:19+00:00</updated>
<author>
<name>Tim Foley</name>
<email>tfoleyNV@users.noreply.github.com</email>
</author>
<published>2018-12-03T22:57:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=d161d97681937f0546eb8835cf9e497cb1b4369c'/>
<id>urn:sha1:d161d97681937f0546eb8835cf9e497cb1b4369c</id>
<content type='text'>
Fixes #730

The most basic of these already had translations added, and the Slang approach to cross-compilation made adding the new ones almost trivial. I also took the time to confirm that using "operator comma" for the sequencing (since the single HLSL function call needs to expand to a sequence of GLSL function calls) works fine with glslang.

I added a test case to confirm that all of these operations can compile down to SPIR-V.

I am not personally confident that these translations are perfect, but they are based on what was [linked](https://anteru.net/blog/2016/mapping-between-hlsl-and-glsl/index.html) from #730. The one difference is where that blog post was listing `memoryBarrierImage, memoryBarrierImage` I assumed they meant `memoryBarrierImage, memoryBarrierBuffer`.</content>
</entry>
</feed>
