Lines Matching defs:res
769 struct gl_program_resource *res)
774 if (strcmp(((gl_subroutine_function *)res->Data)->name.string,
803 struct gl_program_resource *res)
807 switch(res->Type) {
810 const gl_shader_variable *var = (gl_shader_variable *)res->Data;
832 if (strcmp(((gl_uniform_block *)res->Data)->name.string,
841 if (strcmp(((gl_uniform_block *)res->Data)->name.string,
856 if (((gl_uniform_storage *)res->Data)->builtin ||
857 res->Type != GL_UNIFORM) {
860 if (strcmp(((gl_uniform_storage *)res->Data)->name.string,
868 blob_write_uint32(metadata, ((gl_uniform_storage *)res->Data)->remap_location);
873 if (((gl_active_atomic_buffer *)res->Data)->Binding ==
882 if (((gl_transform_feedback_buffer *)res->Data)->Binding ==
891 if (strcmp(((gl_transform_feedback_varying_info *)res->Data)->name.string,
905 prog->_LinkedShaders[_mesa_shader_stage_from_subroutine(res->Type)];
906 write_shader_subroutine_index(metadata, sh, res);
916 struct gl_program_resource *res)
920 switch(res->Type) {
938 res->Data = var;
942 res->Data = &prog->data->UniformBlocks[blob_read_uint32(metadata)];
945 res->Data = &prog->data->ShaderStorageBlocks[blob_read_uint32(metadata)];
957 res->Data = &prog->data->UniformStorage[blob_read_uint32(metadata)];
959 res->Data = prog->UniformRemapTable[blob_read_uint32(metadata)];
964 res->Data = &prog->data->AtomicBuffers[blob_read_uint32(metadata)];
967 res->Data = &prog->last_vert_prog->
971 res->Data = &prog->last_vert_prog->
981 prog->_LinkedShaders[_mesa_shader_stage_from_subroutine(res->Type)];
982 res->Data =