Home
last modified time | relevance | path

Searched refs:texcoord (Results 1 – 25 of 33) sorted by relevance

12

/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d11tex/
Dd3d11tex.hlsl35 float2 texcoord : TEXCOORD;
41 float2 texcoord : TEXCOORD;
49 result.texcoord = input.texcoord * 8;
50 result.factors.xy = input.texcoord;
51 result.factors.zw = 1 - input.texcoord;
57 float4 a0 = tex0.Sample(samp0, input.texcoord);
58 float4 a1 = tex0.Sample(samp1, input.texcoord);
61 float4 b0 = tex1.Sample(samp0, input.texcoord);
62 float4 b1 = tex1.Sample(samp1, input.texcoord);
/external/mesa3d/src/mesa/tnl/
Dt_rasterpos.c260 const GLfloat normal[3], GLuint unit, GLfloat texcoord[4]) in compute_texgen()
281 texcoord[0] = DOT4(vObj, texUnit->GenS.ObjectPlane); in compute_texgen()
284 texcoord[0] = DOT4(vEye, texUnit->GenS.EyePlane); in compute_texgen()
287 texcoord[0] = rx * mInv + 0.5F; in compute_texgen()
290 texcoord[0] = rx; in compute_texgen()
293 texcoord[0] = normal[0]; in compute_texgen()
304 texcoord[1] = DOT4(vObj, texUnit->GenT.ObjectPlane); in compute_texgen()
307 texcoord[1] = DOT4(vEye, texUnit->GenT.EyePlane); in compute_texgen()
310 texcoord[1] = ry * mInv + 0.5F; in compute_texgen()
313 texcoord[1] = ry; in compute_texgen()
[all …]
Dt_vb_texgen.c76 GLvector4f texcoord[MAX_TEXTURE_COORD_UNITS]; member
257 GLvector4f *out = &store->texcoord[unit]; in texgen_reflection_map_nv()
279 GLvector4f *out = &store->texcoord[unit]; in texgen_normal_map_nv()
281 GLfloat (*texcoord)[4] = (GLfloat (*)[4])out->start; in texgen_normal_map_nv() local
287 texcoord[i][0] = norm[0]; in texgen_normal_map_nv()
288 texcoord[i][1] = norm[1]; in texgen_normal_map_nv()
289 texcoord[i][2] = norm[2]; in texgen_normal_map_nv()
307 GLvector4f *out = &store->texcoord[unit]; in texgen_sphere_map()
308 GLfloat (*texcoord)[4] = (GLfloat (*)[4]) out->start; in texgen_sphere_map() local
322 texcoord[i][0] = f[i][0] * m[i] + 0.5F; in texgen_sphere_map()
[all …]
Dt_vb_texmat.c49 GLvector4f texcoord[MAX_TEXTURE_COORD_UNITS]; member
71 (void) TransformRaw( &store->texcoord[i], in run_texmat_stage()
75 VB->AttribPtr[VERT_ATTRIB_TEX0+i] = &store->texcoord[i]; in run_texmat_stage()
98 _mesa_vector4f_alloc( &store->texcoord[i], 0, VB->Size, 32 ); in alloc_texmat_data()
111 if (store->texcoord[i].data) in free_texmat_data()
112 _mesa_vector4f_free( &store->texcoord[i] ); in free_texmat_data()
/external/mesa3d/src/mesa/swrast/
Ds_texfilter.c505 const GLfloat texcoord[4], in nearest_texcoord()
515 *i = clamp_rect_coord_nearest(samp->WrapS, texcoord[0], width); in nearest_texcoord()
516 *j = clamp_rect_coord_nearest(samp->WrapT, texcoord[1], height); in nearest_texcoord()
520 *i = nearest_texel_location(samp->WrapS, img, width, texcoord[0]); in nearest_texcoord()
525 *i = nearest_texel_location(samp->WrapS, img, width, texcoord[0]); in nearest_texcoord()
526 *j = nearest_texel_location(samp->WrapT, img, height, texcoord[1]); in nearest_texcoord()
530 *i = nearest_texel_location(samp->WrapS, img, width, texcoord[0]); in nearest_texcoord()
531 *j = tex_array_slice(texcoord[1], height); in nearest_texcoord()
535 *i = nearest_texel_location(samp->WrapS, img, width, texcoord[0]); in nearest_texcoord()
536 *j = nearest_texel_location(samp->WrapT, img, height, texcoord[1]); in nearest_texcoord()
[all …]
Ds_fragprog.c79 fetch_texel_lod( struct gl_context *ctx, const GLfloat texcoord[4], GLfloat lambda, in fetch_texel_lod()
92 1, (const GLfloat (*)[4]) texcoord, in fetch_texel_lod()
110 fetch_texel_deriv( struct gl_context *ctx, const GLfloat texcoord[4], in fetch_texel_deriv()
133 texcoord[0], texcoord[1], texcoord[3], in fetch_texel_deriv()
134 1.0F / texcoord[3]); in fetch_texel_deriv()
141 1, (const GLfloat (*)[4]) texcoord, in fetch_texel_deriv()
Ds_span.c483 GLfloat (*texcoord)[4] = span->array->attribs[attr]; in interpolate_texcoords() local
531 texcoord[i][0] = s * invW; in interpolate_texcoords()
532 texcoord[i][1] = t * invW; in interpolate_texcoords()
533 texcoord[i][2] = r * invW; in interpolate_texcoords()
534 texcoord[i][3] = q * invW; in interpolate_texcoords()
548 texcoord[i][0] = s * invQ; in interpolate_texcoords()
549 texcoord[i][1] = t * invQ; in interpolate_texcoords()
550 texcoord[i][2] = r * invQ; in interpolate_texcoords()
551 texcoord[i][3] = q; in interpolate_texcoords()
572 texcoord[i][0] = s * invW; in interpolate_texcoords()
[all …]
/external/mesa3d/src/mesa/program/
Dprog_execute.c390 const GLfloat texcoord[4], GLfloat lodBias, in fetch_texel()
402 machine->FetchTexelDeriv(ctx, texcoord, in fetch_texel()
408 machine->FetchTexelLod(ctx, texcoord, lodBias, unit, color); in fetch_texel()
1651 GLfloat texcoord[4], color[4]; in _mesa_execute_program() local
1652 fetch_vector4(&inst->SrcReg[0], machine, texcoord); in _mesa_execute_program()
1660 texcoord[3] = 1.0f; in _mesa_execute_program()
1662 fetch_texel(ctx, machine, inst, texcoord, 0.0, color); in _mesa_execute_program()
1668 texcoord[0], texcoord[1], texcoord[2], texcoord[3]); in _mesa_execute_program()
1676 GLfloat texcoord[4], color[4], lodBias; in _mesa_execute_program() local
1678 fetch_vector4(&inst->SrcReg[0], machine, texcoord); in _mesa_execute_program()
[all …]
Dprog_execute.h32 typedef void (*FetchTexelLodFunc)(struct gl_context *ctx, const GLfloat texcoord[4],
35 typedef void (*FetchTexelDerivFunc)(struct gl_context *ctx, const GLfloat texcoord[4],
/external/mesa3d/src/gallium/state_trackers/d3d1x/progs/d3d11app/
Dd3d11blit.hlsl33 float2 texcoord : TEXCOORD;
39 float2 texcoord : TEXCOORD;
46 result.texcoord = input.texcoord;
52 return tex.Sample(samp, input.texcoord);
/external/mesa3d/src/gallium/drivers/nv30/
Dnv30_vertprog.c64 if (memcmp(vp->texcoord, fp->texcoord, sizeof(vp->texcoord))) { in nv30_vertprog_validate()
67 memcpy(vp->texcoord, fp->texcoord, sizeof(vp->texcoord)); in nv30_vertprog_validate()
Dnv30_state.h85 uint16_t texcoord[10]; member
117 uint16_t texcoord[10]; member
/external/mesa3d/src/mesa/main/
Dff_fragment_shader.cpp920 ir_rvalue *texcoord; in load_texture() local
923 texcoord = get_current_attrib(p, VERT_ATTRIB_TEX0 + unit); in load_texture()
925 texcoord = new(p->mem_ctx) ir_dereference_variable(p->texcoord_tex[unit]); in load_texture()
929 texcoord = new(p->mem_ctx) ir_dereference_variable(tc_array); in load_texture()
931 texcoord = new(p->mem_ctx) ir_dereference_array(texcoord, index); in load_texture()
1025 tex->coordinate = new(p->mem_ctx) ir_swizzle(texcoord, 0, 1, 2, 3, coords); in load_texture()
1028 texcoord = texcoord->clone(p->mem_ctx, NULL); in load_texture()
1029 tex->shadow_comparitor = new(p->mem_ctx) ir_swizzle(texcoord, in load_texture()
1035 texcoord = texcoord->clone(p->mem_ctx, NULL); in load_texture()
1036 tex->projector = swizzle_w(texcoord); in load_texture()
[all …]
Dfeedback.h43 const GLfloat texcoord[4] );
71 const GLfloat texcoord[4] ) in _mesa_feedback_vertex()
Dfeedback.c123 const GLfloat texcoord[4]) in _mesa_feedback_vertex()
140 _mesa_feedback_token( ctx, texcoord[0] ); in _mesa_feedback_vertex()
141 _mesa_feedback_token( ctx, texcoord[1] ); in _mesa_feedback_vertex()
142 _mesa_feedback_token( ctx, texcoord[2] ); in _mesa_feedback_vertex()
143 _mesa_feedback_token( ctx, texcoord[3] ); in _mesa_feedback_vertex()
Deval.c1015 static GLfloat texcoord[4] = { 0.0, 0.0, 0.0, 1.0 }; in _mesa_init_eval() local
1023 init_1d_map( &ctx->EvalMap.Map1Texture1, 1, texcoord ); in _mesa_init_eval()
1024 init_1d_map( &ctx->EvalMap.Map1Texture2, 2, texcoord ); in _mesa_init_eval()
1025 init_1d_map( &ctx->EvalMap.Map1Texture3, 3, texcoord ); in _mesa_init_eval()
1026 init_1d_map( &ctx->EvalMap.Map1Texture4, 4, texcoord ); in _mesa_init_eval()
1035 init_2d_map( &ctx->EvalMap.Map2Texture1, 1, texcoord ); in _mesa_init_eval()
1036 init_2d_map( &ctx->EvalMap.Map2Texture2, 2, texcoord ); in _mesa_init_eval()
1037 init_2d_map( &ctx->EvalMap.Map2Texture3, 3, texcoord ); in _mesa_init_eval()
1038 init_2d_map( &ctx->EvalMap.Map2Texture4, 4, texcoord ); in _mesa_init_eval()
/external/mesa3d/src/mesa/state_tracker/
Dst_cb_feedback.c88 const GLfloat *color, *texcoord; in feedback_vertex() local
110 texcoord = v->data[slot]; in feedback_vertex()
112 texcoord = ctx->Current.Attrib[VERT_ATTRIB_TEX0]; in feedback_vertex()
114 _mesa_feedback_vertex(ctx, win, color, texcoord); in feedback_vertex()
/external/vulkan-validation-layers/demos/
Dtri.frag32 layout (location = 0) in vec2 texcoord;
35 uFragColor = texture(tex, texcoord);
Dcube.frag33 layout (location = 0) in vec4 texcoord;
36 uFragColor = texture(tex, texcoord.xy);
Dtri.vert33 layout (location = 0) out vec2 texcoord;
35 texcoord = attr;
Dcube.vert37 layout (location = 0) out vec4 texcoord;
45 texcoord = ubuf.attr[gl_VertexIndex];
/external/webrtc/webrtc/api/objc/
DRTCOpenGLVideoRenderer.mm52 VERTEX_SHADER_IN " vec2 texcoord;\n"
56 " v_texcoord = texcoord;\n"
284 _texcoord = glGetAttribLocation(_program, "texcoord");
471 // Read texcoord attribute from |gVertices| with size of 2 and stride of 4
472 // beginning at the first texcoord in the array. The last argument indicates
/external/webrtc/talk/app/webrtc/objc/
DRTCOpenGLVideoRenderer.mm73 VERTEX_SHADER_IN " vec2 texcoord;\n"
77 " v_texcoord = texcoord;\n"
303 _texcoord = glGetAttribLocation(_program, "texcoord");
489 // Read texcoord attribute from |gVertices| with size of 2 and stride of 4
490 // beginning at the first texcoord in the array. The last argument indicates
/external/mesa3d/src/gallium/tests/graw/
Dfs-test.c56 float texcoord[4]; member
210 ve[2].src_offset = Offset(struct vertex, texcoord); in set_vertices()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_tgsi_insn.c1451 struct src_register texcoord; in emit_tex2() local
1477 texcoord = translate_src_register( emit, &insn->Src[0] ); in emit_tex2()
1489 SVGA3dShaderGetRegType(texcoord.base.value) == SVGA3DREG_TEMP) { in emit_tex2()
1496 texcoord )) in emit_tex2()
1506 texcoord = src( tmp ); in emit_tex2()
1517 tmp, texcoord, wh )) in emit_tex2()
1520 texcoord = src( tmp ); in emit_tex2()
1523 return submit_op2( emit, inst, dst, texcoord, sampler ); in emit_tex2()
1536 struct src_register texcoord; in emit_tex4() local
1541 texcoord = translate_src_register( emit, &insn->Src[0] ); in emit_tex4()
[all …]

12