Home
last modified time | relevance | path

Searched refs:int2 (Results 1 – 25 of 668) sorted by relevance

12345678910>>...27

/third_party/glslang/Test/
Dhlsl.gathercmpRGBA.offset.dx10.frag45 float4 txval001 = g_tTex2df4 . GatherCmpRed(g_sSampCmp, c2, 0.75, int2(1,0));
46 int4 txval011 = g_tTex2di4 . GatherCmpRed(g_sSampCmp, c2, 0.75, int2(1,-1));
47 uint4 txval021 = g_tTex2du4 . GatherCmpRed(g_sSampCmp, c2, 0.75, int2(1,1));
49 …xval004 = g_tTex2df4 . GatherCmpRed(g_sSampCmp, c2, 0.75, int2(1,0), int2(1,0), int2(1,0), int2(1,…
50 …al014 = g_tTex2di4 . GatherCmpRed(g_sSampCmp, c2, 0.75, int2(1,-1), int2(1,-1), int2(1,-1), int2(1…
51 …xval024 = g_tTex2du4 . GatherCmpRed(g_sSampCmp, c2, 0.75, int2(1,1), int2(1,1), int2(1,1), int2(1,…
53 float4 txval401 = g_tTex2df4 . GatherCmp(g_sSampCmp, c2, 0.75, int2(1,0));
54 int4 txval411 = g_tTex2di4 . GatherCmp(g_sSampCmp, c2, 0.75, int2(1,-1));
55 uint4 txval421 = g_tTex2du4 . GatherCmp(g_sSampCmp, c2, 0.75, int2(1,1));
58 // float4 txval101 = g_tTex2df4 . GatherCmpGreen(g_sSampCmp, c2, 0.75, int2(1,0));
[all …]
Dhlsl.rw.vec2.bracket.frag4 RWTexture1D <int2> g_tTex1di2;
8 RWTexture2D <int2> g_tTex2di2;
12 RWTexture3D <int2> g_tTex3di2;
16 RWTexture1DArray <int2> g_tTex1di2a;
20 RWTexture2DArray <int2> g_tTex2di2a;
29 uniform int2 c2;
34 uniform int2 o2;
39 uniform int2 ui2;
42 int2 Fn1(in int2 x) { return x; }
46 void Fn2(out int2 x) { x = int2(0,0); }
[all …]
Dhlsl.intrinsics.evalfns.frag2 void main(float inF1, float2 inF2, float3 inF3, float4 inF4, int2 inI2) : COLOR
4 EvaluateAttributeSnapped(inF1, int2(8,15));
5 EvaluateAttributeSnapped(inF2, int2(0,1));
6 EvaluateAttributeSnapped(inF3, int2(3,10));
7 EvaluateAttributeSnapped(inF4, int2(7,8));
/third_party/ffmpeg/libavfilter/opencl/
Dconvolution.cl33 int2 loc = (int2)(get_global_id(0), get_global_id(1));
38 float4 px = read_imagef(src, sampler, loc + (int2)(conv_j, conv_i));
57 int2 loc = (int2)(get_global_id(0), get_global_id(1));
59 float4 sum1 = read_imagef(src, sampler, loc + (int2)(-1,-1)) * -1 +
60 read_imagef(src, sampler, loc + (int2)( 0,-1)) * -2 +
61 read_imagef(src, sampler, loc + (int2)( 1,-1)) * -1 +
62 read_imagef(src, sampler, loc + (int2)(-1, 1)) * 1 +
63 read_imagef(src, sampler, loc + (int2)( 0, 1)) * 2 +
64 read_imagef(src, sampler, loc + (int2)( 1, 1)) * 1;
66 float4 sum2 = read_imagef(src, sampler, loc + (int2)(-1,-1)) * -1 +
[all …]
Dxfade.cl27 int2 p = (int2)(get_global_id(0), get_global_id(1));
41 int2 p = (int2)(get_global_id(0), get_global_id(1));
55 int2 p = (int2)(get_global_id(0), get_global_id(1));
69 int2 p = (int2)(get_global_id(0), get_global_id(1));
83 int2 p = (int2)(get_global_id(0), get_global_id(1));
95 int2 direction)
99 int2 wh = (int2)(w, h);
100 int2 uv = (int2)(get_global_id(0), get_global_id(1));
101 int2 pi = (int2)(progress * w, progress * h);
102 int2 p = uv + pi * direction;
[all …]
Doverlay.cl28 int2 overlay_size = get_image_dim(overlay);
29 int2 loc = (int2)(get_global_id(0), get_global_id(1));
38 int2 loc_overlay = (int2)(x_position, y_position);
53 int2 overlay_size = get_image_dim(overlay);
54 int2 loc = (int2)(get_global_id(0), get_global_id(1));
63 int2 loc_overlay = (int2)(x_position, y_position);
83 int2 overlay_size = get_image_dim(overlay);
84 int2 loc = (int2)(get_global_id(0), get_global_id(1));
93 int2 loc_overlay = (int2)(x_position, y_position);
97 int2 loc_alpha = (int2)(loc.x * alpha_adj_x,
Davgblur.cl28 int2 loc = (int2)(get_global_id(0), get_global_id(1));
29 int2 size = (int2)(get_global_size(0), get_global_size(1));
36 acc += read_imagef(src, sampler, (int2)(xx, loc.y));
48 int2 loc = (int2)(get_global_id(0), get_global_id(1));
49 int2 size = (int2)(get_global_size(0), get_global_size(1));
56 acc += read_imagef(src, sampler, (int2)(loc.x, yy));
Dunsharp.cl28 int2 loc = (int2)(get_global_id(0), get_global_id(1));
29 int2 centre = (int2)(size_x / 2, size_y / 2);
37 int2 pos = loc + (int2)(x, y) - centre;
57 int2 block = (int2)(get_group_id(0), get_group_id(1)) * 16;
58 int2 pos = (int2)(get_local_id(0), get_local_id(1));
69 read_imagef(src, sampler, block + pos + (int2)(16 * x - 8, 16 * y - 8));
Ddeshake.cl74 int2 p1;
99 static void write_to_1d_arrf(__global float *buf, int2 loc, float val) {
103 static void write_to_1d_arrul8(__global ulong8 *buf, int2 loc, ulong8 val) {
107 static void write_to_1d_arrvec(__global MotionVector *buf, int2 loc, MotionVector val) {
111 static void write_to_1d_arrf2(__global float2 *buf, int2 loc, float2 val) {
115 static ulong8 read_from_1d_arrul8(__global const ulong8 *buf, int2 loc) {
119 static float2 read_from_1d_arrf2(__global const float2 *buf, int2 loc) {
124 static float pixel_grayscale(__read_only image2d_t src, int2 loc) {
181 static void draw_box(__write_only image2d_t dst, int2 loc, float4 pixel, int radius)
187 (int2)(
[all …]
Dnlmeans.cl37 float s1 = read_imagef(src, sampler, (int2)(i, y)).x;
38 s2.x = read_imagef(src, sampler, (int2)(i + dx.x, y + dy.x)).x;
39 s2.y = read_imagef(src, sampler, (int2)(i + dx.y, y + dy.y)).x;
40 s2.z = read_imagef(src, sampler, (int2)(i + dx.z, y + dy.z)).x;
41 s2.w = read_imagef(src, sampler, (int2)(i + dx.w, y + dy.w)).x;
84 src_pix.x = (int)(255 * read_imagef(src, sampler, (int2)(xoff.x, yoff.x)).x);
85 src_pix.y = (int)(255 * read_imagef(src, sampler, (int2)(xoff.y, yoff.y)).x);
86 src_pix.z = (int)(255 * read_imagef(src, sampler, (int2)(xoff.z, yoff.z)).x);
87 src_pix.w = (int)(255 * read_imagef(src, sampler, (int2)(xoff.w, yoff.w)).x);
107 int2 dim = get_image_dim(dst);
[all …]
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-hlsl/comp/
Dimage.comp13 RWTexture2D<int2> uImageInI2 : register(u10);
14 RWTexture2D<int2> uImageOutI2 : register(u11);
39 float4 f = uImageInF[int2(gl_GlobalInvocationID.xy)].xxxx;
40 uImageOutF[int2(gl_GlobalInvocationID.xy)] = f.x;
41 int4 i = uImageInI[int2(gl_GlobalInvocationID.xy)].xxxx;
42 uImageOutI[int2(gl_GlobalInvocationID.xy)] = i.x;
43 uint4 u = uImageInU[int2(gl_GlobalInvocationID.xy)].xxxx;
44 uImageOutU[int2(gl_GlobalInvocationID.xy)] = u.x;
47 float4 f2 = uImageInF2[int2(gl_GlobalInvocationID.xy)].xyyy;
48 uImageOutF2[int2(gl_GlobalInvocationID.xy)] = f2.xy;
[all …]
Dimage.nonwritable-uav-texture.comp14 RWTexture2D<int2> uImageOutI2 : register(u11);
39 float4 f = uImageInF[int2(gl_GlobalInvocationID.xy)];
40 uImageOutF[int2(gl_GlobalInvocationID.xy)] = f.x;
41 int4 i = uImageInI[int2(gl_GlobalInvocationID.xy)];
42 uImageOutI[int2(gl_GlobalInvocationID.xy)] = i.x;
43 uint4 u = uImageInU[int2(gl_GlobalInvocationID.xy)];
44 uImageOutU[int2(gl_GlobalInvocationID.xy)] = u.x;
47 float4 f2 = uImageInF2[int2(gl_GlobalInvocationID.xy)];
48 uImageOutF2[int2(gl_GlobalInvocationID.xy)] = f2.xy;
49 int4 i2 = uImageInI2[int2(gl_GlobalInvocationID.xy)];
[all …]
Datomic.comp15 InterlockedAdd(uImage[int2(1, 5)], 1u, _19);
17 InterlockedAdd(uImage[int2(1, 5)], 1u, _27);
18 iImage[int2(1, 6)] = int(_27).x;
20 InterlockedOr(uImage[int2(1, 5)], 1u, _32);
22 InterlockedXor(uImage[int2(1, 5)], 1u, _34);
24 InterlockedAnd(uImage[int2(1, 5)], 1u, _36);
26 InterlockedMin(uImage[int2(1, 5)], 1u, _38);
28 InterlockedMax(uImage[int2(1, 5)], 1u, _40);
30 InterlockedCompareExchange(uImage[int2(1, 5)], 10u, 2u, _44);
32 InterlockedAdd(iImage[int2(1, 6)], 1, _47);
[all …]
/third_party/skia/third_party/externals/spirv-cross/reference/opt/shaders-hlsl/comp/
Datomic.comp15 InterlockedAdd(uImage[int2(1, 5)], 1u, _19);
17 InterlockedAdd(uImage[int2(1, 5)], 1u, _27);
18 iImage[int2(1, 6)] = int(_27).x;
20 InterlockedOr(uImage[int2(1, 5)], 1u, _32);
22 InterlockedXor(uImage[int2(1, 5)], 1u, _34);
24 InterlockedAnd(uImage[int2(1, 5)], 1u, _36);
26 InterlockedMin(uImage[int2(1, 5)], 1u, _38);
28 InterlockedMax(uImage[int2(1, 5)], 1u, _40);
30 InterlockedCompareExchange(uImage[int2(1, 5)], 10u, 2u, _44);
32 InterlockedAdd(iImage[int2(1, 6)], 1, _47);
[all …]
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-msl/asm/comp/
Dvector-builtin-type-cast-func.asm.comp16 int2 get_texcoord(thread const int2& base, thread const int2& index, thread uint3& gl_LocalInvocati…
23 int2 r0 = int2(int2(u0.get_width(), u0.get_height()) >> int2(uint2(4u)));
28 int2 param = r0;
29 int2 param_1 = int2(i, j);
Dvector-builtin-type-cast.asm.comp15 int2 r0 = int2(int2(u0.get_width(), u0.get_height()) >> int2(uint2(4u)));
20 …_RESERVED_IDENTIFIER_FIXUP_m0[0].xxxx, uint2(((r0 * int3(gl_LocalInvocationID).xy) + int2(i, j))));
/third_party/skia/resources/sksl/shared/
DVectorConstructors.sksl6 bool check(float2 v1, float2 v2, float2 v3, float3 v4, int2 v5, int2 v6, float2 v7, float2 v8,
7 float4 v9, int2 v10, bool4 v11, float2 v12, float2 v13, float2 v14, bool2 v15,
21 int2 v5 = int2(1);
22 int2 v6 = int2(float2(1, 2));
23 float2 v7 = float2(int2(1, 2));
25 float4 v9 = float4(v6.x, unknownInput, int2(3, 4));
26 int2 v10 = int2(3.14, v1.x);
33 bool3 v17 = bool3(1.0, int2(77));
/third_party/skia/third_party/externals/tint/test/bug/tint/
D942.wgsl.expected.msl26 int2 const dims = int2(tint_symbol_3.get_width(0), tint_symbol_3.get_height(0));
27int2 const baseIndex = as_type<int2>((as_type<uint2>(int2(((uint3(WorkGroupID).xy * uint2((*(tint_…
30int2 loadIndex = as_type<int2>((as_type<uint2>(baseIndex) + as_type<uint2>(int2(int(c), int(r)))));
32 loadIndex = int2(loadIndex).yx;
40int2 writeIndex = as_type<int2>((as_type<uint2>(baseIndex) + as_type<uint2>(int2(int(c), int(r))))…
42 writeIndex = int2(writeIndex).yx;
D942.wgsl.expected.hlsl31 const int2 dims = tint_tmp.xy;
32 …const int2 baseIndex = (int2(((WorkGroupID.xy * uint2(params[0].y, 4u)) + (LocalInvocationID.xy * …
37 int2 loadIndex = (baseIndex + int2(int(c), int(r)));
51 int2 writeIndex = (baseIndex + int2(int(c), int(r)));
/third_party/skia/resources/sksl/folding/
DVectorVectorFolding.sksl71 ok = ok && (int4(int2(1), int2(2, 3)) + int4(5, 6, 7, 8)) == int4(6, 7, 9, 11);
76 ok = ok && (int2(1) == int2(1, 1));
77 ok = ok && (int2(1, 1) == int2(1, 1));
78 ok = ok && !(int2(1) == int2(1, 0));
79 ok = ok && (int4(1) == int4(int2(1), int2(1)));
80 ok = ok && (int4(int3(1), 1) == int4(int2(1), int2(1)));
81 ok = ok && !(int4(int3(1), 1) == int4(int2(1), 1, 0));
82 ok = ok && (int2(1) != int2(1, 0));
83 ok = ok && !(int4(1) != int4(int2(1), int2(1)));
/third_party/skia/third_party/externals/tint/test/intrinsics/gen/pack2x16snorm/
D6c169b.wgsl.expected.glsl7 int2 i = int2(round(clamp(param_0, -1.0, 1.0) * 32767.0)) & 0xffff;
40 ERROR: 0:5: 'int2' : undeclared identifier
50 int2 i = int2(round(clamp(param_0, -1.0, 1.0) * 32767.0)) & 0xffff;
73 ERROR: 0:5: 'int2' : undeclared identifier
83 int2 i = int2(round(clamp(param_0, -1.0, 1.0) * 32767.0)) & 0xffff;
107 ERROR: 0:5: 'int2' : undeclared identifier
/third_party/skia/third_party/externals/tint/test/intrinsics/gen/unpack2x16snorm/
Db4aea6.wgsl.expected.glsl8 int2 i = int2(j << 16, j) >> 16;
41 ERROR: 0:6: 'int2' : undeclared identifier
52 int2 i = int2(j << 16, j) >> 16;
75 ERROR: 0:6: 'int2' : undeclared identifier
86 int2 i = int2(j << 16, j) >> 16;
110 ERROR: 0:6: 'int2' : undeclared identifier
/third_party/skia/tests/sksl/shared/
DVectorConstructors.metal14 …b2b3(float2 v1, float2 v2, float2 v3, float3 v4, int2 v5, int2 v6, float2 v7, float2 v8, float4 v9…
24 int2 v5 = int2(1);
25 int2 v6 = int2(1, 2);
29 int2 v10 = int2(3, int(v1.x));
/third_party/skia/resources/sksl/errors/
DUnknownDivideByZero.sksl15 y = (int2(unknownInput) / 0).x;
16 y = (int2(unknownInput) / int2(zero)).x;
17 y = (int2(unknownInput) / int2(unknownInput, 0)).x;
19 y = (int4(unknownInput) % int4(int2(unknownInput, int(zero)), 1, 1)).x;
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
DInitialize.cpp34 TType *int2 = new TType(EbtInt, 2); in InsertBuiltInFunctions() local
276 symbolTable.insertBuiltIn(ESSL3_BUILTINS, int2, "textureSize", samplerExternalOES, int1); in InsertBuiltInFunctions()
277 … symbolTable.insertBuiltIn(ESSL3_BUILTINS, float4, "texelFetch", samplerExternalOES, int2, int1); in InsertBuiltInFunctions()
354 symbolTable.insertBuiltIn(ESSL3_BUILTINS, int2, "textureSize", gsampler2D, int1); in InsertBuiltInFunctions()
356 symbolTable.insertBuiltIn(ESSL3_BUILTINS, int2, "textureSize", gsamplerCube, int1); in InsertBuiltInFunctions()
358 symbolTable.insertBuiltIn(ESSL3_BUILTINS, int2, "textureSize", sampler2DShadow, int1); in InsertBuiltInFunctions()
359 symbolTable.insertBuiltIn(ESSL3_BUILTINS, int2, "textureSize", samplerCubeShadow, int1); in InsertBuiltInFunctions()
369 symbolTable.insertBuiltIn(ESSL3_BUILTINS, gvec4, "textureOffset", gsampler2D, float2, int2); in InsertBuiltInFunctions()
371 symbolTable.insertBuiltIn(ESSL3_BUILTINS, float1, "textureOffset", sampler2DShadow, float3, int2); in InsertBuiltInFunctions()
372 symbolTable.insertBuiltIn(ESSL3_BUILTINS, gvec4, "textureOffset", gsampler2DArray, float3, int2); in InsertBuiltInFunctions()
[all …]

12345678910>>...27