You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exports[`viteSlang > throws if entrypoints are not defined 1`] = `
165
-
[Error: [31m[vite-slang] An entrypoint must be defined with a shader stage attribute! Try adding [shader("fragment")] before your entrypoint method.[39m
166
-
file: [36mshader.slang[39m]
326
+
"[31m[vite-slang] An entrypoint must be defined with a shader stage attribute! Try adding [shader("fragment")] before your entrypoint method.[39m
327
+
"
167
328
`;
168
329
169
330
exports[`viteSlang > throws on shader compilation error 1`] = `
170
-
[Error: [31m[vite-slang] USER error: shader.slang(5): error 30015: undefined identifier 'error'.
171
-
error;
172
-
^~~~~
331
+
"[31m[vite-slang] USER error: C:/Users/Cody Bennett/Documents/GitHub/vite-slang/tests/shaders/broken.slang(4): error 30015: undefined identifier 'error'.
332
+
error;
333
+
^~~~~
334
+
(0): error 39999: import of module 'shader' failed because of a compilation error
exports[`viteSlang > throws on unresolved #include directive 1`] = `
342
+
"[31m[vite-slang] USER error: C:/Users/Cody Bennett/Documents/GitHub/vite-slang/tests/shaders/include-error.slang(4): error 15300: failed to find include file 'include-2.slang'
343
+
#include "include-2.slang"
344
+
^~~~~~~~~~~~~~~~~
173
345
(0): error 39999: import of module 'shader' failed because of a compilation error
0 commit comments