mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-12-04 05:33:41 +00:00
mesa: Implement image uniform queries.
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
cad0cf4cee
commit
1b9990e373
@ -347,7 +347,8 @@ _mesa_get_uniform(struct gl_context *ctx, GLuint program, GLint location,
|
||||
&&
|
||||
(uni->type->base_type == GLSL_TYPE_INT
|
||||
|| uni->type->base_type == GLSL_TYPE_UINT
|
||||
|| uni->type->base_type == GLSL_TYPE_SAMPLER))) {
|
||||
|| uni->type->base_type == GLSL_TYPE_SAMPLER
|
||||
|| uni->type->base_type == GLSL_TYPE_IMAGE))) {
|
||||
memcpy(paramsOut, src, bytes);
|
||||
} else {
|
||||
union gl_constant_value *const dst =
|
||||
@ -366,6 +367,7 @@ _mesa_get_uniform(struct gl_context *ctx, GLuint program, GLint location,
|
||||
break;
|
||||
case GLSL_TYPE_INT:
|
||||
case GLSL_TYPE_SAMPLER:
|
||||
case GLSL_TYPE_IMAGE:
|
||||
dst[i].f = (float) src[i].i;
|
||||
break;
|
||||
case GLSL_TYPE_BOOL:
|
||||
|
Loading…
Reference in New Issue
Block a user