Home
last modified time | relevance | path

Searched refs:interpolant (Results 1 – 25 of 56) sorted by relevance

123

/third_party/skia/third_party/externals/swiftshader/src/Shader/
DPixelShader.cpp240 bool interpolant[MAX_FRAGMENT_INPUTS][4] = {{false}}; // Interpolants in use in analyzeInterpolants() local
262 interpolant[index][0] = true; in analyzeInterpolants()
263 interpolant[index][1] = true; in analyzeInterpolants()
264 interpolant[index][2] = true; in analyzeInterpolants()
269 interpolant[index][0] = true; in analyzeInterpolants()
270 interpolant[index][1] = true; in analyzeInterpolants()
271 interpolant[index][2] = true; in analyzeInterpolants()
275 interpolant[index][0] = true; in analyzeInterpolants()
276 interpolant[index][1] = true; in analyzeInterpolants()
277 interpolant[index][2] = true; in analyzeInterpolants()
[all …]
DPixelRoutine.cpp145 for(int interpolant = 0; interpolant < MAX_FRAGMENT_INPUTS; interpolant++) in quad() local
149 if(state.interpolant[interpolant].component & (1 << component)) in quad()
151 if(!state.interpolant[interpolant].centroid) in quad()
153interpolant][component] = interpolate(xxxx, Dv[interpolant][component], rhw, primitive + OFFSET(Pr… in quad()
157interpolant][component] = interpolateCentroid(XXXX, YYYY, rhwCentroid, primitive + OFFSET(Primitiv… in quad()
164 switch(state.interpolant[interpolant].project) in quad()
169 rcp = reciprocal(v[interpolant].y); in quad()
170 v[interpolant].x = v[interpolant].x * rcp; in quad()
173 rcp = reciprocal(v[interpolant].z); in quad()
174 v[interpolant].x = v[interpolant].x * rcp; in quad()
[all …]
DSetupRoutine.cpp459 for(int interpolant = 0; interpolant < MAX_FRAGMENT_INPUTS; interpolant++) in generate() local
463 int attribute = state.gradient[interpolant][component].attribute; in generate()
464 bool flat = state.gradient[interpolant][component].flat; in generate()
465 bool wrap = state.gradient[interpolant][component].wrap; in generate()
469 …v0, v1, v2, OFFSET(Vertex,v[attribute][component]), OFFSET(Primitive,V[interpolant][component]), f… in generate()
/third_party/skia/third_party/externals/swiftshader/src/Renderer/
DSetupProcessor.cpp105 for(int interpolant = 0; interpolant < MAX_FRAGMENT_INPUTS; interpolant++) in update() local
109 state.gradient[interpolant][component].attribute = Unused; in update()
110 state.gradient[interpolant][component].flat = false; in update()
111 state.gradient[interpolant][component].wrap = false; in update()
125 for(int interpolant = 0; interpolant < MAX_FRAGMENT_INPUTS; interpolant++) in update() local
129 int project = context->isProjectionComponent(interpolant - 2, component) ? 1 : 0; in update()
130 …const Shader::Semantic& semantic = context->pixelShader->getInput(interpolant, component - project… in update()
134 int input = interpolant; in update()
152 state.gradient[interpolant][component].attribute = input; in update()
153 state.gradient[interpolant][component].flat = flat; in update()
[all …]
DQuadRasterizer.cpp241 for(int interpolant = 0; interpolant < MAX_FRAGMENT_INPUTS; interpolant++) in rasterize()
245 if(state.interpolant[interpolant].component & (1 << component)) in rasterize()
247 …Dv[interpolant][component] = *Pointer<Float4>(primitive + OFFSET(Primitive,V[interpolant][componen… in rasterize()
249 if(!(state.interpolant[interpolant].flat & (1 << component))) in rasterize()
251 …Dv[interpolant][component] += yyyy * *Pointer<Float4>(primitive + OFFSET(Primitive,V[interpolant][… in rasterize()
321 Float4 interpolant = D; in interpolate() local
325 interpolant += x * *Pointer<Float4>(planeEquation + OFFSET(PlaneEquation, A), 16); in interpolate()
329 interpolant *= rhw; in interpolate()
335 interpolant = Min(Max(interpolant, Float4(0.0f)), Float4(1.0f)); in interpolate()
338 return interpolant; in interpolate()
DPixelProcessor.cpp1151 for(int interpolant = 0; interpolant < MAX_FRAGMENT_INPUTS; interpolant++) in update() local
1155 const Shader::Semantic &semantic = context->pixelShader->getInput(interpolant, component); in update()
1167 state.interpolant[interpolant].component |= 1 << component; in update()
1171 state.interpolant[interpolant].flat |= 1 << component; in update()
1180 for(int interpolant = 0; interpolant < MAX_FRAGMENT_INPUTS; interpolant++) in update() local
1184 … state.interpolant[interpolant].centroid = context->pixelShader->getInput(interpolant, 0).centroid; in update()
/third_party/skia/third_party/externals/spirv-cross/reference/opt/shaders-hlsl/frag/
Dvarious-glsl-ops.frag1 static float2 interpolant;
6 float2 interpolant : TEXCOORD0;
16 … EvaluateAttributeSnapped(interpolant, 0.100000001490116119384765625f.xx).x) + float4(0.0f, 0.0f, …
21 interpolant = stage_input.interpolant;
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-hlsl/frag/
Dvarious-glsl-ops.frag1 static float2 interpolant;
6 float2 interpolant : TEXCOORD0;
16 …float4 color = float4(0.0f, 0.0f, 0.0f, EvaluateAttributeSnapped(interpolant, 0.100000001490116119…
17 color += float4(0.0f, 0.0f, 0.0f, ddx_coarse(interpolant.x));
23 interpolant = stage_input.interpolant;
/third_party/skia/third_party/externals/spirv-cross/shaders-hlsl/frag/
Dvarious-glsl-ops.frag3 layout(location = 0) in vec2 interpolant;
9 vec4 color = vec4(0.0, 0.0, 0.0, interpolateAtOffset(interpolant, vec2(0.1, 0.1)));
12 //color += vec4(0.0, 0.0, 0.0, interpolateAtSample(interpolant, gl_SampleID));
13 //color += vec4(0.0, 0.0, 0.0, interpolateAtCentroid(interpolant));
15 color += vec4(0.0, 0.0, 0.0, dFdxCoarse(interpolant.x));
/third_party/skia/third_party/externals/spirv-cross/reference/opt/shaders-msl/asm/frag/
Dpull-model-interpolation.asm.msl23.frag64 interpolant<float4, interpolation::no_perspective> foo [[user(locn0)]];
65 interpolant<float3, interpolation::perspective> bar [[user(locn1)]];
66 interpolant<float2, interpolation::perspective> baz [[user(locn2)]];
68 interpolant<float2, interpolation::perspective> a_0 [[user(locn4)]];
69 interpolant<float2, interpolation::perspective> a_1 [[user(locn5)]];
70 interpolant<float2, interpolation::perspective> b_0 [[user(locn6)]];
71 interpolant<float2, interpolation::perspective> b_1 [[user(locn7)]];
72 interpolant<float2, interpolation::perspective> c_0 [[user(locn8)]];
73 interpolant<float2, interpolation::perspective> c_1 [[user(locn9)]];
74 interpolant<float4, interpolation::perspective> m_13_x [[user(locn10)]];
[all …]
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-msl/asm/frag/
Dpull-model-interpolation.asm.msl23.frag64 interpolant<float4, interpolation::no_perspective> foo [[user(locn0)]];
65 interpolant<float3, interpolation::perspective> bar [[user(locn1)]];
66 interpolant<float2, interpolation::perspective> baz [[user(locn2)]];
68 interpolant<float2, interpolation::perspective> a_0 [[user(locn4)]];
69 interpolant<float2, interpolation::perspective> a_1 [[user(locn5)]];
70 interpolant<float2, interpolation::perspective> b_0 [[user(locn6)]];
71 interpolant<float2, interpolation::perspective> b_1 [[user(locn7)]];
72 interpolant<float2, interpolation::perspective> c_0 [[user(locn8)]];
73 interpolant<float2, interpolation::perspective> c_1 [[user(locn9)]];
74 interpolant<float4, interpolation::perspective> m_13_x [[user(locn10)]];
[all …]
/third_party/mesa3d/src/compiler/glsl/
Dlower_vec_index_to_cond_assign.cpp95 ir_expression *const interpolant = expr->operands[0]->as_expression(); in convert_vector_extract_to_cond_assign() local
96 if (!interpolant || interpolant->operation != ir_binop_vector_extract) in convert_vector_extract_to_cond_assign()
99 ir_rvalue *vec_input = interpolant->operands[0]; in convert_vector_extract_to_cond_assign()
107 interpolant->operands[1]); in convert_vector_extract_to_cond_assign()
/third_party/skia/third_party/externals/swiftshader/src/Device/
DSetupProcessor.cpp86 for(int interpolant = 0; interpolant < MAX_INTERFACE_COMPONENTS; interpolant++) in update() local
88 state.gradient[interpolant] = fragmentShader->inputs[interpolant]; in update()
DQuadRasterizer.cpp235 Float4 interpolant = D; in interpolate() local
239 interpolant += x * *Pointer<Float4>(planeEquation + OFFSET(PlaneEquation, A), 16); in interpolate()
243 interpolant *= rhw; in interpolate()
247 return interpolant; in interpolate()
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-msl-no-opt/frag/
Dpull-interpolant-access-chain.msl23.frag54 interpolant<float4, interpolation::perspective> a_0 [[user(locn0)]];
55 interpolant<float4, interpolation::perspective> a_1 [[user(locn1)]];
56 interpolant<float4, interpolation::perspective> b_0 [[user(locn2)]];
57 interpolant<float4, interpolation::perspective> b_1 [[user(locn3)]];
/third_party/skia/third_party/externals/opengl-registry/extensions/OES/
DOES_shader_multisample_interpolation.txt296 qualification matching the precision of the "interpolant" argument to
299 float interpolateAtCentroid(float interpolant);
300 vec2 interpolateAtCentroid(vec2 interpolant);
301 vec3 interpolateAtCentroid(vec3 interpolant);
302 vec4 interpolateAtCentroid(vec4 interpolant);
304 float interpolateAtSample(float interpolant, int sample);
305 vec2 interpolateAtSample(vec2 interpolant, int sample);
306 vec3 interpolateAtSample(vec3 interpolant, int sample);
307 vec4 interpolateAtSample(vec4 interpolant, int sample);
309 float interpolateAtOffset(float interpolant, vec2 offset);
[all …]
/third_party/openGLES/extensions/OES/
DOES_shader_multisample_interpolation.txt306 qualification matching the precision of the "interpolant" argument to
309 float interpolateAtCentroid(float interpolant);
310 vec2 interpolateAtCentroid(vec2 interpolant);
311 vec3 interpolateAtCentroid(vec3 interpolant);
312 vec4 interpolateAtCentroid(vec4 interpolant);
314 float interpolateAtSample(float interpolant, int sample);
315 vec2 interpolateAtSample(vec2 interpolant, int sample);
316 vec3 interpolateAtSample(vec3 interpolant, int sample);
317 vec4 interpolateAtSample(vec4 interpolant, int sample);
319 float interpolateAtOffset(float interpolant, vec2 offset);
[all …]
/third_party/openGLES/extensions/AMD/
DAMD_shader_explicit_vertex_parameter.txt150 interpolateAtSample, and interpolateAtOffset is undefined if <interpolant>
158 …terpolateAtVertexAMD(genType | Returns the value of the input <interpolant> without |
159 …| interpolant, uint vertexIdx) | any interpolation. i.e. the raw output valu…
161 …| interpolant, uint vertexIdx) | vertex of the primitive the value of <inter…
163 …| interpolant, uint vertexIdx) | This return value is equivalent with interp…
164 …| | the input <interpolant> using the following…
/third_party/skia/third_party/externals/opengl-registry/extensions/AMD/
DAMD_shader_explicit_vertex_parameter.txt150 interpolateAtSample, and interpolateAtOffset is undefined if <interpolant>
158 …terpolateAtVertexAMD(genType | Returns the value of the input <interpolant> without |
159 …| interpolant, uint vertexIdx) | any interpolation. i.e. the raw output valu…
161 …| interpolant, uint vertexIdx) | vertex of the primitive the value of <inter…
163 …| interpolant, uint vertexIdx) | This return value is equivalent with interp…
164 …| | the input <interpolant> using the following…
/third_party/glslang/Test/
Dhlsl.intrinsics.negative.vert36 // EvaluateAttributeAtCentroid(inF0); // expected error: only interpolant
37 // EvaluateAttributeAtSample(inF0, 2); // expected error: only interpolant
38 // EvaluateAttributeSnapped(inF0, int2(2)); // expected error: only interpolant
99 … // EvaluateAttributeAtCentroid(inF0); // expected error: only interpolant
100 … // EvaluateAttributeAtSample(inF0, 2); // expected error: only interpolant
101 … // EvaluateAttributeSnapped(inF0, int2(2)); // expected error: only interpolant
144 … // EvaluateAttributeAtCentroid(inF0); // expected error: only interpolant
145 … // EvaluateAttributeAtSample(inF0, 2); // expected error: only interpolant
146 … // EvaluateAttributeSnapped(inF0, int2(2)); // expected error: only interpolant
189 … // EvaluateAttributeAtCentroid(inF0); // expected error: only interpolant
[all …]
Dhlsl.intrinsics.negative.comp20 // EvaluateAttributeAtCentroid(inF0); // expected error: only interpolant
21 // EvaluateAttributeAtSample(inF0, 2); // expected error: only interpolant
22 // EvaluateAttributeSnapped(inF0, int2(2)); // expected error: only interpolant
81 // EvaluateAttributeAtCentroid(inF0); // expected error: only interpolant
82 // EvaluateAttributeAtSample(inF0, 2); // expected error: only interpolant
83 // EvaluateAttributeSnapped(inF0, int2(2)); // expected error: only interpolant
126 … // EvaluateAttributeAtCentroid(inF0); // expected error: only interpolant
127 … // EvaluateAttributeAtSample(inF0, 2); // expected error: only interpolant
128 … // EvaluateAttributeSnapped(inF0, int2(2)); // expected error: only interpolant
Dhlsl.structIoFourWay.frag3 centroid float g; // interpolant input
/third_party/skia/src/gpu/gradients/
DREADME.md7 for an interpolant value "t" within the range [0.0, 1.0]. This encapsulates
23 stops. Both of these top-level effects delegate calculating the t interpolant to
29 layout processors need to generate an interpolant, not a color. So the
32 - `sk_OutColor.r`: computed t interpolant [0.0, 1.0], untiled
/third_party/glslang/Test/baseResults/
D400.frag.out24 ERROR: 0:125: 'interpolateAtCentroid' : first argument must be an interpolant, or interpolant-array…
27 ERROR: 0:134: 'interpolateAtOffset' : first argument must be an interpolant, or interpolant-array e…
28 ERROR: 0:135: 'interpolateAtOffset' : first argument must be an interpolant, or interpolant-array e…
29 ERROR: 0:136: 'interpolateAtOffset' : first argument must be an interpolant, or interpolant-array e…
30 ERROR: 0:139: 'interpolateAtCentroid' : first argument must be an interpolant, or interpolant-array…
31 ERROR: 0:140: 'interpolateAtSample' : first argument must be an interpolant, or interpolant-array e…
D320.frag.out31 ERROR: 0:182: 'interpolateAtCentroid' : first argument must be an interpolant, or interpolant-array…
34 ERROR: 0:186: 'interpolateAtSample' : first argument must be an interpolant, or interpolant-array e…
37 ERROR: 0:191: 'interpolateAtOffset' : first argument must be an interpolant, or interpolant-array e…
38 ERROR: 0:192: 'interpolateAtOffset' : first argument must be an interpolant, or interpolant-array e…
39 ERROR: 0:196: 'interpolateAtCentroid' : first argument must be an interpolant, or interpolant-array…
41 ERROR: 0:197: 'interpolateAtSample' : first argument must be an interpolant, or interpolant-array e…

123