mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
mesa: Implement the UBO-specific pnames of glGetActiveUniformsiv.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
a74507dc94
commit
548bce4733
1 changed files with 13 additions and 2 deletions
|
|
@ -121,12 +121,23 @@ _mesa_GetActiveUniformsiv(GLuint program,
|
|||
break;
|
||||
|
||||
case GL_UNIFORM_BLOCK_INDEX:
|
||||
params[i] = uni->block_index;
|
||||
break;
|
||||
|
||||
case GL_UNIFORM_OFFSET:
|
||||
params[i] = uni->offset;
|
||||
break;
|
||||
|
||||
case GL_UNIFORM_ARRAY_STRIDE:
|
||||
params[i] = uni->array_stride;
|
||||
break;
|
||||
|
||||
case GL_UNIFORM_MATRIX_STRIDE:
|
||||
params[i] = uni->matrix_stride;
|
||||
break;
|
||||
|
||||
case GL_UNIFORM_IS_ROW_MAJOR:
|
||||
_mesa_problem(ctx, "FINISHME: glGetActiveUniformsiv(pname)");
|
||||
params[i] = -1;
|
||||
params[i] = uni->row_major;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue