/third_party/skia/resources/sksl/intrinsics/ |
D | ClampUInt.sksl | 14 return (clamp(uintValues.x, 100, 300) == expectedA.x && 15 clamp(uintValues.xy, 100, 300) == expectedA.xy && 16 clamp(uintValues.xyz, 100, 300) == expectedA.xyz && 17 clamp(uintValues.xyzw, 100, 300) == expectedA.xyzw && 18 clamp(constVal.x, 100, 300) == expectedA.x && 19 clamp(constVal.xy, 100, 300) == expectedA.xy && 20 clamp(constVal.xyz, 100, 300) == expectedA.xyz && 21 clamp(constVal.xyzw, 100, 300) == expectedA.xyzw && 22 clamp(uintValues.x, clampLow.x, clampHigh.x ) == expectedB.x && 23 clamp(uintValues.xy, clampLow.xy, clampHigh.xy ) == expectedB.xy && [all …]
|
D | ClampFloat.sksl | 12 return (clamp(testInputs.x, -1, 1) == expectedA.x && 13 clamp(testInputs.xy, -1, 1) == expectedA.xy && 14 clamp(testInputs.xyz, -1, 1) == expectedA.xyz && 15 clamp(testInputs.xyzw, -1, 1) == expectedA.xyzw && 16 clamp(constVal.x, -1, 1) == expectedA.x && 17 clamp(constVal.xy, -1, 1) == expectedA.xy && 18 clamp(constVal.xyz, -1, 1) == expectedA.xyz && 19 clamp(constVal.xyzw, -1, 1) == expectedA.xyzw && 20 clamp(testInputs.x, clampLow.x, clampHigh.x ) == expectedB.x && 21 clamp(testInputs.xy, clampLow.xy, clampHigh.xy ) == expectedB.xy && [all …]
|
D | ClampInt.sksl | 14 return (clamp(intValues.x, -100, 100) == expectedA.x && 15 clamp(intValues.xy, -100, 100) == expectedA.xy && 16 clamp(intValues.xyz, -100, 100) == expectedA.xyz && 17 clamp(intValues.xyzw, -100, 100) == expectedA.xyzw && 18 clamp(constVal.x, -100, 100) == expectedA.x && 19 clamp(constVal.xy, -100, 100) == expectedA.xy && 20 clamp(constVal.xyz, -100, 100) == expectedA.xyz && 21 clamp(constVal.xyzw, -100, 100) == expectedA.xyzw && 22 clamp(intValues.x, clampLow.x, clampHigh.x ) == expectedB.x && 23 clamp(intValues.xy, clampLow.xy, clampHigh.xy ) == expectedB.xy && [all …]
|
/third_party/skia/third_party/externals/spirv-cross/reference/opt/shaders/asm/frag/ |
D | vector-shuffle-oom.asm.frag | 113 vec2 _97 = clamp(_82 + (vec2(0.0, -2.0) * _7._m0.xy), _95, _96); 114 vec3 _109 = _11._m5 * clamp(textureLod(SPIRV_Cross_Combined, _97, 0.0).w * _7._m1, 0.0, 1.0); 121 … _129 = _109 + (textureLod(SPIRV_Cross_Combined_2, _97, 0.0).xyz * clamp(_114 * _113.z, 0.0, 1.0)); 127 vec2 _144 = clamp(_82 + (vec2(-1.0) * _7._m0.xy), _95, _96); 128 vec3 _156 = _11._m5 * clamp(textureLod(SPIRV_Cross_Combined, _144, 0.0).w * _7._m1, 0.0, 1.0); 135 …_176 = _156 + (textureLod(SPIRV_Cross_Combined_2, _144, 0.0).xyz * clamp(_161 * _160.z, 0.0, 1.0)); 141 vec2 _191 = clamp(_82 + (vec2(0.0, -1.0) * _7._m0.xy), _95, _96); 142 vec3 _203 = _11._m5 * clamp(textureLod(SPIRV_Cross_Combined, _191, 0.0).w * _7._m1, 0.0, 1.0); 149 …_223 = _203 + (textureLod(SPIRV_Cross_Combined_2, _191, 0.0).xyz * clamp(_208 * _207.z, 0.0, 1.0)); 155 vec2 _238 = clamp(_82 + (vec2(1.0, -1.0) * _7._m0.xy), _95, _96); [all …]
|
/third_party/skia/third_party/externals/spirv-cross/reference/opt/shaders-msl/asm/frag/ |
D | vector-shuffle-oom.asm.frag | 105 float2 _97 = fast::clamp(_82 + (float2(0.0, -2.0) * _7._m0.xy), _95, _96); 106 … float3 _109 = float3(_11._m5) * fast::clamp(_8.sample(_9, _97, level(0.0)).w * _7._m1, 0.0, 1.0); 112 _129 = _109 + (_14.sample(_15, _97, level(0.0)).xyz * fast::clamp(_114 * _113.z, 0.0, 1.0)); 118 float2 _144 = fast::clamp(_82 + (float2(-1.0) * _7._m0.xy), _95, _96); 119 … float3 _156 = float3(_11._m5) * fast::clamp(_8.sample(_9, _144, level(0.0)).w * _7._m1, 0.0, 1.0); 125 … _176 = _156 + (_14.sample(_15, _144, level(0.0)).xyz * fast::clamp(_161 * _160.z, 0.0, 1.0)); 131 float2 _191 = fast::clamp(_82 + (float2(0.0, -1.0) * _7._m0.xy), _95, _96); 132 … float3 _203 = float3(_11._m5) * fast::clamp(_8.sample(_9, _191, level(0.0)).w * _7._m1, 0.0, 1.0); 138 … _223 = _203 + (_14.sample(_15, _191, level(0.0)).xyz * fast::clamp(_208 * _207.z, 0.0, 1.0)); 144 float2 _238 = fast::clamp(_82 + (float2(1.0, -1.0) * _7._m0.xy), _95, _96); [all …]
|
/third_party/skia/third_party/externals/spirv-cross/reference/shaders/asm/frag/ |
D | vector-shuffle-oom.asm.frag | 113 vec2 _97 = clamp(_82 + (vec3(0.0, -2.0, 0.5).xy * _7._m0.xy), _88.xy, _88.zw); 114 vec3 _109 = _11._m5 * clamp(textureLod(SPIRV_Cross_Combined, _97, 0.0).w * _7._m1, 0.0, 1.0); 120 …_129 = _109 + (textureLod(SPIRV_Cross_Combined_2, _97, 0.0).xyz * clamp(_113.y * _113.z, 0.0, 1.0)… 130 vec2 _144 = clamp(_82 + (vec3(-1.0, -1.0, 0.5).xy * _7._m0.xy), _88.xy, _88.zw); 131 vec3 _156 = _11._m5 * clamp(textureLod(SPIRV_Cross_Combined, _144, 0.0).w * _7._m1, 0.0, 1.0); 137 …_176 = _156 + (textureLod(SPIRV_Cross_Combined_2, _144, 0.0).xyz * clamp(_160.y * _160.z, 0.0, 1.0… 147 vec2 _191 = clamp(_82 + (vec3(0.0, -1.0, 0.75).xy * _7._m0.xy), _88.xy, _88.zw); 148 vec3 _203 = _11._m5 * clamp(textureLod(SPIRV_Cross_Combined, _191, 0.0).w * _7._m1, 0.0, 1.0); 154 …_223 = _203 + (textureLod(SPIRV_Cross_Combined_2, _191, 0.0).xyz * clamp(_207.y * _207.z, 0.0, 1.0… 164 vec2 _238 = clamp(_82 + (vec3(1.0, -1.0, 0.5).xy * _7._m0.xy), _88.xy, _88.zw); [all …]
|
/third_party/skia/third_party/externals/spirv-cross/reference/opt/shaders-ue4/asm/frag/ |
D | texture-atomics.asm.graphics-robust-access.frag | 45 …uint _310 = uint(clamp(int(_103 + 1u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / … 46 …ectBoxBounds._m0[_310].xy > _96.xy) && all(CulledObjectBoxBounds._m0[uint(clamp(int(_103), int(0u)… 48 …float3 _121 = float3(0.5) * (CulledObjectBoxBounds._m0[uint(clamp(int(_103), int(0u), int(min((((C… 54 …clamp(int(_103 + 2u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 214748… 56 …clamp(int(_103 + 2u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 214748… 58 …clamp(int(_103 + 2u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 214748… 60 …clamp(int(_103 + 2u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 214748… 62 …clamp(int(_103 + 2u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 214748… 64 …clamp(int(_103 + 2u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 214748… 66 …clamp(int(_103 + 2u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 214748… [all …]
|
/third_party/mesa3d/src/panfrost/bifrost/test/ |
D | test-optimizer.cpp | 95 I->clamp = BI_CLAMP_CLAMP_0_1; in TEST_F() 98 I->clamp = BI_CLAMP_CLAMP_0_1; in TEST_F() 103 I->clamp = BI_CLAMP_CLAMP_0_1; in TEST_F() 106 I->clamp = BI_CLAMP_CLAMP_0_1; in TEST_F() 111 I->clamp = BI_CLAMP_CLAMP_0_INF; in TEST_F() 114 I->clamp = BI_CLAMP_CLAMP_0_INF; in TEST_F() 122 I->clamp = BI_CLAMP_CLAMP_0_1; in TEST_F() 125 I->clamp = BI_CLAMP_CLAMP_0_1; in TEST_F() 130 I->clamp = BI_CLAMP_CLAMP_0_1; in TEST_F() 133 I->clamp = BI_CLAMP_CLAMP_0_1; in TEST_F() [all …]
|
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-msl/asm/frag/ |
D | vector-shuffle-oom.asm.frag | 135 float2 _97 = fast::clamp(_82 + (float3(0.0, -2.0, 0.5).xy * _7._m0.xy), _88.xy, _88.zw); 136 … float3 _109 = float3(_11._m5) * fast::clamp(_8.sample(_9, _97, level(0.0)).w * _7._m1, 0.0, 1.0); 141 … _129 = _109 + (_14.sample(_15, _97, level(0.0)).xyz * fast::clamp(_113.y * _113.z, 0.0, 1.0)); 151 float2 _144 = fast::clamp(_82 + (float3(-1.0, -1.0, 0.5).xy * _7._m0.xy), _88.xy, _88.zw); 152 … float3 _156 = float3(_11._m5) * fast::clamp(_8.sample(_9, _144, level(0.0)).w * _7._m1, 0.0, 1.0); 157 … _176 = _156 + (_14.sample(_15, _144, level(0.0)).xyz * fast::clamp(_160.y * _160.z, 0.0, 1.0)); 167 float2 _191 = fast::clamp(_82 + (float3(0.0, -1.0, 0.75).xy * _7._m0.xy), _88.xy, _88.zw); 168 … float3 _203 = float3(_11._m5) * fast::clamp(_8.sample(_9, _191, level(0.0)).w * _7._m1, 0.0, 1.0); 173 … _223 = _203 + (_14.sample(_15, _191, level(0.0)).xyz * fast::clamp(_207.y * _207.z, 0.0, 1.0)); 183 float2 _238 = fast::clamp(_82 + (float3(1.0, -1.0, 0.5).xy * _7._m0.xy), _88.xy, _88.zw); [all …]
|
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-msl-no-opt/frag/ |
D | min-max-clamp.invalid.asm.frag | 22 res = fast::clamp(in.v1, in.v1, in.v1); 25 res = precise::clamp(in.v1, in.v1, in.v1); 28 res2 = fast::clamp(in.v2, in.v2, in.v2); 31 res2 = precise::clamp(in.v2, in.v2, in.v2); 34 res3 = fast::clamp(in.v3, in.v3, in.v3); 37 res3 = precise::clamp(in.v3, in.v3, in.v3); 40 res4 = fast::clamp(in.v4, in.v4, in.v4); 43 res4 = precise::clamp(in.v4, in.v4, in.v4); 46 hres = clamp(in.h1, in.h1, in.h1); 49 hres = clamp(in.h1, in.h1, in.h1); [all …]
|
/third_party/skia/modules/canvaskit/ |
D | color.js | 15 return CanvasKit.Color4f(clamp(r)/255, clamp(g)/255, clamp(b)/255, a); 28 return (((clamp(a) << 24) | (clamp(r) << 16) | (clamp(g) << 8) | (clamp(b) << 0) 152 …return ((clamp(c[3]*255) << 24) | (clamp(c[0]*255) << 16) | (clamp(c[1]*255) << 8) | (clamp(c[2]*2… 193 function clamp(c) { function
|
/third_party/skia/tests/sksl/shared/ |
D | Overflow.glsl | 16 …clamp(huge, 0.0, 1.0)) * clamp(float(hugeI), 0.0, 1.0)) * clamp(float(hugeU), 0.0, 1.0)) * clamp(f…
|
/third_party/skia/tests/sksl/intrinsics/ |
D | ClampFloat.glsl | 11 …clamp(testInputs.x, -1.0, 1.0) == expectedA.x && clamp(testInputs.xy, -1.0, 1.0) == expectedA.xy) …
|
D | ClampInt.glsl | 12 …clamp(intValues.x, -100, 100) == expectedA.x && clamp(intValues.xy, -100, 100) == expectedA.xy) &&…
|
D | ClampInt.metal | 22 …clamp(intValues.x, -100, 100) == expectedA.x && all(clamp(intValues.xy, -100, 100) == expectedA.xy…
|
D | ClampUInt.glsl | 12 …clamp(uintValues.x, 100u, 300u) == expectedA.x && clamp(uintValues.xy, 100u, 300u) == expectedA.xy…
|
D | ClampUInt.metal | 22 …clamp(uintValues.x, 100u, 300u) == expectedA.x && all(clamp(uintValues.xy, 100u, 300u) == expected…
|
D | ClampFloat.metal | 21 …clamp(_uniforms.testInputs.x, -1.0h, 1.0h) == expectedA.x && all(clamp(_uniforms.testInputs.xy, -1…
|
/third_party/skia/third_party/externals/opengl-registry/extensions/ARB/ |
D | ARB_polygon_offset_clamp.txt | 56 void PolygonOffsetClamp(float factor, float units, float clamp); 77 void PolygonOffsetClamp(float factor, float units, float clamp); 84 clamped to a minimum or maximum value specified by <clamp>. The 85 values <factor>, <units>, and <clamp> may each be positive, 87 to calling the command PolygonOffsetClamp with <clamp> equal to 94 | m x <factor> + r x <units>, if <clamp> = 0 or NaN; 96 o = < min(m x <factor> + r x <units>, <clamp>), if <clamp> > 0; 98 |_ max(m x <factor> + r x <units>, <clamp>), if <clamp> < 0. 118 4 FLOAT32 clamp 128 POLYGON_OFFSET_CLAMP R GetFloatv 0 Polygon offset clamp 14.6.5 polygon [all …]
|
/third_party/skia/third_party/externals/opengl-registry/extensions/EXT/ |
D | EXT_polygon_offset_clamp.txt | 59 void PolygonOffsetClampEXT(float factor, float units, float clamp); 80 void PolygonOffsetClampEXT(float factor, float units, float clamp); 87 clamped to a minimum or maximum value specified by <clamp>. The 88 values <factor>, <units>, and <clamp> may each be positive, 90 to calling the command PolygonOffsetClampEXT with <clamp> equal to 97 | m x <factor> + r x <units>, if <clamp> = 0 or NaN; 99 o = < min(m x <factor> + r x <units>, <clamp>), if <clamp> > 0; 101 |_ max(m x <factor> + r x <units>, <clamp>), if <clamp> < 0. 121 4 FLOAT32 clamp 131 POLYGON_OFFSET_CLAMP_EXT R GetFloatv 0 Polygon offset clamp 3.6.4 polygon [all …]
|
/third_party/openGLES/extensions/EXT/ |
D | EXT_polygon_offset_clamp.txt | 59 void PolygonOffsetClampEXT(float factor, float units, float clamp); 80 void PolygonOffsetClampEXT(float factor, float units, float clamp); 87 clamped to a minimum or maximum value specified by <clamp>. The 88 values <factor>, <units>, and <clamp> may each be positive, 90 to calling the command PolygonOffsetClampEXT with <clamp> equal to 97 | m x <factor> + r x <units>, if <clamp> = 0 or NaN; 99 o = < min(m x <factor> + r x <units>, <clamp>), if <clamp> > 0; 101 |_ max(m x <factor> + r x <units>, <clamp>), if <clamp> < 0. 121 4 FLOAT32 clamp 131 POLYGON_OFFSET_CLAMP_EXT R GetFloatv 0 Polygon offset clamp 3.6.4 polygon [all …]
|
/third_party/openGLES/extensions/ARB/ |
D | ARB_polygon_offset_clamp.txt | 71 void PolygonOffsetClamp(float factor, float units, float clamp); 92 void PolygonOffsetClamp(float factor, float units, float clamp); 99 clamped to a minimum or maximum value specified by <clamp>. The 100 values <factor>, <units>, and <clamp> may each be positive, 102 to calling the command PolygonOffsetClamp with <clamp> equal to 109 | m x <factor> + r x <units>, if <clamp> = 0 or NaN; 111 o = < min(m x <factor> + r x <units>, <clamp>), if <clamp> > 0; 113 |_ max(m x <factor> + r x <units>, <clamp>), if <clamp> < 0. 133 4 FLOAT32 clamp 143 POLYGON_OFFSET_CLAMP R GetFloatv 0 Polygon offset clamp 14.6.5 polygon [all …]
|
/third_party/vk-gl-cts/framework/common/ |
D | tcuTexCompareVerifier.cpp | 66 const float cmpValue = (clampValues) ? (de::clamp(cmpValue_, 0.0f, 1.0f)) : (cmpValue_); in execCompare() 67 …const float cmpReference = (clampValues) ? (de::clamp(cmpReference_, 0.0f, 1.0f)) : (cmpReference… in execCompare() 615 const float minA = de::clamp((uBounds.x()-0.5f)-float(i), 0.0f, 1.0f); in isLinearCompareResultValid() 616 const float maxA = de::clamp((uBounds.y()-0.5f)-float(i), 0.0f, 1.0f); in isLinearCompareResultValid() 617 const float minB = de::clamp((vBounds.x()-0.5f)-float(j), 0.0f, 1.0f); in isLinearCompareResultValid() 618 const float maxB = de::clamp((vBounds.y()-0.5f)-float(j), 0.0f, 1.0f); in isLinearCompareResultValid() 741 const float minA0 = de::clamp((uBounds0.x()-0.5f)-float(i0), 0.0f, 1.0f); in isLinearMipmapLinearCompareResultValid() 742 const float maxA0 = de::clamp((uBounds0.y()-0.5f)-float(i0), 0.0f, 1.0f); in isLinearMipmapLinearCompareResultValid() 743 const float minB0 = de::clamp((vBounds0.x()-0.5f)-float(j0), 0.0f, 1.0f); in isLinearMipmapLinearCompareResultValid() 744 const float maxB0 = de::clamp((vBounds0.y()-0.5f)-float(j0), 0.0f, 1.0f); in isLinearMipmapLinearCompareResultValid() [all …]
|
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-no-opt/asm/frag/ |
D | inliner-dominator-inside-loop.asm.frag | 128 float _160 = clamp(1.0 - (_146.View_Depth.w * 0.00333332992158830165863037109375), 0.0, 1.0); 130 float _165 = clamp(1.0 - _163, 0.0, 1.0); 145 …xture(SPIRV_Cross_CombinedDiffuseMapTextureDiffuseMapSampler, _166), vec4(clamp((_160 * _180) - (0… 162 …texture(SPIRV_Cross_CombinedNormalMapTextureNormalMapSampler, _166), vec4(clamp((_165 * _207) - (0… 170 vec3 _232 = vec3(_224, sqrt(clamp(1.0 + dot(-_224, _224), 0.0, 1.0))); 173 vec2 _252 = _232.xy + (vec3(_240, sqrt(clamp(1.0 + dot(-_240, _240), 0.0, 1.0))).xy * 0.0); 190 …ure(SPIRV_Cross_CombinedSpecularMapTextureSpecularMapSampler, _166), vec4(clamp((_165 * _285) - (0… 214 …float _357 = clamp(dot(step(_19.CB0.LightConfig3.xyz, abs(IN_LightPosition_Fog.xyz - _19.CB0.Light… 217 …float _392 = (1.0 - (((step(_376.x, IN_PosLightSpace_Reflectance.xyz.z) * clamp(9.0 - (20.0 * abs(… 220 …clamp(_333, 0.0, 1.0)) + (_19.CB0.Lamp1Color * max(-_333, 0.0))) * _392)) + _368.xyz) * _404.xyz) … [all …]
|
/third_party/glslang/Test/ |
D | hlsl.intrinsics.promote.frag | 35 float2 r20 = clamp(i2, u2, f2); // 3 args, converts all to best type. 36 uint2 r21 = clamp(b2, u2, b2); 37 float2 r22 = clamp(b2, f2, b2); 46 float2 r40 = clamp(i, u2, f2); // 3 args, converts all to best type. 47 uint2 r41 = clamp(b2, u, b2); 48 float2 r42 = clamp(b2, f, b); 49 int2 r43 = clamp(i, i2, u2);
|