Edit

kc3-lang/angle/src/libANGLE/validationGL31.cpp

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2019-08-06 17:44:12
    Hash : 3b3fe837
    Message : Use BufferID in place of GLuint handles. Introduces enable_if handling for "FromGL". Avoids the use of any macro code to handle resource id casting. Bug: angleproject:3611 Change-Id: I1a6d10c3c9cc6ba0dc072bad1d62c33551f05d87 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1736127 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: Tim Van Patten <timvp@google.com>

  • src/libANGLE/validationGL31.cpp
  • //
    // Copyright 2019 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.
    //
    
    // validationGL31.cpp: Validation functions for OpenGL 3.1 entry point parameters
    
    #include "libANGLE/validationGL31_autogen.h"
    
    namespace gl
    {
    
    bool ValidateGetActiveUniformName(Context *context,
                                      GLuint program,
                                      GLuint uniformIndex,
                                      GLsizei bufSize,
                                      GLsizei *length,
                                      GLchar *uniformName)
    {
        return true;
    }
    
    bool ValidatePrimitiveRestartIndex(Context *context, GLuint index)
    {
        return true;
    }
    
    bool ValidateTexBuffer(Context *context, GLenum target, GLenum internalformat, BufferID buffer)
    {
        return true;
    }
    
    }  // namespace gl