All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.opencl.APPLEContextLoggingFunctions Maven / Gradle / Ivy

Go to download

An open, royalty-free standard for cross-platform, parallel programming of diverse processors found in personal computers, servers, mobile devices and embedded platforms.

There is a newer version: 3.3.4
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.opencl;

import org.lwjgl.system.*;

import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;

/**
 * Native bindings to the APPLE_ContextLoggingFunctions extension.
 * 
 * 

Provides convenience functions that are intended to be used as the {@code pfn_notify} parameter to {@link CL10#clCreateContext CreateContext}.

* *

Note that if you pass {@code NULL} to the {@link CL10#clCreateContext CreateContext} {@code pfn_notify} parameter, you can also use these by setting the {@code CL_LOG_ERRORS} * environment variable to one of stdout, stderr, or console. Pass your own do-nothing context logging function to disable the {@code CL_LOG_ERRORS} * override.

*/ public class APPLEContextLoggingFunctions { /** Forwards on all log messages to the Apple System Logger. */ public static final long clLogMessagesToSystemLogAPPLE = CL.getICD().clLogMessagesToSystemLogAPPLE; /** Forwards on all log messages to the standard output stream. */ public static final long clLogMessagesToStdoutAPPLE = CL.getICD().clLogMessagesToStdoutAPPLE; /** Forwards on all log messages to the standard error stream. */ public static final long clLogMessagesToStderrAPPLE = CL.getICD().clLogMessagesToStderrAPPLE; protected APPLEContextLoggingFunctions() { throw new UnsupportedOperationException(); } static boolean isAvailable(CLCapabilities caps) { return checkFunctions( caps.clLogMessagesToSystemLogAPPLE, caps.clLogMessagesToStdoutAPPLE, caps.clLogMessagesToStderrAPPLE ); } // --- [ clLogMessagesToSystemLogAPPLE ] --- private static void clLogMessagesToSystemLogAPPLE() { ; } // --- [ clLogMessagesToStdoutAPPLE ] --- private static void clLogMessagesToStdoutAPPLE() { ; } // --- [ clLogMessagesToStderrAPPLE ] --- private static void clLogMessagesToStderrAPPLE() { ; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy