chromium/third_party/angle/src/libANGLE/renderer/gl/SamplerGL.cpp

//
// Copyright 2014 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//

// SamplerGL.cpp: Defines the rx::SamplerGL class, an implementation of SamplerImpl.

#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

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
{}
}  // namespace rx