public abstract class OpenCLUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static com.jogamp.opencl.CLProgram |
appendBuffer |
static com.jogamp.opencl.CLProgram |
program |
static com.jogamp.opencl.CLProgram |
render |
static com.jogamp.opencl.CLProgram |
simpleObjects |
static com.jogamp.opencl.CLProgram |
yxdraw |
Constructor and Description |
---|
OpenCLUtil() |
Modifier and Type | Method and Description |
---|---|
static com.jogamp.opencl.CLContext |
createContext()
Creates the CLContext for the device that is preconfigured in CONRAD.
|
static com.jogamp.opencl.CLProgram |
getAppendBufferRenderInstance() |
static OpenCLEvaluatable |
getOpenCLEvaluatableSubclass(AbstractShape s,
com.jogamp.opencl.CLDevice device) |
static com.jogamp.opencl.CLProgram |
getProgramInstance() |
static com.jogamp.opencl.CLProgram |
getRenderInstance() |
static com.jogamp.opencl.CLProgram |
getYXDrawInstance() |
static int |
iDivUp(int a,
int b)
Integral division, rounding the result to the next highest integer.
|
static long |
iDivUp(long a,
long b)
Integral division, rounding the result to the next highest integer.
|
static void |
initAppendBufferRender(com.jogamp.opencl.CLContext context) |
static void |
initProgram(com.jogamp.opencl.CLContext context) |
static void |
initRender(com.jogamp.opencl.CLContext context) |
static void |
initSimpleObjectEvaluator(com.jogamp.opencl.CLContext context) |
static void |
initTriangleAppendBufferRender(com.jogamp.opencl.CLContext context) |
static void |
initYXDraw(com.jogamp.opencl.CLContext context) |
static int |
roundUp(int groupSize,
int globalSize)
rounded up to the nearest multiple of the groupSize
|
public static com.jogamp.opencl.CLProgram program
public static com.jogamp.opencl.CLProgram render
public static com.jogamp.opencl.CLProgram simpleObjects
public static com.jogamp.opencl.CLProgram yxdraw
public static com.jogamp.opencl.CLProgram appendBuffer
public static com.jogamp.opencl.CLContext createContext()
RegKeys.OPENCL_DEVICE_SELECTION
public static void initYXDraw(com.jogamp.opencl.CLContext context)
public static com.jogamp.opencl.CLProgram getYXDrawInstance()
public static OpenCLEvaluatable getOpenCLEvaluatableSubclass(AbstractShape s, com.jogamp.opencl.CLDevice device)
public static void initRender(com.jogamp.opencl.CLContext context)
public static void initSimpleObjectEvaluator(com.jogamp.opencl.CLContext context)
public static com.jogamp.opencl.CLProgram getRenderInstance()
public static void initAppendBufferRender(com.jogamp.opencl.CLContext context)
public static void initTriangleAppendBufferRender(com.jogamp.opencl.CLContext context)
public static com.jogamp.opencl.CLProgram getAppendBufferRenderInstance()
public static void initProgram(com.jogamp.opencl.CLContext context)
public static com.jogamp.opencl.CLProgram getProgramInstance()
public static int roundUp(int groupSize, int globalSize)
groupSize
- globalSize
- public static long iDivUp(long a, long b)
a
- Dividendb
- Divisorpublic static int iDivUp(int a, int b)
a
- Dividendb
- Divisor