Home
last modified time | relevance | path

Searched refs:uniforms (Results 1 – 25 of 409) sorted by relevance

12345678910>>...17

/third_party/skia/third_party/externals/swiftshader/src/Renderer/
DTextureStage.cpp100uniforms.constantColor4[0][0] = uniforms.constantColor4[0][1] = uniforms.constantColor4[0][2] = un… in setConstantColor()
101uniforms.constantColor4[1][0] = uniforms.constantColor4[1][1] = uniforms.constantColor4[1][2] = un… in setConstantColor()
102uniforms.constantColor4[2][0] = uniforms.constantColor4[2][1] = uniforms.constantColor4[2][2] = un… in setConstantColor()
103uniforms.constantColor4[3][0] = uniforms.constantColor4[3][1] = uniforms.constantColor4[3][2] = un… in setConstantColor()
108 uniforms.bumpmapMatrix4F[element / 2][element % 2][0] = value; in setBumpmapMatrix()
109 uniforms.bumpmapMatrix4F[element / 2][element % 2][1] = value; in setBumpmapMatrix()
110 uniforms.bumpmapMatrix4F[element / 2][element % 2][2] = value; in setBumpmapMatrix()
111 uniforms.bumpmapMatrix4F[element / 2][element % 2][3] = value; in setBumpmapMatrix()
113 uniforms.bumpmapMatrix4W[element / 2][element % 2][0] = iround(4095 * value); in setBumpmapMatrix()
114 uniforms.bumpmapMatrix4W[element / 2][element % 2][1] = iround(4095 * value); in setBumpmapMatrix()
[all …]
/third_party/skia/third_party/externals/tint/test/bug/tint/
D1113.wgsl.expected.glsl12 } uniforms;
41 vec3 bbMin = vec3(uniforms.bbMin.x, uniforms.bbMin.y, uniforms.bbMin.z);
42 vec3 bbMax = vec3(uniforms.bbMax.x, uniforms.bbMax.y, uniforms.bbMax.z);
45 float gridSize = float(uniforms.gridSize);
46 float gx = ((gridSize * (position.x - uniforms.bbMin.x)) / cubeSize);
47 float gy = ((gridSize * (position.y - uniforms.bbMin.y)) / cubeSize);
48 float gz = ((gridSize * (position.z - uniforms.bbMin.z)) / cubeSize);
63 uint g42 = uniforms.numTriangles;
77 if ((triangleIndex >= uniforms.numTriangles)) {
89 uint voxelIndex = toIndex1D(uniforms.gridSize, voxelPos);
[all …]
D1113.wgsl.expected.wgsl52 [[binding(0), group(0)]] var<uniform> uniforms : Uniforms;
65 var bbMin = vec3<f32>(uniforms.bbMin.x, uniforms.bbMin.y, uniforms.bbMin.z);
66 var bbMax = vec3<f32>(uniforms.bbMax.x, uniforms.bbMax.y, uniforms.bbMax.z);
69 var gridSize = f32(uniforms.gridSize);
70 var gx = ((gridSize * (position.x - uniforms.bbMin.x)) / cubeSize);
71 var gy = ((gridSize * (position.y - uniforms.bbMin.y)) / cubeSize);
72 var gz = ((gridSize * (position.z - uniforms.bbMin.z)) / cubeSize);
94 var g42 = uniforms.numTriangles;
105 if ((triangleIndex >= uniforms.numTriangles)) {
117 var voxelIndex = toIndex1D(uniforms.gridSize, voxelPos);
[all …]
D1113.wgsl.expected.hlsl31 uint4 uniforms[3];
40 float3 bbMin = float3(asfloat(uniforms[1].x), asfloat(uniforms[1].y), asfloat(uniforms[1].z));
41 float3 bbMax = float3(asfloat(uniforms[2].x), asfloat(uniforms[2].y), asfloat(uniforms[2].z));
44 float gridSize = float(uniforms[0].y);
45 float gx = ((gridSize * (position.x - asfloat(uniforms[1].x))) / cubeSize);
46 float gy = ((gridSize * (position.y - asfloat(uniforms[1].y))) / cubeSize);
47 float gz = ((gridSize * (position.z - asfloat(uniforms[1].z))) / cubeSize);
69 uint g42 = uniforms[0].x;
83 if ((triangleIndex >= uniforms[0].x)) {
95 uint voxelIndex = toIndex1D(uniforms[0].y, voxelPos);
[all …]
D1113.wgsl33 [[binding(0), group(0)]] var<uniform> uniforms : Uniforms;
46 var bbMin = vec3<f32>(uniforms.bbMin.x, uniforms.bbMin.y, uniforms.bbMin.z);
47 var bbMax = vec3<f32>(uniforms.bbMax.x, uniforms.bbMax.y, uniforms.bbMax.z);
50 var gridSize = f32(uniforms.gridSize);
52 var gx = gridSize * (position.x - uniforms.bbMin.x) / cubeSize;
53 var gy = gridSize * (position.y - uniforms.bbMin.y) / cubeSize;
54 var gz = gridSize * (position.z - uniforms.bbMin.z) / cubeSize;
89 var g42 = uniforms.numTriangles;
103 if(triangleIndex >= uniforms.numTriangles){
119 var voxelIndex = toIndex1D(uniforms.gridSize, voxelPos);
[all …]
D913.wgsl.expected.wgsl21 [[group(0), binding(3)]] var<uniform> uniforms : Uniforms;
34uniforms.dstCopyOrigin.x) || (dstTexCoord.y < uniforms.dstCopyOrigin.y)) || (dstTexCoord.x >= (uni…
37 var srcTexCoord : vec2<u32> = ((dstTexCoord - uniforms.dstCopyOrigin) + uniforms.srcCopyOrigin);
38 if ((uniforms.dstTextureFlipY == 1u)) {
43 if ((uniforms.channelCount == 2u)) {
D913.wgsl.expected.hlsl5 uint4 uniforms[2];
26 bool tint_tmp_4 = (dstTexCoord.x < uniforms[1].x);
28 tint_tmp_4 = (dstTexCoord.y < uniforms[1].y);
32 tint_tmp_3 = (dstTexCoord.x >= (uniforms[1].x + uniforms[1].z));
36 tint_tmp_2 = (dstTexCoord.y >= (uniforms[1].y + uniforms[1].w));
45 uint2 srcTexCoord = ((dstTexCoord - uniforms[1].xy) + uniforms[0].zw);
46 if ((uniforms[0].x == 1u)) {
51 if ((uniforms[0].y == 2u)) {
D913.wgsl.expected.glsl16 } uniforms;
32 bool tint_tmp_2 = (dstTexCoord.x < uniforms.dstCopyOrigin.x);
34 tint_tmp_2 = (dstTexCoord.y < uniforms.dstCopyOrigin.y);
38 tint_tmp_1 = (dstTexCoord.x >= (uniforms.dstCopyOrigin.x + uniforms.copySize.x));
42 tint_tmp = (dstTexCoord.y >= (uniforms.dstCopyOrigin.y + uniforms.copySize.y));
51 uvec2 srcTexCoord = ((dstTexCoord - uniforms.dstCopyOrigin) + uniforms.srcCopyOrigin);
52 if ((uniforms.dstTextureFlipY == 1u)) {
57 if ((uniforms.channelCount == 2u)) {
D913.wgsl14 [[group(0), binding(3)]] var<uniform> uniforms : Uniforms;
28 if (dstTexCoord.x < uniforms.dstCopyOrigin.x ||
29 dstTexCoord.y < uniforms.dstCopyOrigin.y ||
30 dstTexCoord.x >= uniforms.dstCopyOrigin.x + uniforms.copySize.x ||
31 dstTexCoord.y >= uniforms.dstCopyOrigin.y + uniforms.copySize.y) {
36 var srcTexCoord : vec2<u32> = dstTexCoord - uniforms.dstCopyOrigin +
37 uniforms.srcCopyOrigin;
42 if (uniforms.dstTextureFlipY == 1u) {
51 if (uniforms.channelCount == 2u) { // All have rg components.
D1046.wgsl.expected.wgsl19 [[binding(0), group(0)]] var<uniform> uniforms : Uniforms;
47 if ((uniforms.color_source == 0u)) {
49 } elseif ((uniforms.color_source == 1u)) {
52 } elseif ((uniforms.color_source == 2u)) {
53 color = uniforms.color;
54 } elseif ((uniforms.color_source == 3u)) {
64 _ = uniforms;
D1046.wgsl18 [[binding(0), group(0)]] var<uniform> uniforms : Uniforms;
39 if(uniforms.color_source == 0u){
44 }elseif(uniforms.color_source == 1u){
51 }elseif(uniforms.color_source == 2u){
54 color = uniforms.color;
56 }elseif(uniforms.color_source == 3u){
72 _ = uniforms;
/third_party/skia/third_party/externals/tint/test/bug/fxc/matrix_assignment_dynamic_index/
Dlocal_assign_scalar_xy.wgsl.expected.spvasm13 OpName %uniforms "uniforms"
19 OpDecorate %uniforms NonWritable
20 OpDecorate %uniforms DescriptorSet 1
21 OpDecorate %uniforms Binding 4
25 %uniforms = OpVariable %_ptr_Uniform_Uniforms Uniform
41 %17 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_0
43 %20 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_1
Dmodule_assign_scalar_xy.wgsl.expected.spvasm13 OpName %uniforms "uniforms"
19 OpDecorate %uniforms NonWritable
20 OpDecorate %uniforms DescriptorSet 1
21 OpDecorate %uniforms Binding 4
25 %uniforms = OpVariable %_ptr_Uniform_Uniforms Uniform
41 %17 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_0
43 %20 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_1
Dlocal_assign_scalar_y.wgsl.expected.spvasm13 OpName %uniforms "uniforms"
19 OpDecorate %uniforms NonWritable
20 OpDecorate %uniforms DescriptorSet 1
21 OpDecorate %uniforms Binding 4
25 %uniforms = OpVariable %_ptr_Uniform_Uniforms Uniform
42 %19 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_1
Dlocal_assign_scalar_x.wgsl.expected.spvasm13 OpName %uniforms "uniforms"
19 OpDecorate %uniforms NonWritable
20 OpDecorate %uniforms DescriptorSet 1
21 OpDecorate %uniforms Binding 4
25 %uniforms = OpVariable %_ptr_Uniform_Uniforms Uniform
42 %17 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_0
Dlocal_assign_vector.wgsl.expected.spvasm13 OpName %uniforms "uniforms"
19 OpDecorate %uniforms NonWritable
20 OpDecorate %uniforms DescriptorSet 1
21 OpDecorate %uniforms Binding 4
25 %uniforms = OpVariable %_ptr_Uniform_Uniforms Uniform
41 %17 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_0
Dmodule_assign_scalar_y.wgsl.expected.spvasm13 OpName %uniforms "uniforms"
19 OpDecorate %uniforms NonWritable
20 OpDecorate %uniforms DescriptorSet 1
21 OpDecorate %uniforms Binding 4
25 %uniforms = OpVariable %_ptr_Uniform_Uniforms Uniform
42 %19 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_1
Dmodule_assign_vector.wgsl.expected.spvasm13 OpName %uniforms "uniforms"
19 OpDecorate %uniforms NonWritable
20 OpDecorate %uniforms DescriptorSet 1
21 OpDecorate %uniforms Binding 4
25 %uniforms = OpVariable %_ptr_Uniform_Uniforms Uniform
41 %17 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_0
Dmodule_assign_scalar_x.wgsl.expected.spvasm13 OpName %uniforms "uniforms"
19 OpDecorate %uniforms NonWritable
20 OpDecorate %uniforms DescriptorSet 1
21 OpDecorate %uniforms Binding 4
25 %uniforms = OpVariable %_ptr_Uniform_Uniforms Uniform
42 %17 = OpAccessChain %_ptr_Uniform_uint %uniforms %uint_0
/third_party/skia/src/core/
DSkRuntimeEffect.cpp195 skvm::Uniforms* uniforms, in make_skvm_uniforms() argument
207 uniform.push_back(p->uniform32(uniforms->push(bits)).id); in make_skvm_uniforms()
297 std::vector<Uniform> uniforms; in MakeInternal() local
355 uniforms.push_back(uni); in MakeInternal()
373 std::move(uniforms), in MakeInternal()
501 std::vector<Uniform>&& uniforms, in SkRuntimeEffect() argument
508 , fUniforms(std::move(uniforms)) in SkRuntimeEffect()
730 sk_sp<SkData> uniforms = nullptr; in get_xformed_uniforms() local
732 if (!uniforms) { in get_xformed_uniforms()
733 uniforms = SkData::MakeWithCopy(baseUniforms->data(), baseUniforms->size()); in get_xformed_uniforms()
[all …]
/third_party/skia/third_party/externals/tint/test/bug/chromium/
D1273230.wgsl65 [[binding(0), group(0)]] var<uniform> uniforms : Uniforms;
78 var bbMin = vec3<f32>(uniforms.bbMin.x, uniforms.bbMin.y, uniforms.bbMin.z);
79 var bbMax = vec3<f32>(uniforms.bbMax.x, uniforms.bbMax.y, uniforms.bbMax.z);
82 var gridSize = f32(uniforms.gridSize);
83 var gx = ((cubeSize * (position.x - uniforms.bbMin.x)) / cubeSize);
84 var gy = ((gx * (position.y - uniforms.bbMin.y)) / gridSize);
85 var gz = ((gridSize * (position.z - uniforms.bbMin.z)) / gridSize);
107 var g43 = uniforms.numTriangles;
118 if ((triangleIndex >= uniforms.numTriangles)) {
130 var lIndex = toIndex1D(uniforms.gridSize, p0);
D1273230.wgsl.expected.hlsl60 uint4 uniforms[3];
69 float3 bbMin = float3(asfloat(uniforms[1].x), asfloat(uniforms[1].y), asfloat(uniforms[1].z));
70 float3 bbMax = float3(asfloat(uniforms[2].x), asfloat(uniforms[2].y), asfloat(uniforms[2].z));
73 float gridSize = float(uniforms[0].y);
74 float gx = ((cubeSize * (position.x - asfloat(uniforms[1].x))) / cubeSize);
75 float gy = ((gx * (position.y - asfloat(uniforms[1].y))) / gridSize);
76 float gz = ((gridSize * (position.z - asfloat(uniforms[1].z))) / gridSize);
98 uint g43 = uniforms[0].x;
112 if ((triangleIndex >= uniforms[0].x)) {
124 uint lIndex = toIndex1D(uniforms[0].y, p0);
D1273230.wgsl.expected.wgsl83 [[binding(0), group(0)]] var<uniform> uniforms : Uniforms;
96 var bbMin = vec3<f32>(uniforms.bbMin.x, uniforms.bbMin.y, uniforms.bbMin.z);
97 var bbMax = vec3<f32>(uniforms.bbMax.x, uniforms.bbMax.y, uniforms.bbMax.z);
100 var gridSize = f32(uniforms.gridSize);
101 var gx = ((cubeSize * (position.x - uniforms.bbMin.x)) / cubeSize);
102 var gy = ((gx * (position.y - uniforms.bbMin.y)) / gridSize);
103 var gz = ((gridSize * (position.z - uniforms.bbMin.z)) / gridSize);
125 var g43 = uniforms.numTriangles;
136 if ((triangleIndex >= uniforms.numTriangles)) {
148 var lIndex = toIndex1D(uniforms.gridSize, p0);
/third_party/skia/experimental/graphite/src/
DContextUtils.cpp172 const Uniform* uniforms, in Make() argument
178 return sk_sp<UniformData>(new UniformData(count, uniforms, offsets, data, dataSize)); in Make()
183 sk_sp<UniformData> uniforms; in ExtractCombo() local
208 uniforms = make_linear_gradient_uniform_data(gradInfo.fPoint[0], in ExtractCombo()
220 uniforms = make_radial_gradient_uniform_data(gradInfo.fPoint[0], in ExtractCombo()
232 uniforms = make_sweep_gradient_uniform_data(gradInfo.fPoint[0], in ExtractCombo()
243 uniforms = make_conical_gradient_uniform_data(gradInfo.fPoint[0], in ExtractCombo()
256 uniforms = make_solid_uniform_data(p.getColor4f()); in ExtractCombo()
264 uniforms = make_solid_uniform_data(p.getColor4f()); in ExtractCombo()
269 sk_sp<UniformData> trueUD = cache->findOrCreate(std::move(uniforms)); in ExtractCombo()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/vulkan/
DFlagSamplersWithTexelFetch.cpp29 std::vector<ShaderVariable> *uniforms) in FlagSamplersWithTexelFetchTraverser() argument
30 : TIntermTraverser(true, true, true, symbolTable), mUniforms(uniforms) in FlagSamplersWithTexelFetchTraverser()
79 std::vector<ShaderVariable> *uniforms) in FlagSamplersForTexelFetch() argument
81 ASSERT(uniforms != nullptr); in FlagSamplersForTexelFetch()
82 if (uniforms->size() > 0) in FlagSamplersForTexelFetch()
84 FlagSamplersWithTexelFetchTraverser traverser(symbolTable, uniforms); in FlagSamplersForTexelFetch()

12345678910>>...17