<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/compute/texture-subscript-cuda.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-07-16T15:16:06+00:00</updated>
<entry>
<title>Fix CUDA issues with texture reads and surface writes (#7780)</title>
<updated>2025-07-16T15:16:06+00:00</updated>
<author>
<name>Mukund Keshava</name>
<email>mkeshava@nvidia.com</email>
</author>
<published>2025-07-16T15:16:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=0bc89f27b08fa7241a7be4f80c2161f25ea3bf78'/>
<id>urn:sha1:0bc89f27b08fa7241a7be4f80c2161f25ea3bf78</id>
<content type='text'>
* Fix 1D texture reads in CUDA target

Fixes #7570: 1D surface writes don't work

The issue was that the Load function for read-only textures (hlsl.meta.slang lines 3629-3656)
only supported 2D and 3D textures for CUDA targets, causing 1D texture reads to fall through
to &lt;invalid intrinsic&gt;. This affected the srcTexture[tid.x] read operation in the reproduction case.

Changes:
- Updated static_assert to include SLANG_TEXTURE_1D support
- Added tex1DArrayfetch_int&lt;T&gt; for 1D array texture reads
- Added tex1Dfetch_int&lt;T&gt; for regular 1D texture reads

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Mukund Keshava &lt;mkeshavaNV@users.noreply.github.com&gt;

* Add 1D texture read support for CUDA target

- Add tex1Dfetch_int template specializations for float2, float4, uint, uint2, uint4
- Remove TODO comment about 1D PTX not being supported
- Enable 1D texture test in texture-subscript-cuda.slang
- Fix assembly code issues in original template specializations

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Mukund Keshava &lt;mkeshavaNV@users.noreply.github.com&gt;

* Update slang-cuda-prelude.h

* Fix texture3d ptx issue

* undo 1D texture changes

* Update hlsl.meta.slang

* Update hlsl.meta.slang

* Update hlsl.meta.slang

* Update hlsl.meta.slang

* Extend texture-subscript-cuda.slang test with uint and int format variants

Add test cases for newly supported texture formats in CUDA:
- 2D textures with uint, uint2, uint4
- 2D textures with int, int2, int4
- 3D textures with uint, uint2, uint4
- 3D textures with int, int2, int4

This ensures the texture subscript operations work correctly for all
the format variants added in the CUDA texture fixes.

Co-authored-by: Mukund Keshava &lt;mkeshavaNV@users.noreply.github.com&gt;

* update expected file

---------

Co-authored-by: github-actions[bot] &lt;41898282+github-actions[bot]@users.noreply.github.com&gt;
Co-authored-by: Mukund Keshava &lt;mkeshavaNV@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>cuda: Add more formats for texture read/write (#7012)</title>
<updated>2025-05-12T05:39:41+00:00</updated>
<author>
<name>Mukund Keshava</name>
<email>mkeshava@nvidia.com</email>
</author>
<published>2025-05-12T05:39:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=03f9242489d5598c9c7594ac12e269f57a018cda'/>
<id>urn:sha1:03f9242489d5598c9c7594ac12e269f57a018cda</id>
<content type='text'>
* WiP: Add more formats for texture reads

* fix test

* format code

* add  float2/float4 versions for 1D and 3D as well

* fixed review comment

* fix review comments

---------

Co-authored-by: slangbot &lt;186143334+slangbot@users.noreply.github.com&gt;
Co-authored-by: Ellie Hermaszewska &lt;ellieh@nvidia.com&gt;</content>
</entry>
<entry>
<title>Add subscript operator support in cuda (#6830)</title>
<updated>2025-04-30T10:37:02+00:00</updated>
<author>
<name>Mukund Keshava</name>
<email>mkeshava@nvidia.com</email>
</author>
<published>2025-04-30T10:37:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=b0e150511a6a536c8ad9e74910b30ae179a10ec9'/>
<id>urn:sha1:b0e150511a6a536c8ad9e74910b30ae179a10ec9</id>
<content type='text'>
* cuda: Add support for subscript operator

This CL adds support for the subscript operator for Read Only
textures in cuda. Also adds a test for this.

Fixes #6781

* format code

* fix review comments

* format code

---------

Co-authored-by: slangbot &lt;186143334+slangbot@users.noreply.github.com&gt;
Co-authored-by: Ellie Hermaszewska &lt;ellieh@nvidia.com&gt;</content>
</entry>
</feed>
