Class LwjglContext

java.lang.Object
com.jme3.opencl.AbstractOpenCLObject
com.jme3.opencl.Context
com.jme3.opencl.lwjgl.LwjglContext
All Implemented Interfaces:
com.jme3.opencl.OpenCLObject

public class LwjglContext extends com.jme3.opencl.Context
Author:
shaman
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.jme3.opencl.OpenCLObject

    com.jme3.opencl.OpenCLObject.ObjectReleaser
  • Field Summary

    Fields inherited from class com.jme3.opencl.AbstractOpenCLObject

    releaser
  • Constructor Summary

    Constructors
    Constructor
    Description
    LwjglContext(long context, List<LwjglDevice> devices)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.jme3.opencl.Image
    bindImage(com.jme3.texture.Image image, com.jme3.texture.Texture.Type textureType, int mipLevel, com.jme3.opencl.MemoryAccess access)
     
    protected com.jme3.opencl.Image
    bindPureRenderBuffer(com.jme3.texture.FrameBuffer.RenderBuffer buffer, com.jme3.opencl.MemoryAccess access)
     
    com.jme3.opencl.Buffer
    bindVertexBuffer(com.jme3.scene.VertexBuffer vb, com.jme3.opencl.MemoryAccess access)
     
    com.jme3.opencl.Buffer
    createBuffer(long size, com.jme3.opencl.MemoryAccess access)
     
    com.jme3.opencl.Buffer
    createBufferFromHost(ByteBuffer data, com.jme3.opencl.MemoryAccess access)
     
    com.jme3.opencl.Image
    createImage(com.jme3.opencl.MemoryAccess access, com.jme3.opencl.Image.ImageFormat format, com.jme3.opencl.Image.ImageDescriptor descr)
     
    com.jme3.opencl.Program
    createProgramFromBinary(ByteBuffer binaries, com.jme3.opencl.Device device)
     
    com.jme3.opencl.Program
     
    com.jme3.opencl.CommandQueue
    createQueue(com.jme3.opencl.Device device)
     
    long
     
     
    com.jme3.opencl.Image.ImageFormat[]
    querySupportedFormats(com.jme3.opencl.MemoryAccess access, com.jme3.opencl.Image.ImageType type)
     

    Methods inherited from class com.jme3.opencl.Context

    bindImage, bindImage, bindRenderBuffer, createBuffer, createBufferFromHost, createProgramFromSourceCodeWithDependencies, createProgramFromSourceFiles, createProgramFromSourceFiles, createProgramFromSourceFilesWithInclude, createProgramFromSourceFilesWithInclude, createQueue, register, toString

    Methods inherited from class com.jme3.opencl.AbstractOpenCLObject

    finalize, getReleaser, release

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • LwjglContext

      public LwjglContext(long context, List<LwjglDevice> devices)
  • Method Details

    • getContext

      public long getContext()
    • getDevices

      public List<LwjglDevice> getDevices()
      Specified by:
      getDevices in class com.jme3.opencl.Context
    • createQueue

      public com.jme3.opencl.CommandQueue createQueue(com.jme3.opencl.Device device)
      Specified by:
      createQueue in class com.jme3.opencl.Context
    • createBuffer

      public com.jme3.opencl.Buffer createBuffer(long size, com.jme3.opencl.MemoryAccess access)
      Specified by:
      createBuffer in class com.jme3.opencl.Context
    • createBufferFromHost

      public com.jme3.opencl.Buffer createBufferFromHost(ByteBuffer data, com.jme3.opencl.MemoryAccess access)
      Specified by:
      createBufferFromHost in class com.jme3.opencl.Context
    • createImage

      public com.jme3.opencl.Image createImage(com.jme3.opencl.MemoryAccess access, com.jme3.opencl.Image.ImageFormat format, com.jme3.opencl.Image.ImageDescriptor descr)
      Specified by:
      createImage in class com.jme3.opencl.Context
    • querySupportedFormats

      public com.jme3.opencl.Image.ImageFormat[] querySupportedFormats(com.jme3.opencl.MemoryAccess access, com.jme3.opencl.Image.ImageType type)
      Specified by:
      querySupportedFormats in class com.jme3.opencl.Context
    • bindVertexBuffer

      public com.jme3.opencl.Buffer bindVertexBuffer(com.jme3.scene.VertexBuffer vb, com.jme3.opencl.MemoryAccess access)
      Specified by:
      bindVertexBuffer in class com.jme3.opencl.Context
    • bindImage

      public com.jme3.opencl.Image bindImage(com.jme3.texture.Image image, com.jme3.texture.Texture.Type textureType, int mipLevel, com.jme3.opencl.MemoryAccess access)
      Specified by:
      bindImage in class com.jme3.opencl.Context
    • bindPureRenderBuffer

      protected com.jme3.opencl.Image bindPureRenderBuffer(com.jme3.texture.FrameBuffer.RenderBuffer buffer, com.jme3.opencl.MemoryAccess access)
      Specified by:
      bindPureRenderBuffer in class com.jme3.opencl.Context
    • createProgramFromSourceCode

      public com.jme3.opencl.Program createProgramFromSourceCode(String sourceCode)
      Specified by:
      createProgramFromSourceCode in class com.jme3.opencl.Context
    • createProgramFromBinary

      public com.jme3.opencl.Program createProgramFromBinary(ByteBuffer binaries, com.jme3.opencl.Device device)
      Specified by:
      createProgramFromBinary in class com.jme3.opencl.Context