-
Notifications
You must be signed in to change notification settings - Fork 466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Texture2DMS isn't recognized by the slang #74
Comments
Thanks for reporting this. I’ll look into it. |
I think the issue here is that Slang does not support passing an explicit sample count to the Texture2DMS<float4, 2> gTexture; I get an error from the Slang compiler:
While that error message isn't great, it is accurate because the Slang compiler only expects a single argument for the Texture2DMS<float4> gTexture; I find that the shader compiles without error to DXBC for Shader Model 5.0, and in my stand-alone testing the reflection info I get back appears to be valid. Can you confirm what version of Falcor you are using, and perhaps share a minimal example that reproduces the problem? |
I passed slangFlags |= SLANG_COMPILE_FLAG_NO_CHECKING as the compile flag, so I don't get that error. My version is 3.0. |
I encounter an error:
my shader code is like this:
Texture2DMS<float4,2> s_texture_0 : register(t0);
in c++ code its kind is NULL
ReflectionType::SharedPtr reflectType(TypeLayoutReflection* pSlangType, const ReflectionPath* pPath)
{
auto kind = pSlangType->getType()->getKind();
The text was updated successfully, but these errors were encountered: