Class Main.MandelKernel

java.lang.Object
com.aparapi.Kernel
com.aparapi.examples.mandel.Main.MandelKernel
All Implemented Interfaces:
Cloneable
Enclosing class:
Main

public static class Main.MandelKernel
extends com.aparapi.Kernel
An Aparapi Kernel implementation for creating a scaled view of the mandelbrot set.
Author:
gfrost
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.aparapi.Kernel

    com.aparapi.Kernel.Constant, com.aparapi.Kernel.Entry, com.aparapi.Kernel.EXECUTION_MODE, com.aparapi.Kernel.KernelState, com.aparapi.Kernel.Local, com.aparapi.Kernel.NoCL, com.aparapi.Kernel.PrivateMemorySpace
  • Field Summary

    Fields inherited from class com.aparapi.Kernel

    CONSTANT_SUFFIX, LOCAL_SUFFIX, PRIVATE_SUFFIX
  • Constructor Summary

    Constructors 
    Constructor Description
    MandelKernel​(int _width, int _height, int[] _rgb)
    Initialize the Kernel.
  • Method Summary

    Modifier and Type Method Description
    int getCount​(float x, float y)  
    int[] getRgbs()  
    void resetImage​(int _width, int _height, int[] _rgb)  
    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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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

    • resetImage

      public void resetImage​(int _width, int _height, int[] _rgb)
    • getCount

      public int getCount​(float x, float y)
    • run

      public void run()
      Specified by:
      run in class com.aparapi.Kernel
    • setScaleAndOffset

      public void setScaleAndOffset​(float _scale, float _offsetx, float _offsety)
    • getRgbs

      public int[] getRgbs()