Top Description Inners Fields Constructors Methods
org.lwjgl.opencl

pack-priv final Class InfoUtilFactory

extends Object
Class Inheritance
Imports
org.lwjgl.*, org.lwjgl.opencl.api.CLBufferRegion, .CLImageFormat, .Filter, org.lwjgl.opengl.Drawable, java.nio.Buffer, .ByteBuffer, .IntBuffer, java.util.ArrayList, .List

This class contains concrete InfoUtil implementations for our CLObject class. The public CLObject classes are grabbing these via reflection, so that they can be compiled for the generator.
Author
Spasi

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class
private static class
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
pack-priv static final InfoUtil<CLCommandQueue>
pack-priv static final CLContext.CLContextUtil
pack-priv static final InfoUtil<CLDevice>
pack-priv static final CLEvent.CLEventUtil
pack-priv static final CLKernel.CLKernelUtil
pack-priv static final CLMem.CLMemUtil
pack-priv static final CLPlatform.CLPlatformUtil
pack-priv static final CLProgram.CLProgramUtil
pack-priv static final InfoUtil<CLSampler>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CL_COMMAND_QUEUE_UTILback to summary
pack-priv static final InfoUtil<CLCommandQueue> CL_COMMAND_QUEUE_UTIL
CL_CONTEXT_UTILback to summary
pack-priv static final CLContext.CLContextUtil CL_CONTEXT_UTIL
CL_DEVICE_UTILback to summary
pack-priv static final InfoUtil<CLDevice> CL_DEVICE_UTIL
CL_EVENT_UTILback to summary
pack-priv static final CLEvent.CLEventUtil CL_EVENT_UTIL
CL_KERNEL_UTILback to summary
pack-priv static final CLKernel.CLKernelUtil CL_KERNEL_UTIL
CL_MEM_UTILback to summary
pack-priv static final CLMem.CLMemUtil CL_MEM_UTIL
CL_PLATFORM_UTILback to summary
pack-priv static final CLPlatform.CLPlatformUtil CL_PLATFORM_UTIL
CL_PROGRAM_UTILback to summary
pack-priv static final CLProgram.CLProgramUtil CL_PROGRAM_UTIL
CL_SAMPLER_UTILback to summary
pack-priv static final InfoUtil<CLSampler> CL_SAMPLER_UTIL

Constructor Detail

InfoUtilFactoryback to summary
private InfoUtilFactory()
org.lwjgl.opencl back to summary

private final Class InfoUtilFactory.CLContextUtil

extends InfoUtilAbstract<CLContext>
implements CLContextUtil
Class Inheritance
All Implemented Interfaces
org.lwjgl.opencl.CLContext.CLContextUtil, org.lwjgl.opencl.InfoUtil

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public CLContext
create(final CLPlatform platform, final List<CLDevice> devices, final CLContextCallback pfn_notify, final Drawable share_drawable, IntBuffer errcode_ret)

Implements org.lwjgl.opencl.CLContext.CLContextUtil.create.

Custom clCreateContext implementation (reuses APIUtil.getBufferPointer)
public CLContext
createFromType(final CLPlatform platform, final long device_type, final CLContextCallback pfn_notify, final Drawable share_drawable, final IntBuffer errcode_ret)

Implements org.lwjgl.opencl.CLContext.CLContextUtil.createFromType.

protected int
getInfo(final CLContext context, final int param_name, final ByteBuffer param_value, final PointerBuffer param_value_size_ret)

Implements abstract org.lwjgl.opencl.InfoUtilAbstract.getInfo.

public List<CLDevice>
public List<CLImageFormat>
getSupportedImageFormats(final CLContext context, final long flags, final int image_type, final Filter<CLImageFormat> filter)

Implements org.lwjgl.opencl.CLContext.CLContextUtil.getSupportedImageFormats.

Inherited from org.lwjgl.opencl.InfoUtilAbstract:
getInfoIntgetInfoLonggetInfoSizegetInfoSizeArraygetInfoSizeArraySizegetInfoStringgetSizeRetgetSizesBuffer

Constructor Detail

CLContextUtilback to summary
private CLContextUtil()

Method Detail

createback to summary
public CLContext create(final CLPlatform platform, final List<CLDevice> devices, final CLContextCallback pfn_notify, final Drawable share_drawable, IntBuffer errcode_ret) throws LWJGLException

Implements org.lwjgl.opencl.CLContext.CLContextUtil.create.

Custom clCreateContext implementation (reuses APIUtil.getBufferPointer)

