Home
last modified time | relevance | path

Searched refs:maxScalars (Results 1 - 3 of 3) sorted by relevance

/third_party/vk-gl-cts/framework/randomshaders/
H A DrsgUtils.hpp48 VariableType computeRandomType (GeneratorState& state, int maxScalars);
H A DrsgExpression.cpp705 const int maxScalars = 4; // We don't have to be able to assign this value to anywhere in ConstructorOp() local
706 m_valueRange = ValueRange(computeRandomType(state, maxScalars)); in ConstructorOp()
848 int maxScalars = state.getShaderParameters().maxCombinedVariableScalars - state.getVariableManager().getNumAllocatedScalars(); in AssignOp() local
849 bool useRandomRange = !state.getVariableManager().hasEntry<IsWritableEntry>() || ((maxScalars > 0) && getWeightedBool(state.getRandom(), 0.1f)); in AssignOp()
853 DE_ASSERT(maxScalars > 0); in AssignOp()
854 m_valueRange = ValueRange(computeRandomType(state, maxScalars)); in AssignOp()
1112 int maxScalars = state.getShaderParameters().maxCombinedVariableScalars - state.getVariableManager().getNumAllocatedScalars(); in VariableRead() local
1113 bool useRandomRange = !state.getVariableManager().hasEntry(filter) || ((maxScalars > 0) && getWeightedBool(state.getRandom(), 0.5f)); in VariableRead()
1118 DE_ASSERT(maxScalars > 0); in VariableRead()
1119 ValueRange newVarRange(computeRandomType(state, maxScalars)); in VariableRead()
[all...]
H A DrsgUtils.cpp153 VariableType computeRandomType (GeneratorState& state, int maxScalars) in computeRandomType() argument
155 DE_ASSERT(maxScalars >= 1); in computeRandomType()
176 return VariableType(baseType, state.getRandom().getInt(minVecLength, de::min(maxScalars, maxVecLength))); in computeRandomType()

Completed in 4 milliseconds