Home
last modified time | relevance | path

Searched refs:ColorGeneric (Results 1 – 17 of 17) sorted by relevance

/external/angle/src/common/
DColor.inc38 ColorGeneric::ColorGeneric() : colorF(), type(Type::Float) {}
40 ColorGeneric::ColorGeneric(const ColorF &color) : colorF(color), type(Type::Float) {}
42 ColorGeneric::ColorGeneric(const ColorI &color) : colorI(color), type(Type::Int) {}
44 ColorGeneric::ColorGeneric(const ColorUI &color) : colorUI(color), type(Type::UInt) {}
46 bool operator==(const ColorGeneric &a, const ColorGeneric &b)
50 return memcmp(&a, &b, sizeof(ColorGeneric)) == 0;
53 bool operator!=(const ColorGeneric &a, const ColorGeneric &b)
DColor.h55 struct ColorGeneric struct
57 inline ColorGeneric();
58 inline ColorGeneric(const ColorF &color);
59 inline ColorGeneric(const ColorI &color);
60 inline ColorGeneric(const ColorUI &color);
80 inline bool operator==(const ColorGeneric &a, const ColorGeneric &b); argument
82 inline bool operator!=(const ColorGeneric &a, const ColorGeneric &b);
103 using ColorGeneric = angle::ColorGeneric; variable
/external/angle/src/libANGLE/renderer/gl/
DSamplerGL.cpp29 const angle::ColorGeneric &value) in SetSamplerParameter()
33 case angle::ColorGeneric::Type::Float: in SetSamplerParameter()
36 case angle::ColorGeneric::Type::Int: in SetSamplerParameter()
39 case angle::ColorGeneric::Type::UInt: in SetSamplerParameter()
DTextureGL.cpp1721 angle::ColorGeneric borderColor = mState.getSamplerState().getBorderColor(); in syncState()
1753 case angle::ColorGeneric::Type::Float: in syncState()
1759 case angle::ColorGeneric::Type::Int: in syncState()
1765 case angle::ColorGeneric::Type::UInt: in syncState()
/external/angle/src/libANGLE/
DSampler.h71 void setBorderColor(const Context *context, const ColorGeneric &color);
72 const ColorGeneric &getBorderColor() const;
DSampler.cpp176 void Sampler::setBorderColor(const Context *context, const ColorGeneric &color) in setBorderColor()
182 const ColorGeneric &Sampler::getBorderColor() const in getBorderColor()
Dqueryutils.cpp41 ColorGeneric ConvertToColor(const GLfloat *params) in ConvertToColor()
46 return ColorGeneric(ColorI()); in ConvertToColor()
50 return ColorGeneric(ColorF::fromData(params)); in ConvertToColor()
55 ColorGeneric ConvertToColor(const GLint *params) in ConvertToColor()
59 return ColorGeneric(ColorI(params[0], params[1], params[2], params[3])); in ConvertToColor()
63 return ColorGeneric(ColorF(normalizedToFloat(params[0]), normalizedToFloat(params[1]), in ConvertToColor()
69 ColorGeneric ConvertToColor(const GLuint *params) in ConvertToColor()
73 return ColorGeneric(ColorUI(params[0], params[1], params[2], params[3])); in ConvertToColor()
78 return ColorGeneric(ColorF()); in ConvertToColor()
83 void ConvertFromColor(const ColorGeneric &color, GLfloat *outParams) in ConvertFromColor()
[all …]
DTexture.h400 void setBorderColor(const Context *context, const ColorGeneric &color);
401 const ColorGeneric &getBorderColor() const;
Dangletypes.h442 bool setBorderColor(const ColorGeneric &color);
444 const ColorGeneric &getBorderColor() const { return mBorderColor; } in getBorderColor()
472 ColorGeneric mBorderColor;
Dangletypes.cpp355 bool SamplerState::setBorderColor(const ColorGeneric &color) in setBorderColor()
DTexture.cpp2263 void Texture::setBorderColor(const Context *context, const ColorGeneric &color) in setBorderColor()
2269 const ColorGeneric &Texture::getBorderColor() const in getBorderColor()
/external/angle/src/libANGLE/capture/
Dserialize.cpp81 const char *ColorGenericTypeToString(gl::ColorGeneric::Type type) in ColorGenericTypeToString()
85 ENUM_TO_STRING(gl::ColorGeneric::Type, Float); in ColorGenericTypeToString()
86 ENUM_TO_STRING(gl::ColorGeneric::Type, Int); in ColorGenericTypeToString()
87 ENUM_TO_STRING(gl::ColorGeneric::Type, UInt); in ColorGenericTypeToString()
730 const ColorGeneric &colorGeneric) in SerializeColorGeneric()
733 ASSERT(colorGeneric.type == ColorGeneric::Type::Float || in SerializeColorGeneric()
734 colorGeneric.type == ColorGeneric::Type::Int || in SerializeColorGeneric()
735 colorGeneric.type == ColorGeneric::Type::UInt); in SerializeColorGeneric()
737 if (colorGeneric.type == ColorGeneric::Type::Float) in SerializeColorGeneric()
741 else if (colorGeneric.type == ColorGeneric::Type::Int) in SerializeColorGeneric()
/external/angle/src/libANGLE/renderer/
Drenderer_utils.cpp1879 const gl::ColorGeneric AdjustBorderColor(const angle::ColorGeneric &borderColorGeneric, in AdjustBorderColor()
1883 gl::ColorGeneric adjustedBorderColor = borderColorGeneric; in AdjustBorderColor()
2007 template const gl::ColorGeneric AdjustBorderColor<true>(
2008 const angle::ColorGeneric &borderColorGeneric,
2011 template const gl::ColorGeneric AdjustBorderColor<false>(
2012 const angle::ColorGeneric &borderColorGeneric,
Drenderer_utils.h533 const gl::ColorGeneric AdjustBorderColor(const angle::ColorGeneric &borderColorGeneric,
/external/angle/src/libANGLE/renderer/d3d/d3d11/
DStateManager11.cpp383 angle::ColorGeneric borderColor; in updateSamplerMetadata()
386 if (samplerState.getBorderColor().type != angle::ColorGeneric::Type::Float) in updateSamplerMetadata()
2714 angle::ColorGeneric borderColor; in setSamplerState()
2717 if (samplerState.getBorderColor().type == angle::ColorGeneric::Type::Float) in setSamplerState()
/external/angle/src/libANGLE/renderer/d3d/d3d9/
DRenderer9.cpp1046 angle::ColorGeneric borderColor = texture->getBorderColor(); in setSamplerState()
1047 ASSERT(borderColor.type == angle::ColorGeneric::Type::Float); in setSamplerState()
/external/angle/src/libANGLE/renderer/vulkan/
Dvk_cache_utils.cpp5754 (samplerState.getBorderColor().type == angle::ColorGeneric::Type::Float) ? 0 : 1; in update()
5758 gl::ColorGeneric adjustedBorderColor = in update()
5821 if (mBorderColorType == static_cast<uint32_t>(angle::ColorGeneric::Type::Float)) in init()