[fpc-devel] Some thoughts on multi-line string support, and a possible syntax that I think is perfectly clean and Pascal-ish.
Ryan Joseph
genericptr at gmail.com
Sat Jul 6 16:52:47 CEST 2019
> On Jul 6, 2019, at 10:50 AM, Ben Grasset <operator97 at gmail.com> wrote:
>
> I'll have to look at exactly how the errors get propagated in that scenario. None of my code directly involves the "file info", though.
Try this test. I get Identifier not found “b” at 18:11.
=====================
{$mode objfpc}
program test;
const lines: ansistring = `
#version 150
uniform sampler2D textures[8];
in vec2 vertexTexCoord;
in vec4 vertexColor;
in float vertexUVMap;
out vec4 fragColor;
void main()
{
if (vertexUVMap == 255) {
fragColor = vertexColor;
} else {
fragColor = texture(textures[int(vertexUVMap)], vertexTexCoord.st);
if (vertexColor.a < fragColor.a) {
fragColor.a = vertexColor.a;
}
}
// TODO: testing
fragColor = vec4(1,0,0,1);
}
`;
var
s: ansistring;
begin
writeln(b);
end.
Regards,
Ryan Joseph
More information about the fpc-devel
mailing list