Module notzed.zcl
Package au.notzed.zcl

Class CLBuffer

java.lang.Object

public class CLBuffer
extends CLMemory
Interface for memory buffers.
  • Constructor Details

    • CLBuffer

      public CLBuffer​(jdk.incubator.foreign.MemoryAddress p)
  • Method Details

    • REGION

      public static CLBufferInfo REGION​(long origin, long size)
      Parameter to define a region for createSubBuffer().
      Parameters:
      origin - Offset into buffer.
      size - Size of sub-buffer.
      Returns:
      See Also:
      createSubBuffer(long, au.notzed.zcl.CLBufferInfo)
    • createSubBuffer

      public CLBuffer createSubBuffer​(long flags, CLBufferInfo info) throws CLException
      Call clCreateSubBuffer.
      Parameters:
      flags -
      info - Define the properties for the sub-bufer.
      Returns:
      A newly created buffer.

      It must be released when no longer needed.

      Throws:
      CLException
      Since:
      OpenCL 1.1
      See Also:
      REGION(long, long)
    • ofRead

      public CLTask ofRead​(byte[] target)
    • ofRead

      public CLTask ofRead​(short[] target)
    • ofRead

      public CLTask ofRead​(int[] target)
    • ofRead

      public CLTask ofRead​(float[] target)
    • ofRead

      public CLTask ofRead​(int offset, int length, float[] target, int toff)
    • ofRead

      public CLTask ofRead​(java.nio.ByteBuffer target, boolean blocking)
    • ofWrite

      public CLTask ofWrite​(byte[] source)
    • ofWrite

      public CLTask ofWrite​(short[] source)
    • ofWrite

      public CLTask ofWrite​(int[] source)
    • ofWrite

      public CLTask ofWrite​(float[] source)
    • ofWrite

      public CLTask ofWrite​(java.nio.ByteBuffer source, boolean blocking)
    • ofFill

      public CLTask ofFill​(float... pattern)