Package org.lwjgl.opencl
Class APPLEContextLoggingFunctions
- java.lang.Object
-
- org.lwjgl.opencl.APPLEContextLoggingFunctions
-
public class APPLEContextLoggingFunctions extends java.lang.Object
Native bindings to the APPLE_ContextLoggingFunctions extension.Provides convenience functions that are intended to be used as the
pfn_notify
parameter toCreateContext
.Note that if you pass
NULL
to theCreateContext
pfn_notify
parameter, you can also use these by setting theCL_LOG_ERRORS
environment variable to one of stdout, stderr, or console. Pass your own do-nothing context logging function to disable theCL_LOG_ERRORS
override.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static void
clLogMessagesToStderrAPPLE(java.nio.ByteBuffer errstr, java.nio.ByteBuffer private_info, long cb, java.nio.ByteBuffer user_data)
Forwards on all log messages to the standard error stream.static void
clLogMessagesToStdoutAPPLE(java.nio.ByteBuffer errstr, java.nio.ByteBuffer private_info, long cb, java.nio.ByteBuffer user_data)
Forwards on all log messages to the standard output stream.static void
clLogMessagesToSystemLogAPPLE(java.nio.ByteBuffer errstr, java.nio.ByteBuffer private_info, long cb, java.nio.ByteBuffer user_data)
Forwards on all log messages to the Apple System Logger.
-
-
-
Method Detail
-
clLogMessagesToSystemLogAPPLE
public static void clLogMessagesToSystemLogAPPLE(java.nio.ByteBuffer errstr, java.nio.ByteBuffer private_info, long cb, java.nio.ByteBuffer user_data)
Forwards on all log messages to the Apple System Logger.- Parameters:
errstr
-private_info
-cb
-user_data
-
-
clLogMessagesToStdoutAPPLE
public static void clLogMessagesToStdoutAPPLE(java.nio.ByteBuffer errstr, java.nio.ByteBuffer private_info, long cb, java.nio.ByteBuffer user_data)
Forwards on all log messages to the standard output stream.- Parameters:
errstr
-private_info
-cb
-user_data
-
-
clLogMessagesToStderrAPPLE
public static void clLogMessagesToStderrAPPLE(java.nio.ByteBuffer errstr, java.nio.ByteBuffer private_info, long cb, java.nio.ByteBuffer user_data)
Forwards on all log messages to the standard error stream.- Parameters:
errstr
-private_info
-cb
-user_data
-
-
-