summaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
Diffstat (limited to 'resources')
-rw-r--r--resources/cl-impl.cfg11
-rw-r--r--resources/clImplCustomCode.java8
2 files changed, 15 insertions, 4 deletions
diff --git a/resources/cl-impl.cfg b/resources/cl-impl.cfg
index 93dab2ba..a404398f 100644
--- a/resources/cl-impl.cfg
+++ b/resources/cl-impl.cfg
@@ -18,7 +18,18 @@ EmitProcAddressTable true
ProcAddressTableClassName CLProcAddressTable
GetProcAddressTableExpr addressTable
ProcAddressNameExpr $UpperCase(arg)
+
+#dynamic binding for OpenGL specific functions
ForceProcAddressGen clGetGLContextInfoKHR
+ForceProcAddressGen clCreateFromGLBuffer
+ForceProcAddressGen clCreateFromGLRenderbuffer
+ForceProcAddressGen clCreateFromGLTexture2D
+ForceProcAddressGen clCreateFromGLTexture3D
+ForceProcAddressGen clEnqueueAcquireGLObjects
+ForceProcAddressGen clEnqueueReleaseGLObjects
+ForceProcAddressGen clGetGLObjectInfo
+ForceProcAddressGen clGetGLTextureInfo
+ForceProcAddressGen clIcdGetPlatformIDsKHR
Unignore clGetExtensionFunctionAddress
#AccessControl clGetExtensionFunctionAddress PACKAGE_PRIVATE
diff --git a/resources/clImplCustomCode.java b/resources/clImplCustomCode.java
index 3048a6ad..fab3a724 100644
--- a/resources/clImplCustomCode.java
+++ b/resources/clImplCustomCode.java
@@ -1,9 +1,9 @@
- final static CLProcAddressTable addressTable = new CLProcAddressTable();
+ private final CLProcAddressTable addressTable;
-// static{
-// ProcAddressHelper.resetProcAddressTable(addressTable, );
-// }
+ public CLImpl(CLProcAddressTable addressTable) {
+ this.addressTable = addressTable;
+ }
public long clCreateContext(PointerBuffer properties, PointerBuffer devices, CreateContextCallback pfn_notify, Object userData, IntBuffer errcode_ret) {