Nabla
Nabla copied to clipboard
HLSL Shader Preprocess Bug
Describe the bug
new line after #pragma shader_stage will get removed when preprocessing the shader.
Steps to Reproduce
Just write any hlsl shader and try to compile to SPIR-V, write some important code or include some important file right after #pragma shader_stage line
observed behavior
you'll see the next line comes up right after the pragma
for example
#pragma shader_stage(vertex)
#include "common.hlsl"
will turn into
#pragma shader_stage(vertex)#include "common.hlsl"