bkaradzic / bgfx

Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.
https://bkaradzic.github.io/bgfx/overview.html
BSD 2-Clause "Simplified" License
15.14k stars 1.95k forks source link

es3.x shader - compiling issue #1872

Open anchor76 opened 5 years ago

anchor76 commented 5 years ago

hello,

i'm trying to compile es3.x shader with sampler2dArray support. its not supported in the core es2.x api, but its part of es3.x.

line from my shader: SAMPLER2DARRAY(s_albedo, 0);

the error:

394: uniform sampler2DArray s_albedo;
24:                        ^
Error: (394,24): error: syntax error, unexpected NEW_IDENTIFIER, expecting '{'

Failed to build shader.

is es3.x supported by shaderc? (my bgfx code base is from april)

_edit: the command line option is -> shaderc.exe -f fs_terrain_new.sc -o essl/fs_terrainnew.bin --type f --platform android

bkaradzic commented 5 years ago

It should be handled by shaderc, I'll take a look.