Lines Matching refs:mode
59 inline bool isNearestMipmapFilter (const Sampler::FilterMode mode) in isNearestMipmapFilter() argument
61 return mode == Sampler::NEAREST_MIPMAP_NEAREST || mode == Sampler::LINEAR_MIPMAP_NEAREST; in isNearestMipmapFilter()
64 inline bool isLinearMipmapFilter (const Sampler::FilterMode mode) in isLinearMipmapFilter() argument
66 return mode == Sampler::NEAREST_MIPMAP_LINEAR || mode == Sampler::LINEAR_MIPMAP_LINEAR; in isLinearMipmapFilter()
69 inline bool isMipmapFilter (const Sampler::FilterMode mode) in isMipmapFilter() argument
71 return isNearestMipmapFilter(mode) || isLinearMipmapFilter(mode); in isMipmapFilter()
74 inline bool isLinearFilter (const Sampler::FilterMode mode) in isLinearFilter() argument
76 …return mode == Sampler::LINEAR || mode == Sampler::LINEAR_MIPMAP_NEAREST || mode == Sampler::LINEA… in isLinearFilter()
79 inline bool isNearestFilter (const Sampler::FilterMode mode) in isNearestFilter() argument
81 return !isLinearFilter(mode); in isNearestFilter()
84 inline Sampler::FilterMode getLevelFilter (const Sampler::FilterMode mode) in getLevelFilter() argument
86 return isLinearFilter(mode) ? Sampler::LINEAR : Sampler::NEAREST; in getLevelFilter()
89 inline bool isWrapModeSupported (const Sampler::WrapMode mode) in isWrapModeSupported() argument
91 return mode != Sampler::MIRRORED_REPEAT_CL && mode != Sampler::REPEAT_CL; in isWrapModeSupported()
100 int wrap (Sampler::WrapMode mode, int c, int size);