Lines Matching refs:mode
69 inline bool isNearestMipmapFilter(const Sampler::FilterMode mode) in isNearestMipmapFilter() argument
71 …return mode == Sampler::NEAREST_MIPMAP_NEAREST || mode == Sampler::LINEAR_MIPMAP_NEAREST || mode =… in isNearestMipmapFilter()
74 inline bool isLinearMipmapFilter(const Sampler::FilterMode mode) in isLinearMipmapFilter() argument
76 …return mode == Sampler::NEAREST_MIPMAP_LINEAR || mode == Sampler::LINEAR_MIPMAP_LINEAR || mode == … in isLinearMipmapFilter()
79 inline bool isMipmapFilter(const Sampler::FilterMode mode) in isMipmapFilter() argument
81 return isNearestMipmapFilter(mode) || isLinearMipmapFilter(mode); in isMipmapFilter()
84 inline bool isNearestFilter(const Sampler::FilterMode mode) in isNearestFilter() argument
86 …return mode == Sampler::NEAREST || mode == Sampler::NEAREST_MIPMAP_NEAREST || mode == Sampler::NEA… in isNearestFilter()
89 inline bool isLinearFilter(const Sampler::FilterMode mode) in isLinearFilter() argument
91 …return mode == Sampler::LINEAR || mode == Sampler::LINEAR_MIPMAP_NEAREST || mode == Sampler::LINEA… in isLinearFilter()
94 inline bool isCubicFilter(const Sampler::FilterMode mode) in isCubicFilter() argument
96 …return mode == Sampler::CUBIC || mode == Sampler::CUBIC_MIPMAP_NEAREST || mode == Sampler::CUBIC_M… in isCubicFilter()
99 inline Sampler::FilterMode getLevelFilter(const Sampler::FilterMode mode) in getLevelFilter() argument
101 if (isNearestFilter(mode)) in getLevelFilter()
103 if (isLinearFilter(mode)) in getLevelFilter()
108 inline bool isWrapModeSupported (const Sampler::WrapMode mode) in isWrapModeSupported() argument
110 return mode != Sampler::MIRRORED_REPEAT_CL && mode != Sampler::REPEAT_CL; in isWrapModeSupported()
119 int wrap (Sampler::WrapMode mode, int c, int size);