<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/bugs/gh-3429.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>2025-05-31T00:16:59+00:00</updated>
<entry>
<title>Add check for the variable requirement (#6677)</title>
<updated>2025-05-31T00:16:59+00:00</updated>
<author>
<name>Gangzheng Tong</name>
<email>tonggangzheng@gmail.com</email>
</author>
<published>2025-05-31T00:16:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=da5cf478c6be06c9e6c20917a7d472cbdcb624e3'/>
<id>urn:sha1:da5cf478c6be06c9e6c20917a7d472cbdcb624e3</id>
<content type='text'>
* Add check for the variable requirement

This change adds the capability check for the variables requirement.
With this check, the shader
```
[require(cpp_cuda_glsl_hlsl_metal_spirv)]
Buffer&lt;float&gt; InputTyped;
[require(cpp_cuda_glsl_hlsl_metal_spirv)]
RWBuffer&lt;float&gt; OutputTyped;
```
will issue error if targeting to WSGL
e.g. `.\build\Debug\bin\slangc .\tests\wgsl_no_buffer.slang -o
wgsl_no_buffer.txt -target wgsl -entry Main -stage compute`

.\tests\wgsl_no_buffer.slang(2): error 36108: 'InputTyped' has dependencies that are not compatible on the required target 'wgsl'.
Buffer&lt;float&gt; InputTyped;
              ^~~~~~~~~~
.\tests\wgsl_no_buffer.slang(4): error 36108: 'OutputTyped' has dependencies that are not compatible on the required target 'wgsl'.
RWBuffer&lt;float&gt; OutputTyped;
                ^~~~~~~~~~~

Fixes #6304

* Add var capability tests

* Do capability checks for global var only

* Add inferredCapabilityRequirements to var capability check

* Add requirement to the intrinsic types Buffer/RWBuffer

* format code

* Update capabliity test

* use DefaultDataLayout as default data layout

* Use visitMemberExpr to check the capabilities

* Update the cap tests to match the error messages

* update test to use the ScalarDataLayout for hlsl target

* Update tests check condition to use error number only

* Add default push_constant data layout type

---------

Co-authored-by: slangbot &lt;186143334+slangbot@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>Initial pass to add capability declarations to stdlib intrinsics. (#3912)</title>
<updated>2024-04-20T03:18:40+00:00</updated>
<author>
<name>ArielG-NV</name>
<email>159081215+ArielG-NV@users.noreply.github.com</email>
</author>
<published>2024-04-20T03:18:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=f9bcad35562c1f08638e6d3eb397d370d7d2f8f8'/>
<id>urn:sha1:f9bcad35562c1f08638e6d3eb397d370d7d2f8f8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix funcs w/ buffer load being treated as readnone. (#3441)</title>
<updated>2024-01-09T20:41:07+00:00</updated>
<author>
<name>Yong He</name>
<email>yonghe@outlook.com</email>
</author>
<published>2024-01-09T20:41:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=8dd04c8730327d7dc2fd29b43b8566fabbc3aa2c'/>
<id>urn:sha1:8dd04c8730327d7dc2fd29b43b8566fabbc3aa2c</id>
<content type='text'>
Co-authored-by: Yong He &lt;yhe@nvidia.com&gt;</content>
</entry>
</feed>
