-
Notifications
You must be signed in to change notification settings - Fork 69
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
Error compiling shader file "RayTrace.hlsl" ,error : 'sampler.hlsl' not found #5
Comments
So all of the shaders are supposed to be compiled with an include directory that points to |
I also got this error, but the path "expandedFrameworkShaderDir" looks like right ... |
@TheRealMJP I figured out this shader issue. However, I did not get any detailed error messege about where is the mistake ... |
Hi, I also met this issue. Removing the following two comments worked for me. https://github.com/TheRealMJP/DXRPathTracer/blob/master/SampleFramework12/v1.02/Shaders/Sampling.hlsl#L24 |
Thank you so much , I will try it tomorrow, have a nice day! |
Hey everyone, did removing those comments work for you? It's really strange that those comments caused DXC to fail to find the include, but I guess I've seen stranger things. If that fix works I'll make the change and submit it. |
Yes, the error message is confusing. The problem was what looks like '^' character there doesn't seem to be a "valid" character in Japanese / Chinese settings. I think it is a UTF issue. |
Yes, the solution of masahi works for me well. The language of my VS2017 I setup to English, and my computer language is korean, but I'm chinese student ....... Does codes of note part (green color) in shader are compiled ? |
Ok, I just submitted a change to remove the comments that seemed to be causing the issue. Thank you everyone that helped track this down! I'll close this for now, but let me know if you're still having this problem after pulling latest. |
I cloned repo and just build&run DXRPathTracer.sln
However, It could not find the include path and it did not work properly.
how to run this?
The text was updated successfully, but these errors were encountered: