[vlc-devel] [PATCH] direct3d11: allow custom shader per pixel format

Steve Lhomme robux4 at videolabs.io
Fri Mar 27 10:12:42 CET 2015


If I replace with "static const char*" it doesn't compile anymore,
with this error:
http://stackoverflow.com/questions/21592494/initializer-element-is-not-constant-error-for-no-reason-in-linux-gcc-compilin

I've tried everything by adding/removing "const" in the structure and
the variables and using an intermediate variable. The only one that
works is with the define which makes is a real read-only variable.

On Wed, Mar 25, 2015 at 5:56 PM, Jean-Baptiste Kempf <jb at videolan.org> wrote:
> On 25 Mar, Steve Lhomme wrote :
>> -static const char* globPixelShaderDefault = "\
>> +#define globPixelShaderDefault "\
>
> Why define them?
>
> Wouldn't that copy it several time in the big array?
>
> --
> Jean-Baptiste Kempf
> http://www.jbkempf.com/ - +33 672 704 734
> Sent from my Electronic Device
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel



More information about the vlc-devel mailing list