Home
last modified time | relevance | path

Searched refs:clampCast (Results 1 – 8 of 8) sorted by relevance

/external/angle/src/libANGLE/
Dqueryconversions.cpp48 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()
Dqueryutils.cpp444 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 …]
DGLES1State.cpp256 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()
DProgram.cpp53 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()
/external/angle/src/common/
Dmathutil.h68 inline DestT clampCast(SrcT value) in clampCast() function
104 inline unsigned int clampCast(bool value) in clampCast() function
110 inline int clampCast(bool value) in clampCast() function
/external/angle/src/libANGLE/renderer/d3d/d3d11/
DInputLayoutCache.cpp255 numIndicesPerInstance = gl::clampCast<UINT>(vertexCount); in createInputLayout()
DRenderer11.cpp1901 UINT clampedVertexCount = gl::clampCast<UINT>(indexRange.vertexCount()); in drawElements()
3956 elementCount = gl::clampCast<unsigned int>(count); in getVertexSpaceRequired()
/external/angle/src/libANGLE/renderer/vulkan/
DVertexArrayVk.cpp911 uint32_t clampedVertexCount = gl::clampCast<uint32_t>(vertexOrIndexCount); in handleLineLoop()