Codota Logo
LwjglBuffer.<init>
Code IndexAdd Codota to your IDE (free)

How to use
com.jme3.opencl.lwjgl.LwjglBuffer
constructor

Best Java code snippets using com.jme3.opencl.lwjgl.LwjglBuffer.<init> (Showing top 9 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: jMonkeyEngine/jmonkeyengine

@Override
public Buffer createBufferFromHost(ByteBuffer data, MemoryAccess access) {
  long flags = Utils.getMemoryAccessFlags(access);
  flags |= CL10.CL_MEM_USE_HOST_PTR;
  long mem = CL10.clCreateBuffer(context, flags, data, Utils.errorBuffer);
  Utils.checkError(Utils.errorBuffer, "clCreateBuffer");
  return new LwjglBuffer(mem);
}
origin: jMonkeyEngine/jmonkeyengine

@Override
public Buffer createBuffer(long size, MemoryAccess access) {
  long flags = Utils.getMemoryAccessFlags(access);
  CLMem mem = CL10.clCreateBuffer(context, flags, size, Utils.errorBuffer);
  Utils.checkError(Utils.errorBuffer, "clCreateBuffer");
  return new LwjglBuffer(mem);
}
origin: jMonkeyEngine/jmonkeyengine

@Override
public Buffer createBufferFromHost(ByteBuffer data, MemoryAccess access) {
  long flags = Utils.getMemoryAccessFlags(access);
  flags |= CL10.CL_MEM_USE_HOST_PTR;
  CLMem mem = CL10.clCreateBuffer(context, flags, data, Utils.errorBuffer);
  Utils.checkError(Utils.errorBuffer, "clCreateBuffer");
  return new LwjglBuffer(mem);
}
origin: jMonkeyEngine/jmonkeyengine

@Override
public Buffer createBuffer(long size, MemoryAccess access) {
  long flags = Utils.getMemoryAccessFlags(access);
  long mem = CL10.clCreateBuffer(context, flags, size, Utils.errorBuffer);
  Utils.checkError(Utils.errorBuffer, "clCreateBuffer");
  return new LwjglBuffer(mem);
}
origin: jMonkeyEngine/jmonkeyengine

@Override
public Buffer bindVertexBuffer(VertexBuffer vb, MemoryAccess access) {
  int id = vb.getId();
  if (id == -1) {
    throw new IllegalArgumentException("vertex buffer was not yet uploaded to the GPU or is CPU only");
  }
  long flags = Utils.getMemoryAccessFlags(access);
  Utils.errorBuffer.rewind();
  CLMem mem = CL10GL.clCreateFromGLBuffer(context, flags, id, Utils.errorBuffer);
  Utils.checkError(Utils.errorBuffer, "clCreateFromGLBuffer");
  return new LwjglBuffer(mem);
}
origin: jMonkeyEngine/jmonkeyengine

@Override
public Buffer bindVertexBuffer(VertexBuffer vb, MemoryAccess access) {
  Utils.assertSharingPossible();
  int id = vb.getId();
  if (id == -1) {
    throw new IllegalArgumentException("vertex buffer was not yet uploaded to the GPU or is CPU only");
  }
  long flags = Utils.getMemoryAccessFlags(access);
  Utils.errorBuffer.rewind();
  long mem = CL10GL.clCreateFromGLBuffer(context, flags, id, Utils.errorBuffer);
  Utils.checkError(Utils.errorBuffer, "clCreateFromGLBuffer");
  return new LwjglBuffer(mem);
}
origin: org.jmonkeyengine/jme3-lwjgl3

@Override
public Buffer createBufferFromHost(ByteBuffer data, MemoryAccess access) {
  long flags = Utils.getMemoryAccessFlags(access);
  flags |= CL10.CL_MEM_USE_HOST_PTR;
  long mem = CL10.clCreateBuffer(context, flags, data, Utils.errorBuffer);
  Utils.checkError(Utils.errorBuffer, "clCreateBuffer");
  return new LwjglBuffer(mem);
}
origin: org.jmonkeyengine/jme3-lwjgl3

@Override
public Buffer createBuffer(long size, MemoryAccess access) {
  long flags = Utils.getMemoryAccessFlags(access);
  long mem = CL10.clCreateBuffer(context, flags, size, Utils.errorBuffer);
  Utils.checkError(Utils.errorBuffer, "clCreateBuffer");
  return new LwjglBuffer(mem);
}
origin: org.jmonkeyengine/jme3-lwjgl3

@Override
public Buffer bindVertexBuffer(VertexBuffer vb, MemoryAccess access) {
  Utils.assertSharingPossible();
  int id = vb.getId();
  if (id == -1) {
    throw new IllegalArgumentException("vertex buffer was not yet uploaded to the GPU or is CPU only");
  }
  long flags = Utils.getMemoryAccessFlags(access);
  Utils.errorBuffer.rewind();
  long mem = CL10GL.clCreateFromGLBuffer(context, flags, id, Utils.errorBuffer);
  Utils.checkError(Utils.errorBuffer, "clCreateFromGLBuffer");
  return new LwjglBuffer(mem);
}
com.jme3.opencl.lwjglLwjglBuffer<init>

Popular methods of LwjglBuffer

  • getBuffer

Popular in Java

  • Running tasks concurrently on multiple threads
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • setContentView (Activity)
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • BoxLayout (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now