Searched refs:uniform (Results 1 - 25 of 86) sorted by relevance

1234

/external/chromium_org/cc/output/
H A Dshader.cc178 uniform mat4 matrix;
216 uniform mat4 matrix;
218 uniform TexCoordPrecision vec2 texScale;
219 uniform TexCoordPrecision vec2 texOffset;
250 uniform mat4 matrix;
288 uniform mat4 matrix[8];
289 uniform TexCoordPrecision vec4 texTransform[8];
290 uniform float opacity[32];
339 // TODO(epenner): Find the cause of this 'quad' uniform
345 uniform mat
[all...]
/external/chromium_org/gpu/tools/compositor_model_bench/
H A Dshaders.cc131 uniform mat4 matrix;
134 uniform float y_widthScaleFactor;
135 uniform float uv_widthScaleFactor;
148 uniform mat4 matrix;
159 uniform mat4 matrix;
160 uniform vec4 texTransform;
175 uniform sampler2D y_texture;
176 uniform sampler2D u_texture;
177 uniform sampler2D v_texture;
178 uniform floa
[all...]
/external/chromium_org/gpu/command_buffer/tests/
H A Dgl_bind_uniform_location_unittest.cc47 uniform vec4 u_colorC;
48 uniform vec4 u_colorB[2];
49 uniform vec4 u_colorA;
111 uniform mat4 matrix;
112 uniform vec2 color_a[4];
113 uniform vec4 color_b;
127 uniform float alpha;
128 uniform vec4 multiplier;
129 uniform vec3 color_c[8];
H A Dgl_program_unittest.cc35 uniform mat4 u_modelViewProjMatrix;
43 uniform MyStruct u_struct;
44 uniform float u_array[4];
138 uniform vec4 u_color;
/external/chromium_org/third_party/angle/src/compiler/translator/
H A DUniformHLSL.cpp101 const Uniform *uniform = findUniformByName(name); local
102 ASSERT(uniform);
104 mUniformRegisterMap[uniform->name] = registerIndex;
106 unsigned int registerCount = HLSLVariableRegisterCount(*uniform, mOutputType);
108 if (gl::IsSampler(uniform->type))
127 const TIntermSymbol &uniform = *uniformIt->second; local
128 const TType &type = uniform.getType();
129 const TString &name = uniform.getSymbol();
135 uniforms += "uniform " + SamplerString(type) + " sampler_" + DecorateUniform(name, type) + ArrayString(type) +
138 uniforms += "uniform "
[all...]
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/d3d/
H A DProgramD3D.cpp172 const gl::LinkedUniform &uniform = *uniforms[uniformIndex]; local
174 if (!gl::IsSampler(uniform.type))
176 if (uniform.isReferencedByVertexShader())
178 vertexRegisters = std::max(vertexRegisters, uniform.vsRegisterIndex + uniform.registerCount);
180 if (uniform.isReferencedByFragmentShader())
182 fragmentRegisters = std::max(fragmentRegisters, uniform.psRegisterIndex + uniform.registerCount);
/external/chromium_org/third_party/skia/src/gpu/gl/
H A DGrGLProcessor.h50 TextureSampler(UniformHandle uniform, const GrTextureAccess& access) argument
51 : fSamplerUniform(uniform)
75 key; this function reads data from a GrProcessor and uploads any uniform variables required
H A DGrGLProgramDataManager.cpp27 Uniform& uniform = fUniforms[i]; local
32 uniform.fArrayCount = builderUniform.fVariable.getArrayCount();
33 uniform.fType = builderUniform.fVariable.getType();
35 // TODO: Move the Xoom uniform array in both FS and VS bug workaround here.
38 uniform.fVSLocation = builderUniform.fLocation;
40 uniform.fVSLocation = kUnusedUniform;
43 uniform.fFSLocation = builderUniform.fLocation;
45 uniform.fFSLocation = kUnusedUniform;
67 // FIXME: We still insert a single sampler uniform for every stage. If the shader does not
100 // Once the uniform manage
[all...]
/external/chromium_org/third_party/angle/src/libGLESv2/
H A DProgramBinary.cpp924 // Retrieve sampler uniform values
1178 LinkedUniform *uniform = new LinkedUniform(type, precision, name, arraySize, blockIndex, blockInfo);
1180 stream.readInt(&uniform->psRegisterIndex);
1181 stream.readInt(&uniform->vsRegisterIndex);
1182 stream.readInt(&uniform->registerCount);
1183 stream.readInt(&uniform->registerElement);
1185 mUniforms[uniformIndex] = uniform;
1401 const LinkedUniform &uniform = *mUniforms[uniformIndex];
1403 stream.writeInt(uniform.type);
1404 stream.writeInt(uniform
[all...]
H A DvalidationES.cpp1062 // Silently ignore the uniform command
1072 LinkedUniform *uniform = programBinary->getUniformByLocation(location); local
1074 // attempting to write an array to a non-array uniform is an INVALID_OPERATION
1075 if (uniform->elementCount() == 1 && count > 1)
1081 *uniformOut = uniform;
1087 // Check for ES3 uniform entry points
1094 LinkedUniform *uniform = NULL; local
1095 if (!ValidateUniformCommonBase(context, uniformType, location, count, &uniform))
1101 bool samplerUniformCheck = (IsSampler(uniform->type) && uniformType == GL_INT);
1102 if (!samplerUniformCheck && uniformType != uniform
1129 LinkedUniform *uniform = NULL; local
1905 LinkedUniform *uniform = programBinary->getUniformByLocation(location); local
[all...]
/external/chromium_org/third_party/angle/tests/compiler_tests/
H A DExpressionLimit_test.cpp62 uniform vec4 u_color;
80 uniform vec4 u_color;
102 uniform vec4 u_color;
304 uniform vec4 u_color;
316 uniform vec4 u_color;
335 uniform vec4 u_color;
351 uniform vec4 u_color;
367 uniform vec4 u_color;
379 uniform vec4 u_color;
391 uniform vec
[all...]
/external/chromium_org/third_party/angle/tests/angle_tests/
H A DTextureTest.cpp48 uniform sampler2D tex;
60 uniform sampler2D tex2D;
61 uniform samplerCube texCube;
/external/chromium_org/third_party/angle/samples/angle/particle_system/
H A DParticleSystem.cpp38 uniform float u_time;
39 uniform vec3 u_centerPosition;
65 uniform vec4 u_color;
67 uniform sampler2D s_texture;
88 // Get the uniform locations
159 // Load uniform time variable
/external/deqp/modules/gles31/functional/
H A Des31fProgramUniformTests.cpp23 * \todo [2013-02-26 nuutti] Much duplication between ES2&3 uniform api
323 void addUniform (const Uniform& uniform) { m_uniforms.push_back(uniform); } argument
811 // UNIFORMFUNC_VALUE: use pass-by-value versions of uniform assignment funcs, e.g. glProgramUniform1f(), where possible. If not given, use pass-by-pointer versions.
842 // A basic uniform is a uniform (possibly struct or array member) whose type is a basic type (e.g. float, ivec4, sampler2d).
848 VarValue finalValue; //!< The value we ultimately want to set for this uniform.
898 // Get uniform values with glGetUniform*() and put to valuesDst. Uniforms that get -1 from glGetUniformLocation() get glu::TYPE_INVALID.
902 // Compare the uniform values given in values (obtained with glGetUniform*()) with the basicUniform.finalValue values.
904 // Render and check that all pixels are green (i.e. all uniform comparison
1280 const BasicUniform& uniform = basicUniforms[unifNdx]; local
1361 const BasicUniform& uniform = basicUniforms[unifNdx]; local
1560 const BasicUniform& uniform = basicUniforms[unifNdx]; local
[all...]
/external/chromium_org/third_party/angle/samples/angle/mip_map_2d/
H A DMipMap2D.cpp32 uniform float u_offset;
48 uniform sampler2D s_texture;
/external/chromium_org/third_party/angle/samples/angle/multi_texture/
H A DMultiTexture.cpp58 uniform sampler2D s_baseMap;
59 uniform sampler2D s_lightMap;
/external/chromium_org/third_party/angle/samples/angle/texture_wrap/
H A DTextureWrap.cpp32 uniform float u_offset;
48 uniform sampler2D s_texture;
/external/deqp/modules/glshared/
H A DglsUniformBlockCase.cpp594 const Uniform& uniform = *uniformIter; local
595 computeStd140Layout(layout, curOffset, activeBlockNdx, blockPrefix + uniform.getName(), uniform.getType(), mergeLayoutFlags(block.getFlags(), uniform.getFlags()));
612 // Compute active uniform set for block.
813 void generateDeclaration (std::ostringstream& src, const Uniform& uniform, int indentLevel);
906 void generateDeclaration (std::ostringstream& src, const Uniform& uniform, int indentLevel) argument
908 if ((uniform.getFlags() & LAYOUT_MASK) != 0)
909 src << "layout(" << LayoutFlagsFmt(uniform.getFlags() & LAYOUT_MASK) << ") ";
911 generateDeclaration(src, uniform
1081 const Uniform& uniform = *uniformIter; local
1795 const UniformLayoutEntry& uniform = layout.uniforms[uniformNdx]; local
1830 const UniformLayoutEntry& uniform = layout.uniforms[uniformNdx]; local
[all...]
/external/deqp/modules/gles3/functional/
H A Des3fUniformApiTests.cpp343 void addUniform (const Uniform& uniform) { m_uniforms.push_back(uniform); }
526 Uniform uniform(("u_var" + de::toString(i)).c_str(), glu::VarType());
534 uniform.type = (("u_var" + de::toString(i)).c_str(), generateRandomType(3, structIdx, structTypes, rnd));
535 } while (res->getNumSamplers() + getNumSamplersInType(uniform.type) > MAX_NUM_SAMPLER_UNIFORMS);
537 res->addUniform(uniform);
917 // UNIFORMFUNC_VALUE: use pass-by-value versions of uniform assignment funcs, e.g. glUniform1f(), where possible. If not given, use pass-by-pointer versions.
934 // UNIFORMVALUE_ZERO: use zero-valued uniforms. If not given, use random uniform values.
952 // A basic uniform is a uniform (possibl
1721 const BasicUniform& uniform = basicUniforms[unifNdx]; local
1800 const BasicUniform& uniform = basicUniforms[unifNdx]; local
1858 const BasicUniform& uniform = basicUniforms[unifNdx]; local
2057 const BasicUniform& uniform = basicUniforms[unifNdx]; local
[all...]
/external/deqp/modules/gles2/functional/
H A Des2fUniformApiTests.cpp277 void addUniform (const Uniform& uniform) { m_uniforms.push_back(uniform); }
460 Uniform uniform(("u_var" + de::toString(i)).c_str(), glu::VarType());
468 uniform.type = (("u_var" + de::toString(i)).c_str(), generateRandomType(3, structIdx, structTypes, rnd));
469 } while (res->getNumSamplers() + getNumSamplersInType(uniform.type) > MAX_NUM_SAMPLER_UNIFORMS);
471 res->addUniform(uniform);
756 // UNIFORMFUNC_VALUE: use pass-by-value versions of uniform assignment funcs, e.g. glUniform1f(), where possible. If not given, use pass-by-pointer versions.
769 // UNIFORMVALUE_ZERO: use zero-valued uniforms. If not given, use random uniform values.
787 // A basic uniform is a uniform (possibl
1364 const BasicUniform& uniform = basicUniforms[unifNdx]; local
1434 const BasicUniform& uniform = basicUniforms[unifNdx]; local
1487 const BasicUniform& uniform = basicUniforms[unifNdx]; local
1645 const BasicUniform& uniform = basicUniforms[unifNdx]; local
[all...]
/external/chromium_org/gpu/command_buffer/service/
H A Dgles2_cmd_copy_texture_chromium.cc57 uniform mat4 u_matrix;
58 uniform vec2 u_half_size;
68 uniform mat4 u_matrix;
69 uniform vec2 u_half_size;
82 uniform SamplerType u_sampler;
89 uniform SamplerType u_sampler;
97 uniform SamplerType u_sampler;
/external/deqp/framework/randomshaders/
H A DrsgUtils.cpp41 const ShaderInput* uniform = *i; local
42 if (addedUniforms.find(uniform->getVariable()->getName()) == addedUniforms.end())
44 addedUniforms.insert(uniform->getVariable()->getName());
45 uniforms.push_back(uniform);
119 const ShaderInput* uniform = *i; local
120 values.push_back(VariableValue(uniform->getVariable()));
121 computeRandomValue(rnd, values[values.size()-1].getValue(), uniform->getValueRange());
/external/chromium_org/third_party/angle/samples/angle/simple_texture_2d/
H A DSimpleTexture2D.cpp46 uniform sampler2D s_texture;
/external/chromium_org/third_party/angle/samples/angle/simple_texture_cubemap/
H A DSimpleTextureCubemap.cpp48 uniform samplerCube s_texture;
/external/llvm/examples/Kaleidoscope/MCJIT/cached/
H A Dgenk-timing.py131 self.writeln(" %s = %s %s %f :" % (LValue, LHS, operation, random.uniform(1, 100)))
165 arg1 = random.uniform(1, 100)
166 arg2 = random.uniform(1, 100)

Completed in 442 milliseconds

1234