Class Buffer.AsyncMapping

java.lang.Object
com.jme3.opencl.Buffer.AsyncMapping
Enclosing class:
Buffer

public static class Buffer.AsyncMapping extends Object
Result of an async mapping operation, contains the event and the target byte buffer. This is a work-around since no generic pair-structure is available.
  • Field Details

  • Constructor Details

  • Method Details

    • getEvent

      public Event getEvent()
      Returns:
      the event object indicating when the data in the mapped buffer is available
    • getBuffer

      public ByteBuffer getBuffer()
      Returns:
      the mapped buffer, only valid when the event object signals completion