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/13/15 12:46 AM


> Sorry mate, I tried replying from my phone. Didn't work too well.
>
> Try the shaders here
>
> And do something like, move a line down, or expand a code block out. Eventually you
> get an $EOF error. It's definitely to do with Mame, as the same error causing file
> will work perfect in AttractMode and other programs.

I just looked at them. You're just trying to combine the curvature and corner rounding from CRT-geom with Lotte's CRT shader? People will like that.

But I just checked. The pixel shader is 8172 characters right now. If you add 20 characters you'll hit 8192 and the last character will be cut off. Then MAME will give you the error you see.

I guess that it is a real MAME error. It should not just read the first 8K of the shader file, right? Maybe someone that knows the GLSL MAME code knows why it is like it is.

EDIT: in gl_shader_mgr.c the file sizes are hard coded to be 8192 bytes? Why?
EDIT2: I'm an idiot. Now that I actually look at that file, it's the filename string that is 8192 characters. That doesn't change the fact that only the first 8191 characters of the shader are read though. But I don't know where that is.

Edited by SoltanGris42 (06/13/15 05:55 AM)







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 16 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 4880