Package com.aparapi.examples.javaonedemo
Class Mandel.MandelKernel
java.lang.Object
com.aparapi.Kernel
com.aparapi.examples.javaonedemo.Mandel.MandelKernel
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Mandel
public static class Mandel.MandelKernel
extends com.aparapi.Kernel
An Aparapi Kernel implementation for creating a scaled view of the mandelbrot set.
- Author:
- gfrost
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MandelKernel(int _width, int _height, int[] _rgb)
Initialize the Kernel. -
Method Summary
Modifier and Type Method Description void
run()
void
setScaleAndOffset(float _scale, float _offsetx, float _offsety)
Methods inherited from class com.aparapi.Kernel
addExecutionModes, cancelMultiPass, cleanUpArrays, clone, dispose, execute, execute, execute, execute, execute, execute, executeFallbackAlgorithm, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, getAccumulatedExecutionTime, getAccumulatedExecutionTimeAllThreads, getAccumulatedExecutionTimeCurrentThread, getCancelState, getConversionTime, getCurrentPass, getExecutionMode, getExecutionTime, getKernelState, getMappedMethodName, getProfileInfo, getProfileReportCurrentThread, getProfileReportLastThread, getTargetDevice, hasFallbackAlgorithm, hasNextExecutionMode, invalidateCaches, isAllowDevice, isAutoCleanUpArrays, isExecuting, isExplicit, isMappedMethod, isOpenCLDelegateMethod, isRunningCL, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, registerProfileReportObserver, setAutoCleanUpArrays, setExecutionMode, setExecutionModeWithoutFallback, setExplicit, setFallbackExecutionMode, toString, tryNextExecutionMode, usesAtomic32, usesAtomic64
-
Constructor Details
-
MandelKernel
public MandelKernel(int _width, int _height, int[] _rgb)Initialize the Kernel.- Parameters:
_width
- Mandelbrot image width_height
- Mandelbrot image height_rgb
- Mandelbrot image RGB buffer
-
-
Method Details
-
run
public void run()- Specified by:
run
in classcom.aparapi.Kernel
-
setScaleAndOffset
public void setScaleAndOffset(float _scale, float _offsetx, float _offsety)
-