/external/swiftshader/src/Shader/ |
D | PixelShader.cpp | 239 bool interpolant[MAX_FRAGMENT_INPUTS][4] = {{false}}; // Interpolants in use in analyzeInterpolants() local 261 interpolant[index][0] = true; in analyzeInterpolants() 262 interpolant[index][1] = true; in analyzeInterpolants() 263 interpolant[index][2] = true; in analyzeInterpolants() 268 interpolant[index][0] = true; in analyzeInterpolants() 269 interpolant[index][1] = true; in analyzeInterpolants() 270 interpolant[index][2] = true; in analyzeInterpolants() 274 interpolant[index][0] = true; in analyzeInterpolants() 275 interpolant[index][1] = true; in analyzeInterpolants() 276 interpolant[index][2] = true; in analyzeInterpolants() [all …]
|
D | PixelRoutine.cpp | 144 for(int interpolant = 0; interpolant < MAX_FRAGMENT_INPUTS; interpolant++) in quad() local 148 if(state.interpolant[interpolant].component & (1 << component)) in quad() 150 if(!state.interpolant[interpolant].centroid) in quad() 152 …interpolant][component] = interpolate(xxxx, Dv[interpolant][component], rhw, primitive + OFFSET(Pr… in quad() 156 …interpolant][component] = interpolateCentroid(XXXX, YYYY, rhwCentroid, primitive + OFFSET(Primitiv… in quad() 163 switch(state.interpolant[interpolant].project) in quad() 168 rcp = reciprocal(v[interpolant].y); in quad() 169 v[interpolant].x = v[interpolant].x * rcp; in quad() 172 rcp = reciprocal(v[interpolant].z); in quad() 173 v[interpolant].x = v[interpolant].x * rcp; in quad() [all …]
|
D | SetupRoutine.cpp | 456 for(int interpolant = 0; interpolant < MAX_FRAGMENT_INPUTS; interpolant++) in generate() local 460 int attribute = state.gradient[interpolant][component].attribute; in generate() 461 bool flat = state.gradient[interpolant][component].flat; in generate() 462 bool wrap = state.gradient[interpolant][component].wrap; in generate() 466 …v0, v1, v2, OFFSET(Vertex,v[attribute][component]), OFFSET(Primitive,V[interpolant][component]), f… in generate()
|
D | PixelPipeline.cpp | 1547 if(state.interpolant[2 + coordinate].component & 0x01) in TEXCOORD() 1558 if(state.interpolant[2 + coordinate].component & 0x02) in TEXCOORD() 1569 if(state.interpolant[2 + coordinate].component & 0x04) in TEXCOORD() 1595 if(state.interpolant[2 + coordinate].component & 0x01) in TEXCRD() 1607 if(state.interpolant[2 + coordinate].component & 0x02) in TEXCRD() 1619 if(state.interpolant[2 + coordinate].component & 0x04) in TEXCRD()
|
/external/swiftshader/src/Renderer/ |
D | SetupProcessor.cpp | 107 for(int interpolant = 0; interpolant < MAX_FRAGMENT_INPUTS; interpolant++) in update() local 111 state.gradient[interpolant][component].attribute = Unused; in update() 112 state.gradient[interpolant][component].flat = false; in update() 113 state.gradient[interpolant][component].wrap = false; in update() 127 for(int interpolant = 0; interpolant < MAX_FRAGMENT_INPUTS; interpolant++) in update() local 131 int project = context->isProjectionComponent(interpolant - 2, component) ? 1 : 0; in update() 132 …const Shader::Semantic& semantic = context->pixelShader->getInput(interpolant, component - project… in update() 136 int input = interpolant; in update() 154 state.gradient[interpolant][component].attribute = input; in update() 155 state.gradient[interpolant][component].flat = flat; in update() [all …]
|
D | QuadRasterizer.cpp | 241 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()
|
D | PixelProcessor.cpp | 1130 for(int interpolant = 0; interpolant < MAX_FRAGMENT_INPUTS; interpolant++) in update() local 1134 const Shader::Semantic &semantic = context->pixelShader->getInput(interpolant, component); in update() 1146 state.interpolant[interpolant].component |= 1 << component; in update() 1150 state.interpolant[interpolant].flat |= 1 << component; in update() 1159 for(int interpolant = 0; interpolant < MAX_FRAGMENT_INPUTS; interpolant++) in update() local 1163 … state.interpolant[interpolant].centroid = context->pixelShader->getInput(interpolant, 0).centroid; in update()
|
D | PixelProcessor.hpp | 109 Interpolant interpolant[MAX_FRAGMENT_INPUTS]; member
|
/external/skqp/src/sksl/ |
D | sksl.inc | 541 float interpolateAtSample(float interpolant, int sample); 542 float2 interpolateAtSample(float2 interpolant, int sample); 543 float3 interpolateAtSample(float3 interpolant, int sample); 544 float4 interpolateAtSample(float4 interpolant, int sample); 545 float interpolateAtOffset(float interpolant, float2 offset); 546 float2 interpolateAtOffset(float2 interpolant, float2 offset); 547 float3 interpolateAtOffset(float3 interpolant, float2 offset); 548 float4 interpolateAtOffset(float4 interpolant, float2 offset);
|
/external/skia/src/sksl/ |
D | sksl.inc | 541 float interpolateAtSample(float interpolant, int sample); 542 float2 interpolateAtSample(float2 interpolant, int sample); 543 float3 interpolateAtSample(float3 interpolant, int sample); 544 float4 interpolateAtSample(float4 interpolant, int sample); 545 float interpolateAtOffset(float interpolant, float2 offset); 546 float2 interpolateAtOffset(float2 interpolant, float2 offset); 547 float3 interpolateAtOffset(float3 interpolant, float2 offset); 548 float4 interpolateAtOffset(float4 interpolant, float2 offset);
|
/external/mesa3d/src/compiler/glsl/ |
D | builtin_functions.cpp | 5265 ir_variable *interpolant = in_var(type, "interpolant"); in _interpolateAtCentroid() local 5266 interpolant->data.must_be_shader_input = 1; in _interpolateAtCentroid() 5267 MAKE_SIG(type, fs_interpolate_at, 1, interpolant); in _interpolateAtCentroid() 5269 body.emit(ret(interpolate_at_centroid(interpolant))); in _interpolateAtCentroid() 5277 ir_variable *interpolant = in_var(type, "interpolant"); in _interpolateAtOffset() local 5278 interpolant->data.must_be_shader_input = 1; in _interpolateAtOffset() 5280 MAKE_SIG(type, fs_interpolate_at, 2, interpolant, offset); in _interpolateAtOffset() 5282 body.emit(ret(interpolate_at_offset(interpolant, offset))); in _interpolateAtOffset() 5290 ir_variable *interpolant = in_var(type, "interpolant"); in _interpolateAtSample() local 5291 interpolant->data.must_be_shader_input = 1; in _interpolateAtSample() [all …]
|