Edit

kc3-lang/angle/src/libOpenCL/libOpenCL_ICD.cpp

Branch :

  • Show log

    Commit

  • Author : John Plate
    Date : 2021-04-28 18:26:00
    Hash : dfe208f1
    Message : Add loader for CL pass-through back end Bug: angleproject:5904 Change-Id: If4960f3150f6bbc85a30f0f6ac5c9e668e6ff756 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2864022 Commit-Queue: John Plate <jplate@google.com> Reviewed-by: Jamie Madill <jmadill@chromium.org> Reviewed-by: Cody Northrop <cnorthrop@google.com>

  • src/libOpenCL/libOpenCL_ICD.cpp
  • //
    // Copyright 2021 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.
    //
    // libOpenCL_ICD.cpp: Implements the CL entry point required for extension cl_khr_icd.
    
    #include "libOpenCL/dispatch.h"
    
    extern "C" {
    
    void *CL_API_CALL clGetExtensionFunctionAddress(const char *func_name)
    {
        return cl::GetDispatch().clGetExtensionFunctionAddress(func_name);
    }
    
    }  // extern "C"