Skip to content
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

HLSL Shader Preprocess Bug #746

Open
Erfan-Ahmadi opened this issue Sep 27, 2024 · 0 comments
Open

HLSL Shader Preprocess Bug #746

Erfan-Ahmadi opened this issue Sep 27, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Erfan-Ahmadi
Copy link
Contributor

Erfan-Ahmadi commented Sep 27, 2024

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 Erfan-Ahmadi added the bug Something isn't working label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants