Re: [AD] shader variable names |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
It's not a simplification. It introduces compile time checking
where there was none, for one side of the interface.
Mentally translating between al_tex <-> ALLEGRO_SHADER_VAR_TEX
is trivial, I think.
We could also just have the raw names correspond exactly with
the macro names if it doesn't make shader sources unreadable,
i.e. #define ALLEGRO_SHADER_VAR_TEX "ALLEGRO_SHADER_VAR_TEX"
On Mon, 25 Feb 2013 16:45:48 -0700, Jon Rafkind <workmin@xxxxxxxxxx> wrote:
> I don't see how this simplifies anything. A user who writes their own shader will have to use the "raw" names, al_tex or whatever, so now they will have to keep track of two names: al_tex and ALLEGRO_SHADER_VAR_TEX.
>