/third_party/skia/src/core/ |
D | SkDrawShadowInfo.h | 60 inline SkScalar SpotBlurRadius(SkScalar occluderZ, SkScalar lightZ, SkScalar lightRadius) { in SpotBlurRadius() argument 61 return lightRadius*divide_and_pin(occluderZ, lightZ - occluderZ, 0.0f, 0.95f); in SpotBlurRadius() 65 SkScalar lightRadius, in GetSpotParams() argument 68 *blurRadius = lightRadius*zRatio; in GetSpotParams() 74 SkScalar lightZ, SkScalar lightRadius, in GetDirectionalParams() argument 76 *blurRadius = lightRadius*occluderZ; in GetDirectionalParams() 87 bool GetSpotShadowTransform(const SkPoint3& lightPos, SkScalar lightRadius,
|
D | SkDrawShadowInfo.cpp | 33 bool GetSpotShadowTransform(const SkPoint3& lightPos, SkScalar lightRadius, in GetSpotShadowTransform() argument 48 lightPos.fZ, lightRadius, radius, in GetSpotShadowTransform() 52 lightPos.fZ, lightRadius, radius, in GetSpotShadowTransform() 132 *radius = SkDrawShadowMetrics::SpotBlurRadius(occluderHeight, lightPos.fZ, lightRadius); in GetSpotShadowTransform()
|
/third_party/skia/src/utils/ |
D | SkShadowUtils.cpp | 577 const SkPoint3& lightPos, SkScalar lightRadius, in fill_shadow_rec() argument 593 rec->fLightRadius = lightRadius; in fill_shadow_rec() 603 const SkPoint3& lightPos, SkScalar lightRadius, in DrawShadow() argument 607 if (!fill_shadow_rec(path, zPlaneParams, lightPos, lightRadius, ambientColor, spotColor, in DrawShadow() 617 SkScalar lightRadius, uint32_t flags, SkRect* bounds) { in GetLocalBounds() argument 619 if (!fill_shadow_rec(path, zPlaneParams, lightPos, lightRadius, SK_ColorBLACK, SK_ColorBLACK, in GetLocalBounds() 670 float lightRadius = rec.fLightRadius; in drawShadow() local 757 devLightPos, lightRadius, in drawShadow() 777 factory.fLightRadius = lightRadius; in drawShadow() 786 lightRadius, &radius, &scale, in drawShadow() [all …]
|
D | SkShadowTessellator.h | 39 const SkPoint3& lightPos, SkScalar lightRadius, bool transparent,
|
D | SkShadowTessellator.cpp | 990 SkScalar lightRadius, bool transparent, bool directional); 1002 const SkPoint3& lightPos, SkScalar lightRadius, in SkSpotShadowTessellator() argument 1009 if (!SkDrawShadowMetrics::GetSpotShadowTransform(lightPos, lightRadius, ctm, zPlaneParams, in SkSpotShadowTessellator() 1158 SkScalar lightRadius, bool transparent, in MakeSpot() argument 1162 !SkScalarIsFinite(lightRadius) || !(lightRadius >= SK_ScalarNearlyZero)) { in MakeSpot() 1165 SkSpotShadowTessellator spotTess(path, ctm, zPlane, lightPos, lightRadius, transparent, in MakeSpot()
|
/third_party/skia/include/utils/ |
D | SkShadowUtils.h | 45 const SkPoint3& lightPos, SkScalar lightRadius, 71 SkScalar lightRadius, uint32_t flags, SkRect* bounds);
|
/third_party/skia/third_party/externals/tint/test/bug/tint/ |
D | 1121.wgsl.expected.wgsl | 65 var lightRadius : f32 = lightsBuffer.lights[index].radius; 66 var boxMin : vec4<f32> = (lightPos - vec4<f32>(vec3<f32>(lightRadius), 0.0)); 67 var boxMax : vec4<f32> = (lightPos + vec4<f32>(vec3<f32>(lightRadius), 0.0));
|
D | 1121.wgsl.expected.glsl | 59 float lightRadius = lightsBuffer.lights[index].radius; 60 vec4 boxMin = (lightPos - vec4(vec3(lightRadius), 0.0f)); 61 vec4 boxMax = (lightPos + vec4(vec3(lightRadius), 0.0f));
|
D | 1121.wgsl.expected.hlsl | 46 float lightRadius = asfloat(lightsBuffer.Load(((32u * index) + 28u))); 47 float4 boxMin = (lightPos - float4(float3((lightRadius).xxx), 0.0f)); 48 float4 boxMax = (lightPos + float4(float3((lightRadius).xxx), 0.0f));
|
D | 1121.wgsl | 70 var lightRadius: f32 = lightsBuffer.lights[index].radius; 71 var boxMin: vec4<f32> = lightPos - vec4<f32>(vec3<f32>(lightRadius), 0.0); 72 var boxMax: vec4<f32> = lightPos + vec4<f32>(vec3<f32>(lightRadius), 0.0);
|
D | 1121.wgsl.expected.msl | 70 float lightRadius = (*(tint_symbol_2)).lights[index].radius; 71 float4 boxMin = (lightPos - float4(float3(lightRadius), 0.0f)); 72 float4 boxMax = (lightPos + float4(float3(lightRadius), 0.0f));
|
D | 1121.wgsl.expected.spvasm | 47 OpName %lightRadius "lightRadius" 194 %lightRadius = OpVariable %_ptr_Function_float Function %101 291 OpStore %lightRadius %131 293 %134 = OpLoad %float %lightRadius 302 %144 = OpLoad %float %lightRadius
|
/third_party/skia/samplecode/ |
D | SampleMaterialShadows.cpp | 45 const SkPoint3& lightPos, SkScalar lightRadius, SkScalar spotAlpha) { in drawShadowedPath() argument 51 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, lightPos, lightRadius, in drawShadowedPath()
|
/third_party/skia/modules/canvaskit/tests/ |
D | core.spec.js | 997 const lightRadius = 20; constant 1004 canvas.drawShadow(path, zPlaneParams, lightPos, lightRadius, 1009 path, zPlaneParams, lightPos, lightRadius, 0); 1013 path, zPlaneParams, lightPos, lightRadius, 0); 1024 canvas.drawShadow(path, mZPlane, lightTA, lightRadius, 1031 path, mZPlane, mLight, lightRadius,
|
/third_party/skia/modules/canvaskit/ |
D | interface.js | 723 CanvasKit.Canvas.prototype.drawShadow = function(path, zPlaneParams, lightPos, lightRadius, argument 731 this._drawShadow(path, zPlanePtr, lightPosPtr, lightRadius, ambiPtr, spotPtr, flags); 736 CanvasKit.getShadowLocalBounds = function(ctm, path, zPlaneParams, lightPos, lightRadius, argument 742 var ok = this._getShadowLocalBounds(ctmPtr, path, zPlanePtr, lightPosPtr, lightRadius,
|
D | canvaskit_bindings.cpp | 840 SkScalar lightRadius, uint32_t flags, WASMPointerF32 outPtr) -> bool { in EMSCRIPTEN_BINDINGS() argument 847 return SkShadowUtils::GetLocalBounds(ctm, path, *zPlaneParams, *lightPos, lightRadius, in EMSCRIPTEN_BINDINGS() 1095 SkScalar lightRadius, in EMSCRIPTEN_BINDINGS() 1102 SkShadowUtils::DrawShadow(&self, path, *zPlaneParams, *lightPos, lightRadius, in EMSCRIPTEN_BINDINGS()
|
/third_party/skia/tools/perf-canvaskit-puppeteer/ |
D | canvas_perf.js | 241 ctx.lightRadius = 30; 249 ctx.canvas.drawShadow(ctx.path, ctx.zPlaneParams, ctx.lightPos, ctx.lightRadius,
|
/third_party/skia/modules/canvaskit/npm_build/types/ |
D | index.d.ts | 144 lightPos: InputVector3, lightRadius: number, flags: number, 1381 drawShadow(path: Path, zPlaneParams: InputVector3, lightPos: InputVector3, lightRadius: number,
|