Home
last modified time | relevance | path

Searched refs:tex2d (Results 1 – 25 of 51) sorted by relevance

123

/third_party/mesa3d/src/gallium/tests/graw/
Dquad-tex.c123 ubyte tex2d[SIZE][SIZE][4]; in init_tex() local
131 tex2d[t][s][0] = (x) ? 0 : 63; in init_tex()
132 tex2d[t][s][1] = (x) ? 0 : 128; in init_tex()
133 tex2d[t][s][2] = 0; in init_tex()
134 tex2d[t][s][3] = 0xff; in init_tex()
138 tex2d[t][s][0] = s*255/(SIZE-1); in init_tex()
139 tex2d[t][s][1] = t*255/(SIZE-1); in init_tex()
140 tex2d[t][s][2] = (x) ? 0 : 128; in init_tex()
141 tex2d[t][s][3] = 0xff; in init_tex()
146 tex2d[0][0][0] = 0; in init_tex()
[all …]
Dquad-sample.c173 ubyte tex2d[SIZE][SIZE][4]; in init_tex() local
181 tex2d[t][s][0] = (x) ? 0 : 63; in init_tex()
182 tex2d[t][s][1] = (x) ? 0 : 128; in init_tex()
183 tex2d[t][s][2] = 0; in init_tex()
184 tex2d[t][s][3] = 0xff; in init_tex()
188 tex2d[t][s][0] = s*255/(SIZE-1); in init_tex()
189 tex2d[t][s][1] = t*255/(SIZE-1); in init_tex()
190 tex2d[t][s][2] = (x) ? 0 : 128; in init_tex()
191 tex2d[t][s][3] = 0xff; in init_tex()
196 tex2d[0][0][0] = 0; in init_tex()
[all …]
Dfs-test.c257 ubyte tex2d[SIZE][SIZE][4]; in init_tex() local
265 tex2d[t][s][0] = (x) ? 0 : 63; in init_tex()
266 tex2d[t][s][1] = (x) ? 0 : 128; in init_tex()
267 tex2d[t][s][2] = 0; in init_tex()
268 tex2d[t][s][3] = 0xff; in init_tex()
272 tex2d[t][s][0] = s*255/(SIZE-1); in init_tex()
273 tex2d[t][s][1] = t*255/(SIZE-1); in init_tex()
274 tex2d[t][s][2] = (x) ? 0 : 128; in init_tex()
275 tex2d[t][s][3] = 0xff; in init_tex()
280 tex2d[0][0][0] = 0; in init_tex()
[all …]
Dvs-test.c245 ubyte tex2d[SIZE][SIZE][4]; in init_tex() local
253 tex2d[t][s][0] = (x) ? 0 : 63; in init_tex()
254 tex2d[t][s][1] = (x) ? 0 : 128; in init_tex()
255 tex2d[t][s][2] = 0; in init_tex()
256 tex2d[t][s][3] = 0xff; in init_tex()
260 tex2d[t][s][0] = s*255/(SIZE-1); in init_tex()
261 tex2d[t][s][1] = t*255/(SIZE-1); in init_tex()
262 tex2d[t][s][2] = (x) ? 0 : 128; in init_tex()
263 tex2d[t][s][3] = 0xff; in init_tex()
268 tex2d[0][0][0] = 0; in init_tex()
[all …]
Dgs-test.c347 ubyte tex2d[SIZE][SIZE][4]; in init_tex() local
355 tex2d[t][s][0] = (x) ? 0 : 63; in init_tex()
356 tex2d[t][s][1] = (x) ? 0 : 128; in init_tex()
357 tex2d[t][s][2] = 0; in init_tex()
358 tex2d[t][s][3] = 0xff; in init_tex()
362 tex2d[t][s][0] = s*255/(SIZE-1); in init_tex()
363 tex2d[t][s][1] = t*255/(SIZE-1); in init_tex()
364 tex2d[t][s][2] = (x) ? 0 : 128; in init_tex()
365 tex2d[t][s][3] = 0xff; in init_tex()
370 tex2d[0][0][0] = 0; in init_tex()
[all …]
Dtex-swizzle.c124 ubyte tex2d[SIZE][SIZE][4]; in init_tex() local
129 tex2d[t][s][0] = 0; /*B*/ in init_tex()
130 tex2d[t][s][1] = t; /*G*/ in init_tex()
131 tex2d[t][s][2] = s; /*R*/ in init_tex()
132 tex2d[t][s][3] = 1; /*A*/ in init_tex()
137 PIPE_FORMAT_B8G8R8A8_UNORM, tex2d); in init_tex()
Dtex-srgb.c149 ubyte tex2d[SIZE][SIZE][4]; in init_tex() local
154 tex2d[t][s][0] = 0; in init_tex()
155 tex2d[t][s][1] = s * 255 / SIZE; in init_tex()
156 tex2d[t][s][2] = t * 255 / SIZE; in init_tex()
157 tex2d[t][s][3] = 255; in init_tex()
162 PIPE_FORMAT_B8G8R8A8_UNORM, tex2d); in init_tex()
/third_party/skia/third_party/externals/spirv-cross/shaders-hlsl/frag/
Dtex-sampling.frag4 layout(binding = 1) uniform sampler2D tex2d;
37 texcolor += texture(tex2d, texCoord2d);
38 texcolor += textureOffset(tex2d, texCoord2d, ivec2(1, 2));
39 texcolor += textureLod(tex2d, texCoord2d, 2);
40 texcolor += textureGrad(tex2d, texCoord2d, vec2(1.0, 2.0), vec2(3.0, 4.0));
41 texcolor += textureProj(tex2d, vec3(texCoord2d, 2.0));
42 texcolor += texture(tex2d, texCoord2d, 1.0);
63 texcolor += textureGather(tex2d, texCoord2d);
64 texcolor += textureGather(tex2d, texCoord2d, 0);
65 texcolor += textureGather(tex2d, texCoord2d, 1);
[all …]
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-hlsl/frag/
Dtex-sampling.frag3 Texture2D<float4> tex2d : register(t1);
54 texcolor += tex2d.Sample(_tex2d_sampler, texCoord2d);
55 texcolor += tex2d.Sample(_tex2d_sampler, texCoord2d, int2(1, 2));
56 texcolor += tex2d.SampleLevel(_tex2d_sampler, texCoord2d, 2.0f);
57 … texcolor += tex2d.SampleGrad(_tex2d_sampler, texCoord2d, float2(1.0f, 2.0f), float2(3.0f, 4.0f));
59 texcolor += tex2d.Sample(_tex2d_sampler, _88.xy / _88.z);
60 texcolor += tex2d.SampleBias(_tex2d_sampler, texCoord2d, 1.0f);
80 texcolor += tex2d.GatherRed(_tex2d_sampler, texCoord2d);
81 texcolor += tex2d.GatherRed(_tex2d_sampler, texCoord2d);
82 texcolor += tex2d.GatherGreen(_tex2d_sampler, texCoord2d);
[all …]
Dtex-sampling.sm30.frag2 uniform sampler2D tex2d;
35 texcolor += tex2D(tex2d, texCoord2d);
36 texcolor += tex2Dlod(tex2d, float4(texCoord2d, 0.0, 2.0f));
37 texcolor += tex2Dgrad(tex2d, texCoord2d, float2(1.0f, 2.0f), float2(3.0f, 4.0f));
39 texcolor += tex2Dproj(tex2d, float4(_73.xy, 0.0, _73.z));
40 texcolor += tex2Dbias(tex2d, float4(texCoord2d, 0.0, 1.0f));
/third_party/skia/third_party/externals/spirv-cross/reference/opt/shaders-hlsl/frag/
Dtex-sampling.frag3 Texture2D<float4> tex2d : register(t1);
50tex2d.Sample(_tex2d_sampler, texCoord2d)) + tex2d.Sample(_tex2d_sampler, texCoord2d, int2(1, 2))) …
53 float4 _243 = tex2d.GatherRed(_tex2d_sampler, texCoord2d);
54 float4 _269 = tex2d.GatherRed(_tex2d_sampler, texCoord2d, int2(1, 1));
55tex2d.GatherGreen(_tex2d_sampler, texCoord2d)) + tex2d.GatherBlue(_tex2d_sampler, texCoord2d)) + t…
Dtex-sampling.sm30.frag2 uniform sampler2D tex2d;
32tex2d, texCoord2d)) + tex2Dlod(tex2d, float4(texCoord2d, 0.0, 2.0f))) + tex2Dgrad(tex2d, texCoord2…
/third_party/vk-gl-cts/external/openglcts/data/gl42-compat/
Dbuiltins.test78 uniform sampler2D tex2d;
97 color =+ texture2D(tex2d, dummy_v2_coord, i);
98 color =+ texture2DProj(tex2d, dummy_v3_coord, i);
99 color =+ texture2DProj(tex2d, dummy_v4_coord, i);
100 color =+ texture2DLod(tex2d, dummy_v2_coord, i);
101 color =+ texture2DProjLod(tex2d, dummy_v3_coord, i);
102 color =+ texture2DProjLod(tex2d, dummy_v4_coord, i);
221 uniform sampler2D tex2d;
240 color =+ texture2D(tex2d, dummy_v2_coord, i);
241 color =+ texture2DProj(tex2d, dummy_v3_coord, i);
[all …]
/third_party/skia/third_party/externals/spirv-cross/shaders-msl-no-opt/frag/
Dtexture-access-int.swizzle.frag4 layout(binding = 1) uniform isampler2D tex2d;
15 c = texture(tex2d, vec2(0.0, 0.0));
23 c = textureProj(tex2d, vec3(0.0, 0.0, 1.0));
28 c = textureLod(tex2d, vec2(0.0, 0.0), 0.0);
36 c = textureProjLod(tex2d, vec3(0.0, 0.0, 1.0), 0.0);
41 c = texelFetch(tex2d, ivec2(0, 0), 0);
49 c = textureGather(tex2d, vec2(0.0, 0.0), 0);
Dtexture-access-uint.swizzle.frag4 layout(binding = 1) uniform usampler2D tex2d;
15 c = texture(tex2d, vec2(0.0, 0.0));
23 c = textureProj(tex2d, vec3(0.0, 0.0, 1.0));
28 c = textureLod(tex2d, vec2(0.0, 0.0), 0.0);
36 c = textureProjLod(tex2d, vec3(0.0, 0.0, 1.0), 0.0);
41 c = texelFetch(tex2d, ivec2(0, 0), 0);
49 c = textureGather(tex2d, vec2(0.0, 0.0), 0);
Dtexture-access-leaf.swizzle.frag4 layout(binding = 1) uniform sampler2D tex2d;
20 c = texture(tex2d, vec2(0.0, 0.0));
34 c = textureProj(tex2d, vec3(0.0, 0.0, 1.0));
42 c = textureLod(tex2d, vec2(0.0, 0.0), 0.0);
53 c = textureProjLod(tex2d, vec3(0.0, 0.0, 1.0), 0.0);
61 c = texelFetch(tex2d, ivec2(0, 0), 0);
69 c = textureGather(tex2d, vec2(0.0, 0.0), 0);
Dtexture-access.swizzle.frag4 layout(binding = 1) uniform sampler2D tex2d;
20 c = texture(tex2d, vec2(0.0, 0.0));
34 c = textureProj(tex2d, vec3(0.0, 0.0, 1.0));
42 c = textureLod(tex2d, vec2(0.0, 0.0), 0.0);
53 c = textureProjLod(tex2d, vec3(0.0, 0.0, 1.0), 0.0);
61 c = texelFetch(tex2d, ivec2(0, 0), 0);
69 c = textureGather(tex2d, vec2(0.0, 0.0), 0);
/third_party/skia/third_party/externals/spirv-cross/shaders-msl-no-opt/asm/frag/
Dtexture-access.swizzle.asm.frag18 OpName %tex2d "tex2d"
40 OpDecorate %tex2d DescriptorSet 0
41 OpDecorate %tex2d Binding 1
96 %tex2d = OpVariable %_ptr_UniformConstant_17 UniformConstant
171 %19 = OpLoad %17 %tex2d
228 %93 = OpLoad %17 %tex2d
252 %115 = OpLoad %17 %tex2d
289 %147 = OpLoad %17 %tex2d
311 %166 = OpLoad %17 %tex2d
323 %174 = OpLoad %17 %tex2d
/third_party/vk-gl-cts/android/cts/master/
Dgles31-master-2021-03-01.txt9 dEQP-GLES31.functional.fbo.color.tex2d.r16
10 dEQP-GLES31.functional.fbo.color.tex2d.rg16
11 dEQP-GLES31.functional.fbo.color.tex2d.rgba16
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fTextureCompletenessTests.cpp918 tcu::TestCaseGroup* tex2d = new tcu::TestCaseGroup(m_testCtx, "2d", "2D completeness"); in init() local
919 addChild(tex2d); in init()
924tex2d->addChild(new Incomplete2DSizeCase(m_testCtx, m_context.getRenderContext(), "npot_size", … in init()
925tex2d->addChild(new Incomplete2DSizeCase(m_testCtx, m_context.getRenderContext(), "npot_size_level… in init()
926tex2d->addChild(new Incomplete2DSizeCase(m_testCtx, m_context.getRenderContext(), "npot_size_level… in init()
927tex2d->addChild(new Incomplete2DSizeCase(m_testCtx, m_context.getRenderContext(), "not_positive_le… in init()
929tex2d->addChild(new Incomplete2DFormatCase(m_testCtx, m_context.getRenderContext(), "format_mismat… in init()
930tex2d->addChild(new Incomplete2DFormatCase(m_testCtx, m_context.getRenderContext(), "format_mismat… in init()
931tex2d->addChild(new Incomplete2DFormatCase(m_testCtx, m_context.getRenderContext(), "format_mismat… in init()
932tex2d->addChild(new Incomplete2DFormatCase(m_testCtx, m_context.getRenderContext(), "format_mismat… in init()
[all …]
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-msl-no-opt/frag/
Dtexture-access-uint.swizzle.frag112 …nts [[buffer(30)]], texture1d<uint> tex1d [[texture(0)]], texture2d<uint> tex2d [[texture(1)]], te…
121 c = float4(spvTextureSwizzle(tex2d.sample(tex2dSmplr, float2(0.0)), tex2dSwzl));
127 …c = float4(spvTextureSwizzle(tex2d.sample(tex2dSmplr, float3(0.0, 0.0, 1.0).xy / float3(0.0, 0.0, …
130 c = float4(spvTextureSwizzle(tex2d.sample(tex2dSmplr, float2(0.0), level(0.0)), tex2dSwzl));
136 …c = float4(spvTextureSwizzle(tex2d.sample(tex2dSmplr, float3(0.0, 0.0, 1.0).xy / float3(0.0, 0.0, …
139 c = float4(spvTextureSwizzle(tex2d.read(uint2(int2(0)), 0), tex2dSwzl));
143 c = float4(spvGatherSwizzle(tex2d, tex2dSmplr, tex2dSwzl, component::x, float2(0.0), int2(0)));
Dtexture-access-int.swizzle.frag112 …tants [[buffer(30)]], texture1d<int> tex1d [[texture(0)]], texture2d<int> tex2d [[texture(1)]], te…
121 c = float4(spvTextureSwizzle(tex2d.sample(tex2dSmplr, float2(0.0)), tex2dSwzl));
127 …c = float4(spvTextureSwizzle(tex2d.sample(tex2dSmplr, float3(0.0, 0.0, 1.0).xy / float3(0.0, 0.0, …
130 c = float4(spvTextureSwizzle(tex2d.sample(tex2dSmplr, float2(0.0), level(0.0)), tex2dSwzl));
136 …c = float4(spvTextureSwizzle(tex2d.sample(tex2dSmplr, float3(0.0, 0.0, 1.0).xy / float3(0.0, 0.0, …
139 c = float4(spvTextureSwizzle(tex2d.read(uint2(int2(0)), 0), tex2dSwzl));
143 c = float4(spvGatherSwizzle(tex2d, tex2dSmplr, tex2dSwzl, component::x, float2(0.0), int2(0)));
Dtexture-access-leaf.swizzle.frag136 …nst sampler tex1dSmplr, constant uint& tex1dSwzl, thread texture2d<float> tex2d, thread const samp…
139 c = spvTextureSwizzle(tex2d.sample(tex2dSmplr, float2(0.0)), tex2dSwzl);
149 …c = spvTextureSwizzle(tex2d.sample(tex2dSmplr, float3(0.0, 0.0, 1.0).xy / float3(0.0, 0.0, 1.0).z)…
155 c = spvTextureSwizzle(tex2d.sample(tex2dSmplr, float2(0.0), level(0.0)), tex2dSwzl);
162 …c = spvTextureSwizzle(tex2d.sample(tex2dSmplr, float3(0.0, 0.0, 1.0).xy / float3(0.0, 0.0, 1.0).z,…
168 c = spvTextureSwizzle(tex2d.read(uint2(int2(0)), 0), tex2dSwzl);
172 c = spvGatherSwizzle(tex2d, tex2dSmplr, tex2dSwzl, component::x, float2(0.0), int2(0));
183 …s [[buffer(30)]], texture1d<float> tex1d [[texture(0)]], texture2d<float> tex2d [[texture(1)]], te…
195 …float4 c = doSwizzle(tex1d, tex1dSmplr, tex1dSwzl, tex2d, tex2dSmplr, tex2dSwzl, tex3d, tex3dSmplr…
Dtexture-access.swizzle.frag135 …s [[buffer(30)]], texture1d<float> tex1d [[texture(0)]], texture2d<float> tex2d [[texture(1)]], te…
148 c = spvTextureSwizzle(tex2d.sample(tex2dSmplr, float2(0.0)), tex2dSwzl);
158 …c = spvTextureSwizzle(tex2d.sample(tex2dSmplr, float3(0.0, 0.0, 1.0).xy / float3(0.0, 0.0, 1.0).z)…
164 c = spvTextureSwizzle(tex2d.sample(tex2dSmplr, float2(0.0), level(0.0)), tex2dSwzl);
171 …c = spvTextureSwizzle(tex2d.sample(tex2dSmplr, float3(0.0, 0.0, 1.0).xy / float3(0.0, 0.0, 1.0).z,…
177 c = spvTextureSwizzle(tex2d.read(uint2(int2(0)), 0), tex2dSwzl);
181 c = spvGatherSwizzle(tex2d, tex2dSmplr, tex2dSwzl, component::x, float2(0.0), int2(0));
/third_party/skia/third_party/externals/spirv-cross/reference/shaders-msl-no-opt/asm/frag/
Dtexture-access.swizzle.asm.frag135 …s [[buffer(30)]], texture1d<float> tex1d [[texture(0)]], texture2d<float> tex2d [[texture(1)]], te…
148 c = spvTextureSwizzle(tex2d.sample(tex2dSamp, float2(0.0)), tex2dSwzl);
158 …c = spvTextureSwizzle(tex2d.sample(tex2dSamp, float3(0.0, 0.0, 1.0).xy / float3(0.0, 0.0, 1.0).z),…
164 c = spvTextureSwizzle(tex2d.sample(tex2dSamp, float2(0.0), level(0.0)), tex2dSwzl);
171 …c = spvTextureSwizzle(tex2d.sample(tex2dSamp, float3(0.0, 0.0, 1.0).xy / float3(0.0, 0.0, 1.0).z, …
177 c = spvTextureSwizzle(tex2d.read(uint2(int2(0)), 0), tex2dSwzl);
181 c = spvGatherSwizzle(tex2d, tex2dSamp, tex2dSwzl, component::x, float2(0.0), int2(0));

123