createFromTypeback to summary
public CLContext createFromType(final CLPlatform platform, final long device_type, final CLContextCallback pfn_notify, final Drawable share_drawable, final IntBuffer errcode_ret) throws LWJGLException

Implements org.lwjgl.opencl.CLContext.CLContextUtil.createFromType.

getInfoback to summary
protected int getInfo(final CLContext context, final int param_name, final ByteBuffer param_value, final PointerBuffer param_value_size_ret)

Implements abstract org.lwjgl.opencl.InfoUtilAbstract.getInfo.

getInfoDevicesback to summary
public List<CLDevice> getInfoDevices(final CLContext context)

Implements org.lwjgl.opencl.CLContext.CLContextUtil.getInfoDevices.

getSupportedImageFormatsback to summary
public List<CLImageFormat> getSupportedImageFormats(final CLContext context, final long flags, final int image_type, final Filter<CLImageFormat> filter)

Implements org.lwjgl.opencl.CLContext.CLContextUtil.getSupportedImageFormats.

org.lwjgl.opencl back to summary

private final Class InfoUtilFactory.CLDeviceUtil

extends InfoUtilAbstract<CLDevice>
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
protected int
getInfo(final CLDevice device, final int param_name, final ByteBuffer param_value, final PointerBuffer param_value_size_ret)

Implements abstract org.lwjgl.opencl.InfoUtilAbstract.getInfo.

protected int
Inherited from org.lwjgl.opencl.InfoUtilAbstract:
getInfoIntgetInfoLonggetInfoSizegetInfoSizeArraygetInfoStringgetSizeRetgetSizesBuffer

Constructor Detail

CLDeviceUtilback to summary
private CLDeviceUtil()

Method Detail

getInfoback to summary
protected int getInfo(final CLDevice device, final int param_name, final ByteBuffer param_value, final PointerBuffer param_value_size_ret)

Implements abstract org.lwjgl.opencl.InfoUtilAbstract.getInfo.

getInfoSizeArraySizeback to summary
protected int getInfoSizeArraySize(final CLDevice device, final int param_name)

Overrides org.lwjgl.opencl.InfoUtilAbstract.getInfoSizeArraySize.

org.lwjgl.opencl back to summary

private final Class InfoUtilFactory.CLEventUtil

extends InfoUtilAbstract<CLEvent>
implements CLEventUtil
Class Inheritance
All Implemented Interfaces
org.lwjgl.opencl.CLEvent.CLEventUtil, org.lwjgl.opencl.InfoUtil

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
protected int
getInfo(final CLEvent event, final int param_name, final ByteBuffer param_value, final PointerBuffer param_value_size_ret)

Implements abstract org.lwjgl.opencl.InfoUtilAbstract.getInfo.

public long
Inherited from org.lwjgl.opencl.InfoUtilAbstract:
getInfoIntgetInfoLonggetInfoSizegetInfoSizeArraygetInfoSizeArraySizegetInfoStringgetSizeRetgetSizesBuffer

Constructor Detail

CLEventUtilback to summary
private CLEventUtil()

Method Detail

getInfoback to summary
protected int getInfo(final CLEvent event, final int param_name, final ByteBuffer param_value, final PointerBuffer param_value_size_ret)

Implements abstract org.lwjgl.opencl.InfoUtilAbstract.getInfo.

getProfilingInfoLongback to summary
public long getProfilingInfoLong(final CLEvent event, final int param_name)

Implements org.lwjgl.opencl.CLEvent.CLEventUtil.getProfilingInfoLong.

org.lwjgl.opencl back to summary

private final Class InfoUtilFactory.CLKernelUtil

extends InfoUtilAbstract<CLKernel>
implements CLKernelUtil
Class Inheritance
All Implemented Interfaces
org.lwjgl.opencl.CLKernel.CLKernelUtil, org.lwjgl.opencl.InfoUtil

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
protected int
getInfo(final CLKernel kernel, final int param_name, final ByteBuffer param_value, final PointerBuffer param_value_size_ret)

Implements abstract org.lwjgl.opencl.InfoUtilAbstract.getInfo.

public long
getWorkGroupInfoLong(final CLKernel kernel, final CLDevice device, final int param_name)

Implements org.lwjgl.opencl.CLKernel.CLKernelUtil.getWorkGroupInfoLong.

public long
getWorkGroupInfoSize(final CLKernel kernel, final CLDevice device, final int param_name)

Implements org.lwjgl.opencl.CLKernel.CLKernelUtil.getWorkGroupInfoSize.

public long[]
public void
setArg(final CLKernel kernel, final int index, final byte value)

Implements org.lwjgl.opencl.CLKernel.CLKernelUtil.setArg.

public void
setArg(final CLKernel kernel, final int index, final short value)

Implements org.lwjgl.opencl.CLKernel.CLKernelUtil.setArg.

public void
setArg(final CLKernel kernel, final int index, final int value)

Implements org.lwjgl.opencl.CLKernel.CLKernelUtil.setArg.

public void
setArg(final CLKernel kernel, final int index, final long value)

Implements org.lwjgl.opencl.CLKernel.CLKernelUtil.setArg.

public void
setArg(final CLKernel kernel, final int index, final float value)

Implements org.lwjgl.opencl.CLKernel.CLKernelUtil.setArg.

public void
setArg(final CLKernel kernel, final int index, final double value)

Implements org.lwjgl.opencl.CLKernel.CLKernelUtil.setArg.

public void
setArg(final CLKernel kernel, final int index, final CLObject value)

Implements org.lwjgl.opencl.CLKernel.CLKernelUtil.setArg.

public void
setArgSize(final CLKernel kernel, final int index, final long size)

Implements org.lwjgl.opencl.CLKernel.CLKernelUtil.setArgSize.

Inherited from org.lwjgl.opencl.InfoUtilAbstract:
getInfoIntgetInfoLonggetInfoSizegetInfoSizeArraygetInfoSizeArraySizegetInfoStringgetSizeRetgetSizesBuffer

Constructor Detail

CLKernelUtilback to summary
private CLKernelUtil()

Method Detail

getInfoback to summary
protected int getInfo(final CLKernel kernel, final int param_name, final ByteBuffer param_value, final PointerBuffer param_value_size_ret)

Implements abstract org.lwjgl.opencl.InfoUtilAbstract.getInfo.

getWorkGroupInfoLongback to summary
public long getWorkGroupInfoLong(final CLKernel kernel, final CLDevice device, final int param_name)

Implements org.lwjgl.opencl.CLKernel.CLKernelUtil.getWorkGroupInfoLong.

getWorkGroupInfoSizeback to summary
public long getWorkGroupInfoSize(final CLKernel kernel, final CLDevice device, final int param_name)

Implements org.lwjgl.opencl.CLKernel.CLKernelUtil.getWorkGroupInfoSize.

getWorkGroupInfoSizeArrayback to summary
public long[] getWorkGroupInfoSizeArray(final CLKernel kernel, final CLDevice device, final int param_name)

Implements org.lwjgl.opencl.CLKernel.CLKernelUtil.getWorkGroupInfoSizeArray.

setArgback to summary
public void setArg(final CLKernel kernel, final int index, final byte value)

Implements org.lwjgl.opencl.CLKernel.CLKernelUtil.setArg.

setArgback to summary
public void setArg(final CLKernel kernel, final int index, final short value)

Implements org.lwjgl.opencl.CLKernel.CLKernelUtil.setArg.

setArgback to summary
public void setArg(final CLKernel kernel, final int index, final int value)

Implements org.lwjgl.opencl.CLKernel.CLKernelUtil.setArg.

setArgback to summary
public void setArg(final CLKernel kernel, final int index, final long value)

Implements org.lwjgl.opencl.CLKernel.CLKernelUtil.setArg.

setArgback to summary
public void setArg(final CLKernel kernel, final int index, final float value)

Implements org.lwjgl.opencl.CLKernel.CLKernelUtil.setArg.

setArgback to summary
public void setArg(final CLKernel kernel, final int index, final double value)

Implements org.lwjgl.opencl.CLKernel.CLKernelUtil.setArg.

setArgback to summary
public void setArg(final CLKernel kernel, final int index, final CLObject value)

Implements org.lwjgl.opencl.CLKernel.CLKernelUtil.setArg.

setArgSizeback to summary
public void setArgSize(final CLKernel kernel, final int index, final long size)

Implements org.lwjgl.opencl.CLKernel.CLKernelUtil.setArgSize.

org.lwjgl.opencl back to summary

private final Class InfoUtilFactory.CLMemUtil

extends InfoUtilAbstract<CLMem>
implements CLMemUtil
Class Inheritance
All Implemented Interfaces
org.lwjgl.opencl.CLMem.CLMemUtil, org.lwjgl.opencl.InfoUtil

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public CLMem
createImage2D(final CLContext context, final long flags, final CLImageFormat image_format, final long image_width, final long image_height, final long image_row_pitch, final Buffer host_ptr, IntBuffer errcode_ret)

Implements org.lwjgl.opencl.CLMem.CLMemUtil.createImage2D.

public CLMem
createImage3D(final CLContext context, final long flags, final CLImageFormat image_format, final long image_width, final long image_height, final long image_depth, final long image_row_pitch, final long image_slice_pitch, final Buffer host_ptr, IntBuffer errcode_ret)

Implements org.lwjgl.opencl.CLMem.CLMemUtil.createImage3D.

public CLMem
createSubBuffer(final CLMem mem, final long flags, final int buffer_create_type, final CLBufferRegion buffer_create_info, final IntBuffer errcode_ret)

Implements org.lwjgl.opencl.CLMem.CLMemUtil.createSubBuffer.

public int
public int
public int
public CLImageFormat
public int
public long
getImageInfoSize(final CLMem mem, final int param_name)

Implements org.lwjgl.opencl.CLMem.CLMemUtil.getImageInfoSize.

protected int
getInfo(final CLMem mem, final int param_name, final ByteBuffer param_value, final PointerBuffer param_value_size_ret)

Implements abstract org.lwjgl.opencl.InfoUtilAbstract.getInfo.

public ByteBuffer
Inherited from org.lwjgl.opencl.InfoUtilAbstract:
getInfoIntgetInfoLonggetInfoSizegetInfoSizeArraygetInfoSizeArraySizegetInfoStringgetSizeRetgetSizesBuffer

Constructor Detail

CLMemUtilback to summary
private CLMemUtil()

Method Detail

createImage2Dback to summary
public CLMem createImage2D(final CLContext context, final long flags, final CLImageFormat image_format, final long image_width, final long image_height, final long image_row_pitch, final Buffer host_ptr, IntBuffer errcode_ret)

Implements org.lwjgl.opencl.CLMem.CLMemUtil.createImage2D.

createImage3Dback to summary
public CLMem createImage3D(final CLContext context, final long flags, final CLImageFormat image_format, final long image_width, final long image_height, final long image_depth, final long image_row_pitch, final long image_slice_pitch, final Buffer host_ptr, IntBuffer errcode_ret)

Implements org.lwjgl.opencl.CLMem.CLMemUtil.createImage3D.

createSubBufferback to summary
public CLMem createSubBuffer(final CLMem mem, final long flags, final int buffer_create_type, final CLBufferRegion buffer_create_info, final IntBuffer errcode_ret)

Implements org.lwjgl.opencl.CLMem.CLMemUtil.createSubBuffer.

getGLObjectNameback to summary
public int getGLObjectName(final CLMem mem)

Implements org.lwjgl.opencl.CLMem.CLMemUtil.getGLObjectName.

getGLObjectTypeback to summary
public int getGLObjectType(final CLMem mem)

Implements org.lwjgl.opencl.CLMem.CLMemUtil.getGLObjectType.

getGLTextureInfoIntback to summary
public int getGLTextureInfoInt(final CLMem mem, final int param_name)

Implements org.lwjgl.opencl.CLMem.CLMemUtil.getGLTextureInfoInt.

getImageInfoFormatback to summary
public CLImageFormat getImageInfoFormat(final CLMem mem)

Implements org.lwjgl.opencl.CLMem.CLMemUtil.getImageInfoFormat.

getImageInfoFormatback to summary
public int getImageInfoFormat(final CLMem mem, final int index)

Implements org.lwjgl.opencl.CLMem.CLMemUtil.getImageInfoFormat.

getImageInfoSizeback to summary
public long getImageInfoSize(final CLMem mem, final int param_name)

Implements org.lwjgl.opencl.CLMem.CLMemUtil.getImageInfoSize.

getInfoback to summary
protected int getInfo(final CLMem mem, final int param_name, final ByteBuffer param_value, final PointerBuffer param_value_size_ret)

Implements abstract org.lwjgl.opencl.InfoUtilAbstract.getInfo.

getInfoHostBufferback to summary
public ByteBuffer getInfoHostBuffer(final CLMem mem)

Implements org.lwjgl.opencl.CLMem.CLMemUtil.getInfoHostBuffer.

org.lwjgl.opencl back to summary

private final Class InfoUtilFactory.CLPlatformUtil

extends InfoUtilAbstract<CLPlatform>
implements CLPlatformUtil
Class Inheritance
All Implemented Interfaces
org.lwjgl.opencl.CLPlatform.CLPlatformUtil, org.lwjgl.opencl.InfoUtil

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public List<CLDevice>
getDevices(final CLPlatform platform, final int device_type, final Filter<CLDevice> filter)

Implements org.lwjgl.opencl.CLPlatform.CLPlatformUtil.getDevices.

protected int
getInfo(final CLPlatform platform, final int param_name, final ByteBuffer param_value, final PointerBuffer param_value_size_ret)

Implements abstract org.lwjgl.opencl.InfoUtilAbstract.getInfo.

public List<CLPlatform>
Inherited from org.lwjgl.opencl.InfoUtilAbstract:
getInfoIntgetInfoLonggetInfoSizegetInfoSizeArraygetInfoSizeArraySizegetInfoStringgetSizeRetgetSizesBuffer

Constructor Detail

CLPlatformUtilback to summary
private CLPlatformUtil()

Method Detail

getDevicesback to summary
public List<CLDevice> getDevices(final CLPlatform platform, final int device_type, final Filter<CLDevice> filter)

Implements org.lwjgl.opencl.CLPlatform.CLPlatformUtil.getDevices.

getInfoback to summary
protected int getInfo(final CLPlatform platform, final int param_name, final ByteBuffer param_value, final PointerBuffer param_value_size_ret)

Implements abstract org.lwjgl.opencl.InfoUtilAbstract.getInfo.

getPlatformsback to summary
public List<CLPlatform> getPlatforms(final Filter<CLPlatform> filter)

Implements org.lwjgl.opencl.CLPlatform.CLPlatformUtil.getPlatforms.

org.lwjgl.opencl back to summary

private final Class InfoUtilFactory.CLProgramUtil

extends InfoUtilAbstract<CLProgram>
implements CLProgramUtil
Class Inheritance
All Implemented Interfaces
org.lwjgl.opencl.CLProgram.CLProgramUtil, org.lwjgl.opencl.InfoUtil

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public CLKernel[]
public int
getBuildInfoInt(final CLProgram program, final CLDevice device, final int param_name)

Implements org.lwjgl.opencl.CLProgram.CLProgramUtil.getBuildInfoInt.

public String
getBuildInfoString(final CLProgram program, final CLDevice device, final int param_name)

Implements org.lwjgl.opencl.CLProgram.CLProgramUtil.getBuildInfoString.

private static int
getBuildSizeRet(final CLProgram program, final CLDevice device, final int param_name)

protected int
getInfo(final CLProgram program, final int param_name, final ByteBuffer param_value, final PointerBuffer param_value_size_ret)

Implements abstract org.lwjgl.opencl.InfoUtilAbstract.getInfo.

public ByteBuffer
public ByteBuffer[]
public CLDevice[]
protected int
Inherited from org.lwjgl.opencl.InfoUtilAbstract:
getInfoIntgetInfoLonggetInfoSizegetInfoSizeArraygetInfoStringgetSizeRetgetSizesBuffer

Constructor Detail

CLProgramUtilback to summary
private CLProgramUtil()

Method Detail

createKernelsInProgramback to summary
public CLKernel[] createKernelsInProgram(final CLProgram program)

Implements org.lwjgl.opencl.CLProgram.CLProgramUtil.createKernelsInProgram.

getBuildInfoIntback to summary
public int getBuildInfoInt(final CLProgram program, final CLDevice device, final int param_name)

Implements org.lwjgl.opencl.CLProgram.CLProgramUtil.getBuildInfoInt.

getBuildInfoStringback to summary
public String getBuildInfoString(final CLProgram program, final CLDevice device, final int param_name)

Implements org.lwjgl.opencl.CLProgram.CLProgramUtil.getBuildInfoString.

getBuildSizeRetback to summary
private static int getBuildSizeRet(final CLProgram program, final CLDevice device, final int param_name)
getInfoback to summary
protected int getInfo(final CLProgram program, final int param_name, final ByteBuffer param_value, final PointerBuffer param_value_size_ret)

Implements abstract org.lwjgl.opencl.InfoUtilAbstract.getInfo.

getInfoBinariesback to summary
public ByteBuffer getInfoBinaries(final CLProgram program, ByteBuffer target)

Implements org.lwjgl.opencl.CLProgram.CLProgramUtil.getInfoBinaries.

getInfoBinariesback to summary
public ByteBuffer[] getInfoBinaries(final CLProgram program, ByteBuffer[] target)

Implements org.lwjgl.opencl.CLProgram.CLProgramUtil.getInfoBinaries.

getInfoDevicesback to summary
public CLDevice[] getInfoDevices(final CLProgram program)

Implements org.lwjgl.opencl.CLProgram.CLProgramUtil.getInfoDevices.

getInfoSizeArraySizeback to summary
protected int getInfoSizeArraySize(final CLProgram program, final int param_name)

Overrides org.lwjgl.opencl.InfoUtilAbstract.getInfoSizeArraySize.