@Properties(inherit=Bullet3OpenCL.class) public class b3OpenCLUtils extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
b3OpenCLUtils()
Default native constructor.
|
b3OpenCLUtils(long size)
Native array allocator.
|
b3OpenCLUtils(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Pointer |
compileCLKernelFromString(Pointer clContext,
Pointer device,
BytePointer kernelSource,
BytePointer kernelName) |
static Pointer |
compileCLKernelFromString(Pointer clContext,
Pointer device,
BytePointer kernelSource,
BytePointer kernelName,
int[] pErrNum,
Pointer prog,
BytePointer additionalMacros) |
static Pointer |
compileCLKernelFromString(Pointer clContext,
Pointer device,
BytePointer kernelSource,
BytePointer kernelName,
IntBuffer pErrNum,
Pointer prog,
BytePointer additionalMacros) |
static Pointer |
compileCLKernelFromString(Pointer clContext,
Pointer device,
BytePointer kernelSource,
BytePointer kernelName,
IntPointer pErrNum,
Pointer prog,
BytePointer additionalMacros) |
static Pointer |
compileCLKernelFromString(Pointer clContext,
Pointer device,
String kernelSource,
String kernelName) |
static Pointer |
compileCLKernelFromString(Pointer clContext,
Pointer device,
String kernelSource,
String kernelName,
int[] pErrNum,
Pointer prog,
String additionalMacros) |
static Pointer |
compileCLKernelFromString(Pointer clContext,
Pointer device,
String kernelSource,
String kernelName,
IntBuffer pErrNum,
Pointer prog,
String additionalMacros) |
static Pointer |
compileCLKernelFromString(Pointer clContext,
Pointer device,
String kernelSource,
String kernelName,
IntPointer pErrNum,
Pointer prog,
String additionalMacros) |
static Pointer |
compileCLProgramFromString(Pointer clContext,
Pointer device,
BytePointer kernelSource) |
static Pointer |
compileCLProgramFromString(Pointer clContext,
Pointer device,
BytePointer kernelSource,
int[] pErrNum,
BytePointer additionalMacros,
BytePointer srcFileNameForCaching,
boolean disableBinaryCaching) |
static Pointer |
compileCLProgramFromString(Pointer clContext,
Pointer device,
BytePointer kernelSource,
IntBuffer pErrNum,
BytePointer additionalMacros,
BytePointer srcFileNameForCaching,
boolean disableBinaryCaching) |
static Pointer |
compileCLProgramFromString(Pointer clContext,
Pointer device,
BytePointer kernelSource,
IntPointer pErrNum,
BytePointer additionalMacros,
BytePointer srcFileNameForCaching,
boolean disableBinaryCaching) |
static Pointer |
compileCLProgramFromString(Pointer clContext,
Pointer device,
String kernelSource) |
static Pointer |
compileCLProgramFromString(Pointer clContext,
Pointer device,
String kernelSource,
int[] pErrNum,
String additionalMacros,
String srcFileNameForCaching,
boolean disableBinaryCaching) |
static Pointer |
compileCLProgramFromString(Pointer clContext,
Pointer device,
String kernelSource,
IntBuffer pErrNum,
String additionalMacros,
String srcFileNameForCaching,
boolean disableBinaryCaching) |
static Pointer |
compileCLProgramFromString(Pointer clContext,
Pointer device,
String kernelSource,
IntPointer pErrNum,
String additionalMacros,
String srcFileNameForCaching,
boolean disableBinaryCaching) |
static Pointer |
createContextFromPlatform(Pointer platform,
long deviceType,
int[] pErrNum) |
static Pointer |
createContextFromPlatform(Pointer platform,
long deviceType,
int[] pErrNum,
Pointer pGLCtx,
Pointer pGLDC,
int preferredDeviceIndex,
int preferredPlatformIndex) |
static Pointer |
createContextFromPlatform(Pointer platform,
long deviceType,
IntBuffer pErrNum) |
static Pointer |
createContextFromPlatform(Pointer platform,
long deviceType,
IntBuffer pErrNum,
Pointer pGLCtx,
Pointer pGLDC,
int preferredDeviceIndex,
int preferredPlatformIndex) |
static Pointer |
createContextFromPlatform(Pointer platform,
long deviceType,
IntPointer pErrNum) |
static Pointer |
createContextFromPlatform(Pointer platform,
long deviceType,
IntPointer pErrNum,
Pointer pGLCtx,
Pointer pGLDC,
int preferredDeviceIndex,
int preferredPlatformIndex) |
static Pointer |
createContextFromType(long deviceType,
int[] pErrNum) |
static Pointer |
createContextFromType(long deviceType,
int[] pErrNum,
Pointer pGLCtx,
Pointer pGLDC,
int preferredDeviceIndex,
int preferredPlatformIndex,
PointerPointer platformId) |
static Pointer |
createContextFromType(long deviceType,
IntBuffer pErrNum) |
static Pointer |
createContextFromType(long deviceType,
IntBuffer pErrNum,
Pointer pGLCtx,
Pointer pGLDC,
int preferredDeviceIndex,
int preferredPlatformIndex,
PointerPointer platformId) |
static Pointer |
createContextFromType(long deviceType,
IntPointer pErrNum) |
static Pointer |
createContextFromType(long deviceType,
IntPointer pErrNum,
Pointer pGLCtx,
Pointer pGLDC,
int preferredDeviceIndex,
int preferredPlatformIndex,
PointerPointer platformId)
CL Context optionally takes a GL context.
|
static Pointer |
getDevice(Pointer cxMainContext,
int nr) |
static void |
getDeviceInfo(Pointer device,
b3OpenCLDeviceInfo info) |
static int |
getNumDevices(Pointer cxMainContext) |
static int |
getNumPlatforms() |
static int |
getNumPlatforms(int[] pErrNum) |
static int |
getNumPlatforms(IntBuffer pErrNum) |
static int |
getNumPlatforms(IntPointer pErrNum) |
static Pointer |
getPlatform(int nr) |
static Pointer |
getPlatform(int nr,
int[] pErrNum) |
static Pointer |
getPlatform(int nr,
IntBuffer pErrNum) |
static Pointer |
getPlatform(int nr,
IntPointer pErrNum)
get the nr'th platform, where nr is in the range [0..getNumPlatforms)
|
static void |
getPlatformInfo(Pointer platform,
b3OpenCLPlatformInfo platformInfo) |
b3OpenCLUtils |
getPointer(long i) |
static BytePointer |
getSdkVendorName() |
b3OpenCLUtils |
position(long position) |
static void |
printDeviceInfo(Pointer device) |
static void |
printPlatformInfo(Pointer platform) |
static void |
setCachePath(BytePointer path) |
static void |
setCachePath(String path) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic b3OpenCLUtils()
public b3OpenCLUtils(long size)
Pointer.position(long).public b3OpenCLUtils(Pointer p)
Pointer(Pointer).public b3OpenCLUtils position(long position)
public b3OpenCLUtils getPointer(long i)
getPointer in class Pointer@Cast(value="cl_context") public static Pointer createContextFromType(@Cast(value="cl_device_type") long deviceType, @Cast(value="cl_int*") IntPointer pErrNum, Pointer pGLCtx, Pointer pGLDC, int preferredDeviceIndex, int preferredPlatformIndex, @Cast(value="cl_platform_id*") PointerPointer platformId)
@Cast(value="cl_context") public static Pointer createContextFromType(@Cast(value="cl_device_type") long deviceType, @Cast(value="cl_int*") IntPointer pErrNum)
@Cast(value="cl_context") public static Pointer createContextFromType(@Cast(value="cl_device_type") long deviceType, @Cast(value="cl_int*") IntBuffer pErrNum, Pointer pGLCtx, Pointer pGLDC, int preferredDeviceIndex, int preferredPlatformIndex, @Cast(value="cl_platform_id*") PointerPointer platformId)
@Cast(value="cl_context") public static Pointer createContextFromType(@Cast(value="cl_device_type") long deviceType, @Cast(value="cl_int*") IntBuffer pErrNum)
@Cast(value="cl_context") public static Pointer createContextFromType(@Cast(value="cl_device_type") long deviceType, @Cast(value="cl_int*") int[] pErrNum, Pointer pGLCtx, Pointer pGLDC, int preferredDeviceIndex, int preferredPlatformIndex, @Cast(value="cl_platform_id*") PointerPointer platformId)
@Cast(value="cl_context") public static Pointer createContextFromType(@Cast(value="cl_device_type") long deviceType, @Cast(value="cl_int*") int[] pErrNum)
@Cast(value="cl_device_id") public static Pointer getDevice(@Cast(value="cl_context") Pointer cxMainContext, int nr)
public static void getDeviceInfo(@Cast(value="cl_device_id") Pointer device, b3OpenCLDeviceInfo info)
@Cast(value="cl_kernel") public static Pointer compileCLKernelFromString(@Cast(value="cl_context") Pointer clContext, @Cast(value="cl_device_id") Pointer device, @Cast(value="const char*") BytePointer kernelSource, @Cast(value="const char*") BytePointer kernelName, @Cast(value="cl_int*") IntPointer pErrNum, @Cast(value="cl_program") Pointer prog, @Cast(value="const char*") BytePointer additionalMacros)
@Cast(value="cl_kernel") public static Pointer compileCLKernelFromString(@Cast(value="cl_context") Pointer clContext, @Cast(value="cl_device_id") Pointer device, @Cast(value="const char*") BytePointer kernelSource, @Cast(value="const char*") BytePointer kernelName)
@Cast(value="cl_kernel") public static Pointer compileCLKernelFromString(@Cast(value="cl_context") Pointer clContext, @Cast(value="cl_device_id") Pointer device, String kernelSource, String kernelName, @Cast(value="cl_int*") IntBuffer pErrNum, @Cast(value="cl_program") Pointer prog, String additionalMacros)
@Cast(value="cl_kernel") public static Pointer compileCLKernelFromString(@Cast(value="cl_context") Pointer clContext, @Cast(value="cl_device_id") Pointer device, String kernelSource, String kernelName)
@Cast(value="cl_kernel") public static Pointer compileCLKernelFromString(@Cast(value="cl_context") Pointer clContext, @Cast(value="cl_device_id") Pointer device, @Cast(value="const char*") BytePointer kernelSource, @Cast(value="const char*") BytePointer kernelName, @Cast(value="cl_int*") int[] pErrNum, @Cast(value="cl_program") Pointer prog, @Cast(value="const char*") BytePointer additionalMacros)
@Cast(value="cl_kernel") public static Pointer compileCLKernelFromString(@Cast(value="cl_context") Pointer clContext, @Cast(value="cl_device_id") Pointer device, String kernelSource, String kernelName, @Cast(value="cl_int*") IntPointer pErrNum, @Cast(value="cl_program") Pointer prog, String additionalMacros)
@Cast(value="cl_kernel") public static Pointer compileCLKernelFromString(@Cast(value="cl_context") Pointer clContext, @Cast(value="cl_device_id") Pointer device, @Cast(value="const char*") BytePointer kernelSource, @Cast(value="const char*") BytePointer kernelName, @Cast(value="cl_int*") IntBuffer pErrNum, @Cast(value="cl_program") Pointer prog, @Cast(value="const char*") BytePointer additionalMacros)
@Cast(value="cl_kernel") public static Pointer compileCLKernelFromString(@Cast(value="cl_context") Pointer clContext, @Cast(value="cl_device_id") Pointer device, String kernelSource, String kernelName, @Cast(value="cl_int*") int[] pErrNum, @Cast(value="cl_program") Pointer prog, String additionalMacros)
@Cast(value="cl_program") public static Pointer compileCLProgramFromString(@Cast(value="cl_context") Pointer clContext, @Cast(value="cl_device_id") Pointer device, @Cast(value="const char*") BytePointer kernelSource, @Cast(value="cl_int*") IntPointer pErrNum, @Cast(value="const char*") BytePointer additionalMacros, @Cast(value="const char*") BytePointer srcFileNameForCaching, @Cast(value="bool") boolean disableBinaryCaching)
@Cast(value="cl_program") public static Pointer compileCLProgramFromString(@Cast(value="cl_context") Pointer clContext, @Cast(value="cl_device_id") Pointer device, @Cast(value="const char*") BytePointer kernelSource)
@Cast(value="cl_program") public static Pointer compileCLProgramFromString(@Cast(value="cl_context") Pointer clContext, @Cast(value="cl_device_id") Pointer device, String kernelSource, @Cast(value="cl_int*") IntBuffer pErrNum, String additionalMacros, String srcFileNameForCaching, @Cast(value="bool") boolean disableBinaryCaching)
@Cast(value="cl_program") public static Pointer compileCLProgramFromString(@Cast(value="cl_context") Pointer clContext, @Cast(value="cl_device_id") Pointer device, String kernelSource)
@Cast(value="cl_program") public static Pointer compileCLProgramFromString(@Cast(value="cl_context") Pointer clContext, @Cast(value="cl_device_id") Pointer device, @Cast(value="const char*") BytePointer kernelSource, @Cast(value="cl_int*") int[] pErrNum, @Cast(value="const char*") BytePointer additionalMacros, @Cast(value="const char*") BytePointer srcFileNameForCaching, @Cast(value="bool") boolean disableBinaryCaching)
@Cast(value="cl_program") public static Pointer compileCLProgramFromString(@Cast(value="cl_context") Pointer clContext, @Cast(value="cl_device_id") Pointer device, String kernelSource, @Cast(value="cl_int*") IntPointer pErrNum, String additionalMacros, String srcFileNameForCaching, @Cast(value="bool") boolean disableBinaryCaching)
@Cast(value="cl_program") public static Pointer compileCLProgramFromString(@Cast(value="cl_context") Pointer clContext, @Cast(value="cl_device_id") Pointer device, @Cast(value="const char*") BytePointer kernelSource, @Cast(value="cl_int*") IntBuffer pErrNum, @Cast(value="const char*") BytePointer additionalMacros, @Cast(value="const char*") BytePointer srcFileNameForCaching, @Cast(value="bool") boolean disableBinaryCaching)
@Cast(value="cl_program") public static Pointer compileCLProgramFromString(@Cast(value="cl_context") Pointer clContext, @Cast(value="cl_device_id") Pointer device, String kernelSource, @Cast(value="cl_int*") int[] pErrNum, String additionalMacros, String srcFileNameForCaching, @Cast(value="bool") boolean disableBinaryCaching)
public static int getNumPlatforms(@Cast(value="cl_int*") IntPointer pErrNum)
public static int getNumPlatforms()
@Cast(value="cl_platform_id") public static Pointer getPlatform(int nr, @Cast(value="cl_int*") IntPointer pErrNum)
@Cast(value="cl_platform_id") public static Pointer getPlatform(int nr, @Cast(value="cl_int*") IntBuffer pErrNum)
@Cast(value="cl_platform_id") public static Pointer getPlatform(int nr, @Cast(value="cl_int*") int[] pErrNum)
public static void getPlatformInfo(@Cast(value="cl_platform_id") Pointer platform, b3OpenCLPlatformInfo platformInfo)
public static void printPlatformInfo(@Cast(value="cl_platform_id") Pointer platform)
@Cast(value="const char*") public static BytePointer getSdkVendorName()
@Cast(value="cl_context") public static Pointer createContextFromPlatform(@Cast(value="cl_platform_id") Pointer platform, @Cast(value="cl_device_type") long deviceType, @Cast(value="cl_int*") IntPointer pErrNum, Pointer pGLCtx, Pointer pGLDC, int preferredDeviceIndex, int preferredPlatformIndex)
@Cast(value="cl_context") public static Pointer createContextFromPlatform(@Cast(value="cl_platform_id") Pointer platform, @Cast(value="cl_device_type") long deviceType, @Cast(value="cl_int*") IntPointer pErrNum)
@Cast(value="cl_context") public static Pointer createContextFromPlatform(@Cast(value="cl_platform_id") Pointer platform, @Cast(value="cl_device_type") long deviceType, @Cast(value="cl_int*") IntBuffer pErrNum, Pointer pGLCtx, Pointer pGLDC, int preferredDeviceIndex, int preferredPlatformIndex)
@Cast(value="cl_context") public static Pointer createContextFromPlatform(@Cast(value="cl_platform_id") Pointer platform, @Cast(value="cl_device_type") long deviceType, @Cast(value="cl_int*") IntBuffer pErrNum)
@Cast(value="cl_context") public static Pointer createContextFromPlatform(@Cast(value="cl_platform_id") Pointer platform, @Cast(value="cl_device_type") long deviceType, @Cast(value="cl_int*") int[] pErrNum, Pointer pGLCtx, Pointer pGLDC, int preferredDeviceIndex, int preferredPlatformIndex)
@Cast(value="cl_context") public static Pointer createContextFromPlatform(@Cast(value="cl_platform_id") Pointer platform, @Cast(value="cl_device_type") long deviceType, @Cast(value="cl_int*") int[] pErrNum)
public static void setCachePath(@Cast(value="const char*") BytePointer path)
public static void setCachePath(String path)
Copyright © 2024. All rights reserved.