Home | History | Annotate | Download | only in randomshaders

Lines Matching refs:Variable

65 void createAssignment (BlockStatement& block, const Variable* dstVar, const Variable* srcVar)
101 const Variable* outVar = entry->getVariable();
104 if (outVar->getStorage() != Variable::STORAGE_SHADER_OUT)
114 Variable* inVar = state.getVariableManager().allocate(outVar->getType(), Variable::STORAGE_SHADER_IN, inVarName.c_str());
130 Variable* inColorVariable = state.getVariableManager().allocate(fragColorEntry->getVariable()->getType(), Variable::STORAGE_SHADER_IN, "v_color");
197 Variable* variable = m_state.getVariableManager().allocate(input->getVariable()->getType(), Variable::STORAGE_SHADER_OUT, input->getVariable()->getName());
199 m_state.getVariableManager().setValue(variable, input->getValueRange());
206 Variable* fragColorVar = m_state.getVariableManager().allocate(VariableType(VariableType::TYPE_FLOAT, 4), Variable::STORAGE_SHADER_OUT, getFragColorName(m_state));
228 const vector<Variable*>& liveVars = globalVariableScope.getLiveVariables();
229 for (vector<Variable*>::const_iterator i = liveVars.begin(); i != liveVars.end(); i++)
231 Variable* variable = *i;
232 if (variable->getStorage() == Variable::STORAGE_SHADER_OUT)
233 funcGen.requireAssignment(variable);
254 Variable* glPosVariable = m_state.getVariableManager().allocate(VariableType(VariableType::TYPE_FLOAT, 4), Variable::STORAGE_SHADER_OUT, "gl_Position");
255 Variable* qpPosVariable = m_state.getVariableManager().allocate(VariableType(VariableType::TYPE_FLOAT, 4), Variable::STORAGE_SHADER_IN, "dEQP_Position");
270 vector<Variable*> liveVariables;
273 vector<Variable*> createDeclarationStatementVars;
275 for (vector<Variable*>::iterator i = liveVariables.begin(); i != liveVariables.end(); i++)
277 Variable* variable = *i;
278 const char* name = variable->getName();
285 switch (variable->getStorage())
287 case Variable::STORAGE_SHADER_IN:
289 const ValueEntry* value = m_state.getVariableManager().getValue(variable);
292 inputs.push_back(new ShaderInput(variable, value->getValueRange()));
296 case Variable::STORAGE_UNIFORM:
298 const ValueEntry* value = m_state.getVariableManager().getValue(variable);
301 uniforms.push_back(new ShaderInput(variable, value->getValueRange()));
310 createDeclarationStatementVars.push_back(variable);
314 m_state.getVariableManager().declareVariable(variable);
318 // All global initializers must be constant expressions, no variable allocation is allowed
323 for (vector<Variable*>::iterator i = createDeclarationStatementVars.begin(); i != createDeclarationStatementVars.end(); i++)