-
Notifications
You must be signed in to change notification settings - Fork 97
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
Please ignore Raw string literals. #126
Comments
Do you mean you're adding |
This is in C++, I'm including the HLSL code as an 'h' file but with the appropriate file extension. To do that in C++ you have to have those simbols around the code..Like so... R"( #version 120 |
I get what you're trying to do, but that's pretty strange. Those aren't valid HLSL files anymore. I feel like most large/medium-scale projects precompile their shaders and load them from the filesystem. If you really want to avoid that for whatever reason, you should embed them as resources in the executable. |
@DaveHoskins can you R"(
#include "myshader"
)" By the way, the shader code you included is GLSL, but maybe that was just as an example. |
Nevermind, it's part of c++11, a feature called raw string literals. Like I said, nevermind, I'll do it another way. : ) |
Hi, I'd like to #include my shaders with my source code, unfortunately I can't put
R"( and )" around my shader because the syntax high-lighting gets completely removed.
Is there anyway it can just ignore the R"( at the start of the code?
Thanks.
The text was updated successfully, but these errors were encountered: