mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 22:20:09 +01:00
glsl: Expose built-in packing functions under GLSL 4.2.
ARB_shading_language_packing is part of GLSL 4.2, not 4.0 as I mistakenly believed. The following functions are available only with ARB_shading_language_packing, GLSL 4.2 (not GLSL 4.0), or ES 3.0: - packSnorm2x16 - unpackSnorm2x16 - packHalf2x16 - unpackHalf2x16 Reviewed-by: Carl Worth <cworth@cworth.org> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
dac2e7deaa
commit
8d3aa5926b
1 changed files with 1 additions and 1 deletions
|
|
@ -201,7 +201,7 @@ static bool
|
|||
shader_packing_or_es3(const _mesa_glsl_parse_state *state)
|
||||
{
|
||||
return state->ARB_shading_language_packing_enable ||
|
||||
state->is_version(400, 300);
|
||||
state->is_version(420, 300);
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue