Edit

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

Branch :

  • Show log

    Commit

  • Author : Ethan Lee
    Date : 2019-11-21 11:37:17
    Hash : a825eb70
    Message : Implement BaseVertex draw calls for Vulkan, OpenGL, NULL contexts. This adds support for the following functions: - glDrawElementsBaseVertex - glDrawRangeElementsBaseVertex - glDrawElementsInstancedBaseVertex Bug: angleproject:3582 Bug: angleproject:3402 Bug: angleproject:4166 Change-Id: I83770f62e3a918c0965fd4ca8c7d9e598b8b4154 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1929083 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org>

  • src/libANGLE/validationGL32.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.
    //
    
    // validationGL32.cpp: Validation functions for OpenGL 3.2 entry point parameters
    
    #include "libANGLE/validationGL32_autogen.h"
    
    namespace gl
    {
    
    bool ValidateMultiDrawElementsBaseVertex(Context *context,
                                             PrimitiveMode mode,
                                             const GLsizei *count,
                                             DrawElementsType type,
                                             const void *const *indices,
                                             GLsizei drawcount,
                                             const GLint *basevertex)
    {
        return true;
    }
    
    bool ValidateProvokingVertex(Context *context, ProvokingVertexConvention modePacked)
    {
        return true;
    }
    
    bool ValidateTexImage2DMultisample(Context *context,
                                       GLenum target,
                                       GLsizei samples,
                                       GLenum internalformat,
                                       GLsizei width,
                                       GLsizei height,
                                       GLboolean fixedsamplelocations)
    {
        return true;
    }
    
    bool ValidateTexImage3DMultisample(Context *context,
                                       GLenum target,
                                       GLsizei samples,
                                       GLenum internalformat,
                                       GLsizei width,
                                       GLsizei height,
                                       GLsizei depth,
                                       GLboolean fixedsamplelocations)
    {
        return true;
    }
    
    }  // namespace gl