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

Parse error from GLSL compute shader #22

Closed
demotomohiro opened this issue Mar 12, 2020 · 1 comment
Closed

Parse error from GLSL compute shader #22

demotomohiro opened this issue Mar 12, 2020 · 1 comment

Comments

@demotomohiro
Copy link

I got Parse error from following GLSL compute shader.

test.cs:

#version 450

layout(local_size_x = 32) in;

void main(){
}

Output:

Parse error: Error in test.cs: Ln: 3 Col: 29
layout(local_size_x = 32) in;
                            ^
Expecting: Type qualifier, identifier, 'layout' or 'struct'

   場所 Parse.ParseImpl.runParser@347.Invoke(String message)
   場所 Microsoft.FSharp.Core.PrintfImpl.go@523-3[b,c,d](String fmt, Int32 len, FSharpFunc`2 outputChar, FSharpFunc`2 outa, b os
,
FSharpFunc`2 finalize, FSharpList`1 args, Int32 i)
   場所 Microsoft.FSharp.Core.PrintfImpl.run@521[b,c,d](FSharpFunc`2 initialize, String fmt, Int32 len, FSharpList`1 args)
   場所 <StartupCode$FSharp-Core>.$Reflect.Invoke@720-4.Invoke(T1 inp)
   場所 main.minify(String filename, String content)
   場所 main.run(String[] files)
@laurentlb
Copy link
Owner

Workaround: add verbatim markers.

//[
layout(local_size_x = 32) in;
//]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants