Searched refs:texcoord (Results 1 - 25 of 34) sorted by relevance

12

/external/vulkan-validation-layers/demos/
H A Dcube.frag26 layout (location = 0) in vec4 texcoord;
29 uFragColor = texture(tex, texcoord.xy);
H A Dcube.vert30 layout (location = 0) out vec4 texcoord;
38 texcoord = ubuf.attr[gl_VertexIndex];
/external/mesa3d/src/compiler/nir/
H A Dnir_lower_bitmap.c58 nir_variable *texcoord = NULL; local
63 texcoord = var;
69 if (texcoord == NULL) {
70 texcoord = nir_variable_create(shader,
74 texcoord->data.location = VARYING_SLOT_TEX0;
77 return texcoord;
84 nir_ssa_def *texcoord; local
89 texcoord = nir_load_var(b, get_texcoord(shader));
99 tex->src[0].src = nir_src_for_ssa(texcoord);
H A Dnir_lower_drawpixels.c38 nir_variable *texcoord, *scale, *bias; member in struct:__anon14739
44 if (state->texcoord == NULL) {
45 nir_variable *texcoord = NULL; local
50 texcoord = var;
56 if (texcoord == NULL) {
57 texcoord = nir_variable_create(state->shader,
61 texcoord->data.location = VARYING_SLOT_TEX0;
64 state->texcoord = texcoord;
66 return nir_load_var(&state->b, state->texcoord);
117 nir_ssa_def *texcoord; local
[all...]
/external/mesa3d/src/mesa/tnl/
H A Dt_vb_texmat.c48 GLvector4f texcoord[MAX_TEXTURE_COORD_UNITS]; member in struct:texmat_stage_data
70 (void) TransformRaw( &store->texcoord[i],
74 VB->AttribPtr[VERT_ATTRIB_TEX0+i] = &store->texcoord[i];
97 _mesa_vector4f_alloc( &store->texcoord[i], 0, VB->Size, 32 );
110 if (store->texcoord[i].data)
111 _mesa_vector4f_free( &store->texcoord[i] );
H A Dt_vb_texgen.c74 GLvector4f texcoord[MAX_TEXTURE_COORD_UNITS]; member in struct:texgen_stage_data
170 * (f). This allows us to pass in either a texcoord vector4f, or a
255 GLvector4f *out = &store->texcoord[unit];
277 GLvector4f *out = &store->texcoord[unit];
279 GLfloat (*texcoord)[4] = (GLfloat (*)[4])out->start;
285 texcoord[i][0] = norm[0];
286 texcoord[i][1] = norm[1];
287 texcoord[i][2] = norm[2];
305 GLvector4f *out = &store->texcoord[unit];
306 GLfloat (*texcoord)[
[all...]
H A Dt_vb_program.c193 vp_fetch_texel(struct gl_context *ctx, const GLfloat texcoord[4], GLfloat lambda, argument
201 1, (const GLfloat (*)[4]) texcoord,
/external/mesa3d/src/mesa/program/
H A 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],
H A Dprog_execute.c293 const GLfloat texcoord[4], GLfloat lodBias,
305 machine->FetchTexelDeriv(ctx, texcoord,
311 machine->FetchTexelLod(ctx, texcoord, lodBias, unit, color);
1068 GLfloat texcoord[4], color[4]; local
1069 fetch_vector4(&inst->SrcReg[0], machine, texcoord);
1071 /* For TEX, texcoord.Q should not be used and its value should not
1074 * which is effectively what happens when the texcoord swizzle
1077 texcoord[3] = 1.0f;
1079 fetch_texel(ctx, machine, inst, texcoord, 0.0, color);
1085 texcoord[
290 fetch_texel(struct gl_context *ctx, const struct gl_program_machine *machine, const struct prog_instruction *inst, const GLfloat texcoord[4], GLfloat lodBias, GLfloat color[4]) argument
1093 GLfloat texcoord[4], color[4], lodBias; local
1120 GLfloat texcoord[4], dtdx[4], dtdy[4], color[4]; local
1133 GLfloat texcoord[4], color[4], lod; local
1149 GLfloat texcoord[4], color[4]; local
[all...]
/external/mesa3d/src/mesa/swrast/
H A Ds_texfilter.c154 * s = texcoord in [0,1]
508 const GLfloat texcoord[4],
518 *i = clamp_rect_coord_nearest(samp->WrapS, texcoord[0], width);
519 *j = clamp_rect_coord_nearest(samp->WrapT, texcoord[1], height);
523 *i = nearest_texel_location(samp->WrapS, img, width, texcoord[0]);
528 *i = nearest_texel_location(samp->WrapS, img, width, texcoord[0]);
529 *j = nearest_texel_location(samp->WrapT, img, height, texcoord[1]);
533 *i = nearest_texel_location(samp->WrapS, img, width, texcoord[0]);
534 *j = tex_array_slice(texcoord[1], height);
538 *i = nearest_texel_location(samp->WrapS, img, width, texcoord[
505 nearest_texcoord(const struct gl_sampler_object *samp, const struct gl_texture_object *texObj, GLuint level, const GLfloat texcoord[4], GLint *i, GLint *j, GLint *k) argument
554 linear_texcoord(const struct gl_sampler_object *samp, const struct gl_texture_object *texObj, GLuint level, const GLfloat texcoord[4], GLint *i0, GLint *i1, GLint *j0, GLint *j1, GLint *slice, GLfloat *wi, GLfloat *wj) argument
850 sample_1d_nearest(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_image *img, const GLfloat texcoord[4], GLfloat rgba[4]) argument
875 sample_1d_linear(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_image *img, const GLfloat texcoord[4], GLfloat rgba[4]) argument
917 sample_1d_nearest_mipmap_nearest(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4]) argument
933 sample_1d_linear_mipmap_nearest(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4]) argument
949 sample_1d_nearest_mipmap_linear(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4]) argument
975 sample_1d_linear_mipmap_linear(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4]) argument
1116 sample_2d_nearest(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_image *img, const GLfloat texcoord[4], GLfloat rgba[]) argument
1150 sample_2d_linear(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_image *img, const GLfloat texcoord[4], GLfloat rgba[]) argument
1215 sample_2d_linear_repeat(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_image *img, const GLfloat texcoord[4], GLfloat rgba[]) argument
1248 sample_2d_nearest_mipmap_nearest(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4]) argument
1263 sample_2d_linear_mipmap_nearest(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4]) argument
1279 sample_2d_nearest_mipmap_linear(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4]) argument
1305 sample_2d_linear_mipmap_linear( struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4] ) argument
1331 sample_2d_linear_mipmap_linear_repeat(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4]) argument
1646 sample_2d_ewa(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, const GLfloat texcoord[4], const GLfloat dudx, const GLfloat dvdx, const GLfloat dudy, const GLfloat dvdy, const GLint lod, GLfloat rgba[]) argument
1773 sample_2d_footprint(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, const GLfloat texcoord[4], const GLfloat dudx, const GLfloat dvdx, const GLfloat dudy, const GLfloat dvdy, const GLint lod, GLfloat rgba[]) argument
2018 sample_3d_nearest(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_image *img, const GLfloat texcoord[4], GLfloat rgba[4]) argument
2051 sample_3d_linear(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_image *img, const GLfloat texcoord[4], GLfloat rgba[4]) argument
2146 sample_3d_nearest_mipmap_nearest(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4] ) argument
2161 sample_3d_linear_mipmap_nearest(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4]) argument
2177 sample_3d_nearest_mipmap_linear(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4]) argument
2203 sample_3d_linear_mipmap_linear(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4]) argument
2345 choose_cube_face(const struct gl_texture_object *texObj, const GLfloat texcoord[4], GLfloat newCoord[4]) argument
2468 sample_cube_nearest_mipmap_nearest(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4]) argument
2503 sample_cube_linear_mipmap_nearest(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4]) argument
2528 sample_cube_nearest_mipmap_linear(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4]) argument
2563 sample_cube_linear_mipmap_linear(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4]) argument
2823 sample_2d_array_nearest(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_image *img, const GLfloat texcoord[4], GLfloat rgba[4]) argument
2857 sample_2d_array_linear(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_image *img, const GLfloat texcoord[4], GLfloat rgba[4]) argument
2928 sample_2d_array_nearest_mipmap_nearest(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4]) argument
2944 sample_2d_array_linear_mipmap_nearest(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4]) argument
2961 sample_2d_array_nearest_mipmap_linear(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4]) argument
2989 sample_2d_array_linear_mipmap_linear(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4]) argument
3142 sample_1d_array_nearest(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_image *img, const GLfloat texcoord[4], GLfloat rgba[4]) argument
3173 sample_1d_array_linear(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_image *img, const GLfloat texcoord[4], GLfloat rgba[4]) argument
3223 sample_1d_array_nearest_mipmap_nearest(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4]) argument
3239 sample_1d_array_linear_mipmap_nearest(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4]) argument
3256 sample_1d_array_nearest_mipmap_linear(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4]) argument
3282 sample_1d_array_linear_mipmap_linear(struct gl_context *ctx, const struct gl_sampler_object *samp, const struct gl_texture_object *tObj, GLuint n, const GLfloat texcoord[][4], const GLfloat lambda[], GLfloat rgba[][4]) argument
[all...]
H A Ds_fragprog.c80 fetch_texel_lod( struct gl_context *ctx, const GLfloat texcoord[4], GLfloat lambda, argument
93 1, (const GLfloat (*)[4]) texcoord,
111 fetch_texel_deriv( struct gl_context *ctx, const GLfloat texcoord[4], argument
133 texcoord[0], texcoord[1], texcoord[3],
134 1.0F / texcoord[3]);
141 1, (const GLfloat (*)[4]) texcoord,
H A Ds_span.c466 * really doing two things: perspective correction and texcoord
467 * projection. Remember, for texcoord (s,t,r,q) we need to index
484 GLfloat (*texcoord)[4] = span->array->attribs[attr];
532 texcoord[i][0] = s * invW;
533 texcoord[i][1] = t * invW;
534 texcoord[i][2] = r * invW;
535 texcoord[i][3] = q * invW;
549 texcoord[i][0] = s * invQ;
550 texcoord[i][1] = t * invQ;
551 texcoord[
[all...]
/external/mesa3d/src/mesa/main/
H A Dfeedback.h54 const GLfloat texcoord[4] );
H A Drastpos.c263 * \param texcoord incoming texcoord and resulting texcoord
267 const GLfloat normal[3], GLuint unit, GLfloat texcoord[4])
288 texcoord[0] = DOT4(vObj, texUnit->GenS.ObjectPlane);
291 texcoord[0] = DOT4(vEye, texUnit->GenS.EyePlane);
294 texcoord[0] = rx * mInv + 0.5F;
297 texcoord[0] = rx;
300 texcoord[0] = normal[0];
311 texcoord[
266 compute_texgen(struct gl_context *ctx, const GLfloat vObj[4], const GLfloat vEye[4], const GLfloat normal[3], GLuint unit, GLfloat texcoord[4]) argument
[all...]
H A Dfeedback.c116 const GLfloat texcoord[4])
133 _mesa_feedback_token( ctx, texcoord[0] );
134 _mesa_feedback_token( ctx, texcoord[1] );
135 _mesa_feedback_token( ctx, texcoord[2] );
136 _mesa_feedback_token( ctx, texcoord[3] );
113 _mesa_feedback_vertex(struct gl_context *ctx, const GLfloat win[4], const GLfloat color[4], const GLfloat texcoord[4]) argument
H A Dff_fragment_shader.cpp505 /* Reg containing texcoord for a texture unit,
886 ir_rvalue *texcoord; local
889 texcoord = get_current_attrib(p, VERT_ATTRIB_TEX0 + unit);
891 texcoord = new(p->mem_ctx) ir_dereference_variable(p->texcoord_tex[unit]);
895 texcoord = new(p->mem_ctx) ir_dereference_variable(tc_array);
897 texcoord = new(p->mem_ctx) ir_dereference_array(texcoord, index);
989 tex->coordinate = new(p->mem_ctx) ir_swizzle(texcoord, 0, 1, 2, 3, coords);
992 texcoord = texcoord
[all...]
H A Deval.c917 static GLfloat texcoord[4] = { 0.0, 0.0, 0.0, 1.0 }; local
924 init_1d_map( &ctx->EvalMap.Map1Texture1, 1, texcoord );
925 init_1d_map( &ctx->EvalMap.Map1Texture2, 2, texcoord );
926 init_1d_map( &ctx->EvalMap.Map1Texture3, 3, texcoord );
927 init_1d_map( &ctx->EvalMap.Map1Texture4, 4, texcoord );
934 init_2d_map( &ctx->EvalMap.Map2Texture1, 1, texcoord );
935 init_2d_map( &ctx->EvalMap.Map2Texture2, 2, texcoord );
936 init_2d_map( &ctx->EvalMap.Map2Texture3, 3, texcoord );
937 init_2d_map( &ctx->EvalMap.Map2Texture4, 4, texcoord );
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
H A Dnv30_vertprog.c66 if (memcmp(vp->texcoord, fp->texcoord, sizeof(vp->texcoord))) {
69 memcpy(vp->texcoord, fp->texcoord, sizeof(vp->texcoord));
H A Dnv30_state.h87 uint16_t texcoord[10]; member in struct:nv30_vertprog
119 uint16_t texcoord[10]; member in struct:nv30_fragprog
/external/skia/src/gpu/ccpr/
H A DGrCCPRPathProcessor.cpp127 GrGLSLVertToFrag texcoord(kVec2f_GrSLType);
129 varyingHandler->addVarying("texcoord", &texcoord, kHigh_GrSLPrecision);
165 v->codeAppendf("%s = atlascoord * %s;", texcoord.vsOut(), atlasAdjust);
169 texcoord.vsOut(), atlasAdjust, atlasAdjust);
184 f->appendTextureLookup(args.fTexSamplers[0], texcoord.fsIn(), kVec2f_GrSLType);
/external/vulkan-validation-layers/demos/android/include/
H A Dcube.frag.h26 Name 16 "texcoord"
30 Decorate 16(texcoord) Location 0
42 16(texcoord): 15(ptr) Variable Input
47 18: 7(fvec4) Load 16(texcoord)
H A Dcube.vert.h23 Name 9 "texcoord"
33 Decorate 9(texcoord) Location 0
52 9(texcoord): 8(ptr) Variable Output
82 Store 9(texcoord) 25
/external/mesa3d/src/mesa/state_tracker/
H A Dst_cb_feedback.c86 const GLfloat *color, *texcoord; local
99 * color and texcoord attribs to use here.
110 texcoord = v->data[slot];
112 texcoord = ctx->Current.Attrib[VERT_ATTRIB_TEX0];
114 _mesa_feedback_vertex(ctx, win, color, texcoord);
/external/mesa3d/src/gallium/tests/graw/
H A Dfs-test.c54 float texcoord[4]; member in struct:vertex
166 ve[2].src_offset = Offset(struct vertex, texcoord);
H A Dgs-test.c58 float texcoord[4]; member in struct:vertex
225 ve[2].src_offset = Offset(struct vertex, texcoord);

Completed in 481 milliseconds

12