MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

SoltanGris42
MAME Fan
Reged: 11/16/13
Posts: 134
Send PM
Re: GLSL Shader compile errors.
06/12/15 08:50 PM


> I've been banging my head on this one for a while now.
>
> Error:
> "error C0000: syntax error, unexpected $end, expecting "::" at token ""
>
> I get this seemingly at random after a edit of a shader file. The shader would have
> been working perfectly fine (and works fine still in another program), yet, change a
> number and Bam, error in similar vein to this one.
>
> Often the only solution is to re-write that particular section exactly the same as it
> was. Just... re-written... Again.
>
> I don't know my way around Mame very well. So i can't really fix it myself (And I'm
> not skilled enough), but I did turn up this Stack link if someone would like to have
> a look;
>
> That seems to be what I'm seeing in the Mame source, but no idea how to go about
> fixing it.
>
> Cheers!


When I was first trying to get Timothy Lottes's CRT shader working, I found there was a maximum length of shader that would be parsed. It was the file length I think. Not just the shader code. So even comments counted. Not sure about white space. If MAME is outputting the shader it doesn't like to the command window (it used to do that I think), then you might see that it was truncated before the end.

You could be just a few characters away from the limit. I was and I just wasn't realizing that the real difference between working and not working was whether the last " } " was being compiled. So I thought the error was something else.







Entire thread
Subject Posted by Posted on
* GLSL Shader compile errors. Luke Nukem 06/12/15 01:40 PM
. * Re: GLSL Shader compile errors. SoltanGris42  06/12/15 08:50 PM
. * Re: GLSL Shader compile errors. Luke Nukem  06/12/15 10:19 PM
. * Re: GLSL Shader compile errors. SoltanGris42  06/12/15 11:43 PM
. * Re: GLSL Shader compile errors. Luke Nukem  06/13/15 12:06 AM
. * Re: GLSL Shader compile errors. SoltanGris42  06/13/15 12:46 AM
. * Re: GLSL Shader compile errors. Ville Linde  06/13/15 07:57 PM
. * Re: GLSL Shader compile errors. R. Belmont  06/13/15 08:34 PM
. * Re: GLSL Shader compile errors. joey35car  06/15/15 12:23 AM
. * Re: GLSL Shader compile errors. B2K24  06/15/15 02:02 AM
. * Re: GLSL Shader compile errors. SoltanGris42  06/15/15 03:13 AM
. * Re: GLSL Shader compile errors. Vas Crabb  06/15/15 04:39 AM
. * Re: GLSL Shader compile errors. Luke Nukem  06/15/15 05:21 AM
. * Re: GLSL Shader compile errors. Dullaron  06/15/15 06:35 AM
. * Re: GLSL Shader compile errors. Luke Nukem  06/15/15 07:20 AM
. * Re: GLSL Shader compile errors. uman  06/15/15 01:55 PM
. * To uman Dullaron  06/16/15 07:04 AM
. * Re: To uman uman  06/16/15 11:08 AM
. * Re: To uman Dullaron  06/16/15 08:04 PM
. * Re: To uman uman  06/16/15 08:41 PM
. * Re: To uman Dullaron  06/16/15 08:47 PM
. * Re: To uman uman  10/01/15 05:55 PM
. * Re: To uman Dullaron  10/02/15 04:22 AM
. * Re: GLSL Shader compile errors. Luke Nukem  06/15/15 10:18 PM
. * Re: GLSL Shader compile errors. joey35car  06/15/15 05:13 AM
. * Re: GLSL Shader compile errors. B2K24  06/15/15 04:31 AM
. * Re: GLSL Shader compile errors. Luke Nukem  06/14/15 09:13 AM
. * Re: GLSL Shader compile errors. SoltanGris42  06/13/15 10:32 PM
. * Re: GLSL Shader compile errors. Luke Nukem  06/13/15 05:55 AM
. * Re: GLSL Shader compile errors. uman  06/13/15 11:44 AM
. * Re: GLSL Shader compile errors. SoltanGris42  06/13/15 10:08 PM
. * Re: GLSL Shader compile errors. Luke Nukem  06/14/15 01:06 AM
. * Re: GLSL Shader compile errors. uman  06/14/15 12:47 AM
. * Re: GLSL Shader compile errors. Luke Nukem  06/13/15 01:36 PM
. * Re: GLSL Shader compile errors. Mamesick  06/13/15 08:36 PM
. * Re: GLSL Shader compile errors. B2K24  06/13/15 08:10 PM
. * Re: GLSL Shader compile errors. B2K24  06/13/15 06:29 PM
. * Re: GLSL Shader compile errors. silkove  06/13/15 08:11 PM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 209 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 4986