Nabla icon indicating copy to clipboard operation
Nabla copied to clipboard

HLSL Shader Preprocess Bug

Open Erfan-Ahmadi opened this issue 1 year ago • 0 comments

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"

Erfan-Ahmadi avatar Sep 27 '24 13:09 Erfan-Ahmadi