/external/skia/resources/sksl/shared/ |
D | VectorConstructors.sksl | 5 bool check(float2 v1, float2 v2, float2 v3, float3 v4, int2 v5, int2 v6, float2 v7, float2 v8, 6 float4 v9, int2 v10, bool4 v11, float2 v12, float2 v13, float2 v14, bool2 v15, 15 half4 main(float2 coords) { 16 float2 v1 = float2(1); 17 float2 v2 = float2(1, 2); 18 float2 v3 = float2(float2(1)); 19 float3 v4 = float3(float2(1), 1.0); 21 int2 v6 = int2(float2(1, 2)); 22 float2 v7 = float2(int2(1, 2)); 23 float2 v8 = float2(v5); [all …]
|
D | ArrayTypes.sksl | 2 float2 v; 6 z[0].v = float2(0, 1); 7 z[1].v = float2(2, 1); 10 half4 main(float2 coords) { 11 float2 x[2]; 12 x[0] = float2( 0, 0); 13 x[1] = float2( 1, 0); 14 float2 y[2]; 15 y[0] = float2( 0, 1); 16 y[1] = float2(-1, 2);
|
/external/llvm-project/libclc/generic/lib/math/ |
D | tables.cl | 27 DECLARE_TABLE(float2, LOGE_TBL, 129) = { 28 (float2)(0x0.000000p+0f, 0x0.000000p+0f), 29 (float2)(0x1.fe0000p-8f, 0x1.535882p-23f), 30 (float2)(0x1.fc0000p-7f, 0x1.5161f8p-20f), 31 (float2)(0x1.7b8000p-6f, 0x1.1b07d4p-18f), 32 (float2)(0x1.f82000p-6f, 0x1.361cf0p-19f), 33 (float2)(0x1.39e000p-5f, 0x1.0f73fcp-18f), 34 (float2)(0x1.774000p-5f, 0x1.63d8cap-19f), 35 (float2)(0x1.b42000p-5f, 0x1.bae232p-18f), 36 (float2)(0x1.f0a000p-5f, 0x1.86008ap-20f), [all …]
|
/external/skia/tests/sksl/shared/ |
D | VectorConstructors.metal | 14 …b3(float2 v1, float2 v2, float2 v3, float3 v4, int2 v5, int2 v6, float2 v7, float2 v8, float4 v9, … 20 float2 v1 = float2(1.0); 21 float2 v2 = float2(1.0, 2.0); 22 float2 v3 = float2(1.0); 23 float3 v4 = float3(float2(1.0), 1.0); 26 float2 v7 = float2(1.0, 2.0); 27 float2 v8 = float2(v5); 31 float2 v12 = float2(1.0, 0.0); 32 float2 v13 = float2(0.0); 33 float2 v14 = float2(0.0);
|
D | ArrayTypes.metal | 5 float2 v; 19 z[0].v = float2(0.0, 1.0); 20 z[1].v = float2(2.0, 1.0); 25 array<float2, 2> x; 26 x[0] = float2(0.0, 0.0); 27 x[1] = float2(1.0, 0.0); 28 array<float2, 2> y; 29 y[0] = float2(0.0, 1.0); 30 y[1] = float2(-1.0, 2.0);
|
/external/skia/resources/sksl/folding/ |
D | MatrixFoldingES2.sksl | 6 ok = ok && (float2x2(float2(1.0, 0.0), float2(0.0, 1.0)) == 7 float2x2(float2(1.0, 0.0), float2(0.0, 1.0))); 8 ok = ok && !(float2x2(float2(1.0, 0.0), float2(1.0, 1.0)) == 9 float2x2(float2(1.0, 0.0), float2(0.0, 1.0))); 18 ok = ok && (float2x2(1) == float2x2(float2(1.0, 0.0), float2(0.0, 1.0))); 19 ok = ok && !(float2x2(2) == float2x2(float2(1.0, 0.0), float2(0.0, 1.0))); 33 ok = ok && (float2x2(1.0, 0.0, float2(0.0, 1.0)) == float2x2(1.0)); 34 ok = ok && (float2x2(float2(1.0, 0.0), 0.0, 1.0) == float2x2(1.0)); 38 half4 main(float2 coords) {
|
/external/skqp/src/sksl/ |
D | sksl.inc | 110 uint packUnorm2x16(float2 v); 111 uint packSnorm2x16(float2 v); 114 float2 unpackUnorm2x16(uint p); 115 float2 unpackSnorm2x16(uint p); 120 uint packHalf2x16(float2 v); 121 float2 unpackHalf2x16(uint v); 148 float2x2 outerProduct(float2 c, float2 r); 151 float2x3 outerProduct(float3 c, float2 r); 152 float3x2 outerProduct(float2 c, float3 r); 153 float2x4 outerProduct(float4 c, float2 r); [all …]
|
/external/angle/src/libANGLE/renderer/d3d/d3d11/shaders/ |
D | ResolveDepthStencil.hlsl | 1 static const float2 g_Corners[6] = 3 float2(-1.0f, 1.0f), 4 float2( 1.0f, -1.0f), 5 float2(-1.0f, -1.0f), 6 float2(-1.0f, 1.0f), 7 float2( 1.0f, 1.0f), 8 float2( 1.0f, -1.0f), 13 out float2 texCoord : TEXCOORD0) 15 float2 corner = g_Corners[id]; 17 texCoord = float2((corner.x + 1.0f) * 0.5f, (-corner.y + 1.0f) * 0.5f); [all …]
|
D | Passthrough2D11.hlsl | 8 void VS_Passthrough2D( in float2 inPosition : POSITION, in float2 inTexCoord : TEXCOORD0, 9 out float4 outPosition : SV_POSITION, out float2 outTexCoord : TEXCOORD0) 15 float PS_PassthroughDepth2D(in float4 inPosition : SV_POSITION, in float2 inTexCoord : TEXCOORD0) :… 20 float4 PS_PassthroughRGBA2D(in float4 inPosition : SV_POSITION, in float2 inTexCoord : TEXCOORD0) :… 25 float4 PS_PassthroughA2D(in float4 inPosition : SV_POSITION, in float2 inTexCoord : TEXCOORD0) : SV… 30 float4 PS_PassthroughRGBA2DMS(in float4 inPosition : SV_POSITION, in float2 inTexCoord : TEXCORD0, … 35 uint4 PS_PassthroughRGBA2DUI(in float4 inPosition : SV_POSITION, in float2 inTexCoord : TEXCOORD0) … 43 int4 PS_PassthroughRGBA2DI(in float4 inPosition : SV_POSITION, in float2 inTexCoord : TEXCOORD0) : … 51 float4 PS_PassthroughRGB2D(in float4 inPosition : SV_POSITION, in float2 inTexCoord : TEXCOORD0) : … 56 uint4 PS_PassthroughRGB2DUI(in float4 inPosition : SV_POSITION, in float2 inTexCoord : TEXCOORD0) :… [all …]
|
/external/skia/tests/sksl/errors/ |
D | BitShiftFloatVector.glsl | 3 error: 5: type mismatch: '>>=' cannot operate on 'float2', 'int' 4 error: 6: type mismatch: '<<=' cannot operate on 'float2', 'int' 5 error: 7: type mismatch: '&=' cannot operate on 'float2', 'int' 6 error: 8: type mismatch: '|=' cannot operate on 'float2', 'int' 7 error: 9: type mismatch: '^=' cannot operate on 'float2', 'int' 8 error: 11: type mismatch: '>>' cannot operate on 'float2', 'int' 9 error: 12: type mismatch: '<<' cannot operate on 'float2', 'int' 10 error: 13: type mismatch: '&' cannot operate on 'float2', 'int' 11 error: 14: type mismatch: '|' cannot operate on 'float2', 'int' 12 error: 15: type mismatch: '^' cannot operate on 'float2', 'int'
|
/external/skia/src/gpu/geometry/ |
D | GrWangsFormula.h | 59 using grvx::float2, skvx::bit_pun; 60 float2 p0 = bit_pun<float2>(pts[0]); 61 float2 p1 = bit_pun<float2>(pts[1]); 62 float2 p2 = bit_pun<float2>(pts[2]); 63 float2 v = grvx::fast_madd<2>(-2, p1, p0) + p2; 65 float2 vv = v*v; 135 using grvx::dot, grvx::float2, grvx::float4, skvx::bit_pun; 136 float2 p0 = vectorXform(bit_pun<float2>(pts[0])); 137 float2 p1 = vectorXform(bit_pun<float2>(pts[1])); 138 float2 p2 = vectorXform(bit_pun<float2>(pts[2])); [all …]
|
D | GrPathUtils.h | 139 using grvx::float2, skvx::bit_pun; in convertLineToCubic() 140 float2 p0 = bit_pun<float2>(startPt); in convertLineToCubic() 141 float2 p1 = bit_pun<float2>(endPt); in convertLineToCubic() 142 float2 v = (p1 - p0) * (1/3.f); in convertLineToCubic() 151 using grvx::float2, skvx::bit_pun; in convertQuadToCubic() 152 float2 p0 = bit_pun<float2>(p[0]); in convertQuadToCubic() 153 float2 p1 = bit_pun<float2>(p[1]); in convertQuadToCubic() 154 float2 p2 = bit_pun<float2>(p[2]); in convertQuadToCubic() 155 float2 c = p1 * (2/3.f); in convertQuadToCubic()
|
/external/llvm-project/clang/test/SemaOpenCL/ |
D | arithmetic-conversions.cl | 3 typedef float float2 __attribute__((ext_vector_type(2))); 7 …float2 in, global float2 *out) { *out = in + 0.5;} // expected-error {{scalar operand type has gre… 9 …float2 in, global float2 *out) { *out = 0.5 + in;} // expected-error {{scalar operand type has gre… 11 kernel void foo3(float2 in, global float2 *out) { *out = 0.5f + in;} 15 kernel void foo5(float2 in, global float2 *out) { 17 …t convert between vector and non-scalar values ('__private float *' and 'float2' (vector of 2 'flo…
|
/external/deqp-deps/glslang/Test/ |
D | hlsl.rw.vec2.bracket.frag | 3 RWTexture1D <float2> g_tTex1df2; 7 RWTexture2D <float2> g_tTex2df2; 11 RWTexture3D <float2> g_tTex3df2; 15 RWTexture1DArray <float2> g_tTex1df2a; 19 RWTexture2DArray <float2> g_tTex2df2a; 38 uniform float2 uf2; 44 float2 Fn1(in float2 x) { return x; } 48 void Fn2(out float2 x) { x = float2(0,0); } 50 float2 SomeValue() { return c2; } 59 float2 r00 = g_tTex1df2[c1]; [all …]
|
D | hlsl.intrinsics.frag | 96 float2 PixelShaderFunction2(float2 inF0, float2 inF1, float2 inF2, uint2 inU0, uint2 inU1) 101 float2 r001 = abs(inF0); 102 float2 r002 = acos(inF0); 104 float2 r004 = asin(inF0); 107 float2 r007 = asfloat(inU0); 109 float2 r009 = atan(inF0); 110 float2 r010 = atan2(inF0, inF1); 111 float2 r011 = ceil(inF0); 112 float2 r012 = clamp(inF0, inF1, inF2); 115 float2 r013 = cos(inF0); [all …]
|
D | hlsl.samplegrad.offsetarray.dx10.frag | 27 float4 txval10 = g_tTex1df4 . SampleGrad(g_sSamp, float2(0.1, 0.2), 1.1, 1.2, 1); 28 int4 txval11 = g_tTex1di4 . SampleGrad(g_sSamp, float2(0.1, 0.2), 1.1, 1.2, 1); 29 uint4 txval12 = g_tTex1du4 . SampleGrad(g_sSamp, float2(0.1, 0.2), 1.1, 1.2, 1); 31 …val20 = g_tTex2df4 . SampleGrad(g_sSamp, float3(0.1, 0.2, 0.3), float2(1.1, 1.2), float2(1.1, 1.2)… 32 …val21 = g_tTex2di4 . SampleGrad(g_sSamp, float3(0.1, 0.2, 0.3), float2(1.1, 1.2), float2(1.1, 1.2)… 33 …val22 = g_tTex2du4 . SampleGrad(g_sSamp, float3(0.1, 0.2, 0.3), float2(1.1, 1.2), float2(1.1, 1.2)…
|
D | hlsl.semantic-1.vert | 8 float2 UV0 : TEXCOORD0; 9 float2 UV1 : DMACRO1; 10 float2 UV2 : DMACRO(2); 11 float2 UV3 : DMACRO(DLAYER); 19 s.UV0 = float2(v.x,v.x); 20 s.UV1 = float2(v.y,v.y); 21 s.UV2 = float2(v.z,v.z); 22 s.UV3 = float2(v.w,v.w);
|
D | hlsl.samplegrad.array.dx10.frag | 27 float4 txval10 = g_tTex1df4 . SampleGrad(g_sSamp, float2(0.1, 0.2), 1.1, 1.2); 28 int4 txval11 = g_tTex1di4 . SampleGrad(g_sSamp, float2(0.1, 0.2), 1.1, 1.2); 29 uint4 txval12 = g_tTex1du4 . SampleGrad(g_sSamp, float2(0.1, 0.2), 1.1, 1.2); 31 …val20 = g_tTex2df4 . SampleGrad(g_sSamp, float3(0.1, 0.2, 0.3), float2(1.1, 1.2), float2(1.1, 1.2)… 32 …val21 = g_tTex2di4 . SampleGrad(g_sSamp, float3(0.1, 0.2, 0.3), float2(1.1, 1.2), float2(1.1, 1.2)… 33 …val22 = g_tTex2du4 . SampleGrad(g_sSamp, float3(0.1, 0.2, 0.3), float2(1.1, 1.2), float2(1.1, 1.2)…
|
/external/angle/third_party/vulkan-deps/glslang/src/Test/ |
D | hlsl.rw.vec2.bracket.frag | 3 RWTexture1D <float2> g_tTex1df2; 7 RWTexture2D <float2> g_tTex2df2; 11 RWTexture3D <float2> g_tTex3df2; 15 RWTexture1DArray <float2> g_tTex1df2a; 19 RWTexture2DArray <float2> g_tTex2df2a; 38 uniform float2 uf2; 44 float2 Fn1(in float2 x) { return x; } 48 void Fn2(out float2 x) { x = float2(0,0); } 50 float2 SomeValue() { return c2; } 59 float2 r00 = g_tTex1df2[c1]; [all …]
|
D | hlsl.intrinsics.frag | 96 float2 PixelShaderFunction2(float2 inF0, float2 inF1, float2 inF2, uint2 inU0, uint2 inU1) 101 float2 r001 = abs(inF0); 102 float2 r002 = acos(inF0); 104 float2 r004 = asin(inF0); 107 float2 r007 = asfloat(inU0); 109 float2 r009 = atan(inF0); 110 float2 r010 = atan2(inF0, inF1); 111 float2 r011 = ceil(inF0); 112 float2 r012 = clamp(inF0, inF1, inF2); 115 float2 r013 = cos(inF0); [all …]
|
D | hlsl.samplegrad.offsetarray.dx10.frag | 27 float4 txval10 = g_tTex1df4 . SampleGrad(g_sSamp, float2(0.1, 0.2), 1.1, 1.2, 1); 28 int4 txval11 = g_tTex1di4 . SampleGrad(g_sSamp, float2(0.1, 0.2), 1.1, 1.2, 1); 29 uint4 txval12 = g_tTex1du4 . SampleGrad(g_sSamp, float2(0.1, 0.2), 1.1, 1.2, 1); 31 …val20 = g_tTex2df4 . SampleGrad(g_sSamp, float3(0.1, 0.2, 0.3), float2(1.1, 1.2), float2(1.1, 1.2)… 32 …val21 = g_tTex2di4 . SampleGrad(g_sSamp, float3(0.1, 0.2, 0.3), float2(1.1, 1.2), float2(1.1, 1.2)… 33 …val22 = g_tTex2du4 . SampleGrad(g_sSamp, float3(0.1, 0.2, 0.3), float2(1.1, 1.2), float2(1.1, 1.2)…
|
D | hlsl.semantic-1.vert | 8 float2 UV0 : TEXCOORD0; 9 float2 UV1 : DMACRO1; 10 float2 UV2 : DMACRO(2); 11 float2 UV3 : DMACRO(DLAYER); 19 s.UV0 = float2(v.x,v.x); 20 s.UV1 = float2(v.y,v.y); 21 s.UV2 = float2(v.z,v.z); 22 s.UV3 = float2(v.w,v.w);
|
D | hlsl.samplegrad.array.dx10.frag | 27 float4 txval10 = g_tTex1df4 . SampleGrad(g_sSamp, float2(0.1, 0.2), 1.1, 1.2); 28 int4 txval11 = g_tTex1di4 . SampleGrad(g_sSamp, float2(0.1, 0.2), 1.1, 1.2); 29 uint4 txval12 = g_tTex1du4 . SampleGrad(g_sSamp, float2(0.1, 0.2), 1.1, 1.2); 31 …val20 = g_tTex2df4 . SampleGrad(g_sSamp, float3(0.1, 0.2, 0.3), float2(1.1, 1.2), float2(1.1, 1.2)… 32 …val21 = g_tTex2di4 . SampleGrad(g_sSamp, float3(0.1, 0.2, 0.3), float2(1.1, 1.2), float2(1.1, 1.2)… 33 …val22 = g_tTex2du4 . SampleGrad(g_sSamp, float3(0.1, 0.2, 0.3), float2(1.1, 1.2), float2(1.1, 1.2)…
|
/external/skia/tests/sksl/metal/ |
D | SwizzleHelper.metal | 10 float2 glob; 12 …thread Outputs& _out, thread Globals& _globals, float a, thread float2& b, thread float2& c, threa… 13 …s& _out, thread Globals& _globals, float _var0, thread float3& b, thread float2& glob, thread floa… 14 float2 _var1; 15 float2 _var2 = glob.yx; 23 …thread Outputs& _out, thread Globals& _globals, float a, thread float2& b, thread float2& c, threa… 31 Globals _globals{float2(1.0)}; 35 float2 a = float2(1.0);
|
/external/swiftshader/src/OpenGL/compiler/ |
D | Initialize.cpp | 28 TType *float2 = new TType(EbtFloat, 2); in InsertBuiltInFunctions() local 118 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpModf, float2, "modf", float2, outFloat2); in InsertBuiltInFunctions() 129 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpPackSnorm2x16, uint1, "packSnorm2x16", float2); in InsertBuiltInFunctions() 130 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpPackUnorm2x16, uint1, "packUnorm2x16", float2); in InsertBuiltInFunctions() 131 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpPackHalf2x16, uint1, "packHalf2x16", float2); in InsertBuiltInFunctions() 132 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpUnpackSnorm2x16, float2, "unpackSnorm2x16", uint1); in InsertBuiltInFunctions() 133 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpUnpackUnorm2x16, float2, "unpackUnorm2x16", uint1); in InsertBuiltInFunctions() 134 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpUnpackHalf2x16, float2, "unpackHalf2x16", uint1); in InsertBuiltInFunctions() 171 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpOuterProduct, mat2, "outerProduct", float2, float2); in InsertBuiltInFunctions() 174 symbolTable.insertBuiltIn(ESSL3_BUILTINS, EOpOuterProduct, mat2x3, "outerProduct", float3, float2); in InsertBuiltInFunctions() [all …]
|