Home
last modified time | relevance | path

Searched refs:clamp (Results 1 – 25 of 1326) sorted by relevance

12345678910>>...54

/third_party/skia/resources/sksl/intrinsics/
DClampFloat.sksl12 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 …]
DClampUInt.sksl14 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 …]
DClampInt.sksl14 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/
Dvector-shuffle-oom.asm.frag113 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/
Dvector-shuffle-oom.asm.frag105 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/node/test/parallel/
Dtest-internal-webidl-converttoint.js34 assert.strictEqual(convertToInt('x', NaN, 64, { clamp: true }), 0); property
35 assert.strictEqual(convertToInt('x', Infinity, 64, { clamp: true }), Number.MAX_SAFE_INTEGER); property
36 assert.strictEqual(convertToInt('x', -Infinity, 64, { clamp: true }), 0); property
37 assert.strictEqual(convertToInt('x', -Infinity, 64, { signed: true, clamp: true }), Number.MIN_SAFE… property
38 assert.strictEqual(convertToInt('x', 0x1_0000_0000, 32, { clamp: true }), 0xFFFF_FFFF); property
39 assert.strictEqual(convertToInt('x', 0xFFFF_FFFF, 32, { clamp: true }), 0xFFFF_FFFF); property
40 assert.strictEqual(convertToInt('x', 0x8000_0000, 32, { clamp: true, signed: true }), 0x7FFF_FFFF); property
41 assert.strictEqual(convertToInt('x', 0xFFFF_FFFF, 32, { clamp: true, signed: true }), 0x7FFF_FFFF); property
42 assert.strictEqual(convertToInt('x', 0.5, 64, { clamp: true }), 0); property
43 assert.strictEqual(convertToInt('x', 1.5, 64, { clamp: true }), 2); property
[all …]
/third_party/skia/third_party/externals/spirv-cross/reference/shaders/asm/frag/
Dvector-shuffle-oom.asm.frag113 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/
Dtexture-atomics.asm.graphics-robust-access.frag45 …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…
54clamp(int(_103 + 2u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 214748…
56clamp(int(_103 + 2u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 214748…
58clamp(int(_103 + 2u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 214748…
60clamp(int(_103 + 2u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 214748…
62clamp(int(_103 + 2u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 214748…
64clamp(int(_103 + 2u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 214748…
66clamp(int(_103 + 2u), int(0u), int(min((((CulledObjectBoxBoundsBufferSize - 0) / 16) - 1u), 214748…
[all …]
/third_party/mesa3d/src/panfrost/bifrost/test/
Dtest-optimizer.cpp95 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/
Dvector-shuffle-oom.asm.frag135 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/
Dmin-max-clamp.invalid.asm.frag22 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/
Dcolor.js15 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/
DOverflow.glsl16clamp(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/
DClampFloat.glsl11clamp(testInputs.x, -1.0, 1.0) == expectedA.x && clamp(testInputs.xy, -1.0, 1.0) == expectedA.xy) …
DClampInt.glsl12clamp(intValues.x, -100, 100) == expectedA.x && clamp(intValues.xy, -100, 100) == expectedA.xy) &&…
DClampInt.metal22clamp(intValues.x, -100, 100) == expectedA.x && all(clamp(intValues.xy, -100, 100) == expectedA.xy…
DClampUInt.glsl12clamp(uintValues.x, 100u, 300u) == expectedA.x && clamp(uintValues.xy, 100u, 300u) == expectedA.xy…
DClampUInt.metal22clamp(uintValues.x, 100u, 300u) == expectedA.x && all(clamp(uintValues.xy, 100u, 300u) == expected…
DClampFloat.metal21clamp(_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/
DARB_polygon_offset_clamp.txt56 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/openGLES/extensions/EXT/
DEXT_polygon_offset_clamp.txt59 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/skia/third_party/externals/opengl-registry/extensions/EXT/
DEXT_polygon_offset_clamp.txt59 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/
DARB_polygon_offset_clamp.txt71 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/
DtcuTexCompareVerifier.cpp66 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/
Dinliner-dominator-inside-loop.asm.frag128 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(…
220clamp(_333, 0.0, 1.0)) + (_19.CB0.Lamp1Color * max(-_333, 0.0))) * _392)) + _368.xyz) * _404.xyz) …
[all …]

12345678910>>...54