Skip to content

Commit

Permalink
Support combined texture sampler when targeting HLSL. (#3963)
Browse files Browse the repository at this point in the history
* Support combined texture sampler when targeting HLSL.

* Fix glsl intrinsics.

* Update source/slang/slang-ir-lower-combined-texture-sampler.cpp

Co-authored-by: ArielG-NV <159081215+ArielG-NV@users.noreply.github.com>

* Update source/slang/slang-ir-lower-combined-texture-sampler.cpp

Co-authored-by: ArielG-NV <159081215+ArielG-NV@users.noreply.github.com>

* Update source/slang/slang-ir-lower-combined-texture-sampler.cpp

Co-authored-by: ArielG-NV <159081215+ArielG-NV@users.noreply.github.com>

* Fix.,

* Enhance test.

* Remove unused field.

* Fix indentation

---------

Co-authored-by: ArielG-NV <159081215+ArielG-NV@users.noreply.github.com>
  • Loading branch information
csyonghe and ArielG-NV committed Apr 18, 2024
1 parent 355a8d8 commit 5dd27a2
Show file tree
Hide file tree
Showing 14 changed files with 604 additions and 178 deletions.
2 changes: 2 additions & 0 deletions build/visual-studio/slang/slang.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ IF EXIST ..\..\..\external\slang-glslang\bin\windows-aarch64\release\slang-glsla
<ClInclude Include="..\..\..\source\slang\slang-ir-lower-bit-cast.h" />
<ClInclude Include="..\..\..\source\slang\slang-ir-lower-buffer-element-type.h" />
<ClInclude Include="..\..\..\source\slang\slang-ir-lower-com-methods.h" />
<ClInclude Include="..\..\..\source\slang\slang-ir-lower-combined-texture-sampler.h" />
<ClInclude Include="..\..\..\source\slang\slang-ir-lower-error-handling.h" />
<ClInclude Include="..\..\..\source\slang\slang-ir-lower-existential.h" />
<ClInclude Include="..\..\..\source\slang\slang-ir-lower-generic-call.h" />
Expand Down Expand Up @@ -652,6 +653,7 @@ IF EXIST ..\..\..\external\slang-glslang\bin\windows-aarch64\release\slang-glsla
<ClCompile Include="..\..\..\source\slang\slang-ir-lower-bit-cast.cpp" />
<ClCompile Include="..\..\..\source\slang\slang-ir-lower-buffer-element-type.cpp" />
<ClCompile Include="..\..\..\source\slang\slang-ir-lower-com-methods.cpp" />
<ClCompile Include="..\..\..\source\slang\slang-ir-lower-combined-texture-sampler.cpp" />
<ClCompile Include="..\..\..\source\slang\slang-ir-lower-error-handling.cpp" />
<ClCompile Include="..\..\..\source\slang\slang-ir-lower-existential.cpp" />
<ClCompile Include="..\..\..\source\slang\slang-ir-lower-generic-call.cpp" />
Expand Down
6 changes: 6 additions & 0 deletions build/visual-studio/slang/slang.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,9 @@
<ClInclude Include="..\..\..\source\slang\slang-ir-lower-com-methods.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\source\slang\slang-ir-lower-combined-texture-sampler.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="..\..\..\source\slang\slang-ir-lower-error-handling.h">
<Filter>Header Files</Filter>
</ClInclude>
Expand Down Expand Up @@ -1040,6 +1043,9 @@
<ClCompile Include="..\..\..\source\slang\slang-ir-lower-com-methods.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\source\slang\slang-ir-lower-combined-texture-sampler.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="..\..\..\source\slang\slang-ir-lower-error-handling.cpp">
<Filter>Source Files</Filter>
</ClCompile>
Expand Down
Loading

0 comments on commit 5dd27a2

Please sign in to comment.