#include "libANGLE/renderer/gl/SamplerGL.h"
#include "libANGLE/renderer/gl/FunctionsGL.h"
#include "libANGLE/renderer/gl/StateManagerGL.h"
namespace
{
template <typename T>
inline void SetSamplerParameter(const rx::FunctionsGL *functions,
GLuint sampler,
GLenum name,
const T &value)
{ … }
inline void SetSamplerParameter(const rx::FunctionsGL *functions,
GLuint sampler,
GLenum name,
const angle::ColorGeneric &value)
{ … }
template <typename Getter, typename Setter>
static inline void SyncSamplerStateMember(const rx::FunctionsGL *functions,
GLuint sampler,
const gl::SamplerState &newState,
gl::SamplerState &curState,
GLenum name,
Getter getter,
Setter setter)
{ … }
}
namespace rx
{
SamplerGL::SamplerGL(const gl::SamplerState &state,
const FunctionsGL *functions,
StateManagerGL *stateManager)
: … { … }
SamplerGL::~SamplerGL()
{ … }
angle::Result SamplerGL::syncState(const gl::Context *context, const bool dirty)
{ … }
GLuint SamplerGL::getSamplerID() const
{ … }
}