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)
55 case ColorGeneric::Type::Float:
57 case ColorGeneric::Type::Int:
59 case ColorGeneric::Type::UInt:
64 bool operator!=(const ColorGeneric &a, const ColorGeneric &b)
DColor.h51 struct ColorGeneric struct
53 inline ColorGeneric();
54 inline ColorGeneric(const ColorF &color);
55 inline ColorGeneric(const ColorI &color);
56 inline ColorGeneric(const ColorUI &color);
75 inline bool operator==(const ColorGeneric &a, const ColorGeneric &b); argument
77 inline bool operator!=(const ColorGeneric &a, const ColorGeneric &b);
98 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.cpp1607 angle::ColorGeneric borderColor = mState.getSamplerState().getBorderColor(); in syncState()
1637 case angle::ColorGeneric::Type::Float: in syncState()
1643 case angle::ColorGeneric::Type::Int: in syncState()
1649 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 …]
Dangletypes.h411 bool setBorderColor(const ColorGeneric &color);
413 const ColorGeneric &getBorderColor() const { return mBorderColor; } in getBorderColor()
441 ColorGeneric mBorderColor;
DTexture.h371 void setBorderColor(const Context *context, const ColorGeneric &color);
372 const ColorGeneric &getBorderColor() const;
Dangletypes.cpp341 bool SamplerState::setBorderColor(const ColorGeneric &color) in setBorderColor()
DTexture.cpp2074 void Texture::setBorderColor(const Context *context, const ColorGeneric &color) in setBorderColor()
2080 const ColorGeneric &Texture::getBorderColor() const in getBorderColor()
/external/angle/src/libANGLE/capture/
Dserialize.cpp82 const char *ColorGenericTypeToString(gl::ColorGeneric::Type type) in ColorGenericTypeToString()
86 ENUM_TO_STRING(gl::ColorGeneric::Type, Float); in ColorGenericTypeToString()
87 ENUM_TO_STRING(gl::ColorGeneric::Type, Int); in ColorGenericTypeToString()
88 ENUM_TO_STRING(gl::ColorGeneric::Type, UInt); in ColorGenericTypeToString()
735 const ColorGeneric &colorGeneric) in SerializeColorGeneric()
738 ASSERT(colorGeneric.type == ColorGeneric::Type::Float || in SerializeColorGeneric()
739 colorGeneric.type == ColorGeneric::Type::Int || in SerializeColorGeneric()
740 colorGeneric.type == ColorGeneric::Type::UInt); in SerializeColorGeneric()
742 if (colorGeneric.type == ColorGeneric::Type::Float) in SerializeColorGeneric()
746 else if (colorGeneric.type == ColorGeneric::Type::Int) in SerializeColorGeneric()
/external/angle/src/libANGLE/renderer/
Drenderer_utils.cpp1599 const gl::ColorGeneric AdjustBorderColor(const angle::ColorGeneric &borderColorGeneric, in AdjustBorderColor()
1603 gl::ColorGeneric adjustedBorderColor = borderColorGeneric; in AdjustBorderColor()
1726 template const gl::ColorGeneric AdjustBorderColor<true>(
1727 const angle::ColorGeneric &borderColorGeneric,
1730 template const gl::ColorGeneric AdjustBorderColor<false>(
1731 const angle::ColorGeneric &borderColorGeneric,
Drenderer_utils.h451 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()
2695 angle::ColorGeneric borderColor; in setSamplerState()
2698 if (samplerState.getBorderColor().type == angle::ColorGeneric::Type::Float) in setSamplerState()
/external/angle/src/libANGLE/renderer/d3d/d3d9/
DRenderer9.cpp1036 angle::ColorGeneric borderColor = texture->getBorderColor(); in setSamplerState()
1037 ASSERT(borderColor.type == angle::ColorGeneric::Type::Float); in setSamplerState()
/external/angle/src/libANGLE/renderer/vulkan/
Dvk_cache_utils.cpp5242 (samplerState.getBorderColor().type == angle::ColorGeneric::Type::Float) ? 0 : 1; in update()
5246 gl::ColorGeneric adjustedBorderColor = in update()
5323 if (mBorderColorType == static_cast<uint32_t>(angle::ColorGeneric::Type::Float)) in init()