Searched refs:clampCast (Results 1 – 8 of 8) sorted by relevance
48 return clampCast<QueryT>(ExpandFloatToInteger(static_cast<GLfloat>(value))); in CastFromStateValueToInt()50 return clampCast<QueryT>(std::round(value)); in CastFromStateValueToInt()54 return clampCast<QueryT>(value); in CastFromStateValueToInt()83 return clampCast<GLint>(value); in CastMaskValue()89 return CastFromStateValue<QueryT, GLint>(pname, clampCast<GLint, InternalT>(value)); in CastFromGLintStateValue()
444 context, clampCast<GLuint>(CastQueryValueTo<GLint>(pname, params[0])))); in SetTexParameterBase()449 clampCast<GLuint>(CastQueryValueTo<GLint>(pname, params[0]))); in SetTexParameterBase()693 return clampCast<GLint>(var.type); in GetCommonVariableProperty()698 return clampCast<GLint>(var.getBasicTypeElementCount()); in GetCommonVariableProperty()702 return clampCast<GLint>(var.name.size() + 1u); in GetCommonVariableProperty()721 return clampCast<GLint>(program->getInputResourceName(index).size() + 1u); in GetInputResourceProperty()763 return clampCast<GLint>(program->getOutputResourceName(index).size() + 1u); in GetOutputResourceProperty()810 return clampCast<GLint>(tfVariable.type); in GetTransformFeedbackVaryingResourceProperty()813 return clampCast<GLint>(tfVariable.size()); in GetTransformFeedbackVaryingResourceProperty()816 return clampCast<GLint>(tfVariable.nameWithArrayIndex().size() + 1); in GetTransformFeedbackVaryingResourceProperty()[all …]
256 return clampCast<GLint>(mModelviewMatrices.size()); in getCurrentMatrixStackDepth()258 return clampCast<GLint>(mProjectionMatrices.size()); in getCurrentMatrixStackDepth()260 return clampCast<GLint>(mTextureMatrices[mGLState->getActiveSampler()].size()); in getCurrentMatrixStackDepth()
53 return clampCast<GLint>(roundf(value)); in UniformStateQueryCast()59 return clampCast<GLuint>(roundf(value)); in UniformStateQueryCast()66 return clampCast<GLint>(value); in UniformStateQueryCast()72 return clampCast<GLuint>(value); in UniformStateQueryCast()2200 return std::max(max, clampCast<GLint>((resource.name + "[0]").size())); in getResourceMaxNameSize()2204 return std::max(max, clampCast<GLint>((resource.name).size())); in getResourceMaxNameSize()2491 *size = clampCast<GLint>(uniform.getBasicTypeElementCount()); in getActiveUniform()
68 inline DestT clampCast(SrcT value) in clampCast() function104 inline unsigned int clampCast(bool value) in clampCast() function110 inline int clampCast(bool value) in clampCast() function
255 numIndicesPerInstance = gl::clampCast<UINT>(vertexCount); in createInputLayout()
1901 UINT clampedVertexCount = gl::clampCast<UINT>(indexRange.vertexCount()); in drawElements()3956 elementCount = gl::clampCast<unsigned int>(count); in getVertexSpaceRequired()
911 uint32_t clampedVertexCount = gl::clampCast<uint32_t>(vertexOrIndexCount); in handleLineLoop()