shader-slang / slang

Making it easier to work with shaders
MIT License
1.81k stars 161 forks source link

`Sampler2D` crashes the compiler when targeting host #4267

Closed fknfilewalker closed 1 month ago

fknfilewalker commented 1 month ago

Things like

Sampler2D sampler;
Sampler2DArray samplerArray;

crash the compiler when targeting the host e.g., slangc.exe __.slang -o out.cpp

Texture2D texture;
Texture2DArray textureArray;

on the other hand works

Slang version 2024.1.20

csyonghe commented 1 month ago

I think we are simply missing the implementation for combined texture samplers when targeting cpp/cuda.

bmillsNV commented 1 month ago

@jkwak-work what's your estimate here? Marking for Q3 2024 for now. @fknfilewalker please let us know if there are any concerns with that milestone. Thanks!

jkwak-work commented 1 month ago

I can probably work on this next sprint.