final case class DeviceBuffer[Owner <: OpenCL with Singleton, Element](handle: Long) extends MonadicCloseable[UnitContinuation] with Product with Serializable
A cl_mem whose CL_MEM_TYPE is buffer CL_MEM_OBJECT_BUFFER.
- handle
The underlying
cl_mem
.
- Self Type
- DeviceBuffer[Owner, Element]
- Source
- OpenCL.scala
- Note
comment out
extends AnyVal
in case of https://github.com/scala/bug/issues/10647
Linear Supertypes
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- DeviceBuffer
- Serializable
- Serializable
- Product
- Equals
- MonadicCloseable
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from DeviceBuffer[Owner, Element] to any2stringadd[DeviceBuffer[Owner, Element]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (DeviceBuffer[Owner, Element], B)
- Implicit
- This member is added by an implicit conversion from DeviceBuffer[Owner, Element] to ArrowAssoc[DeviceBuffer[Owner, Element]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
ensuring(cond: (DeviceBuffer[Owner, Element]) ⇒ Boolean, msg: ⇒ Any): DeviceBuffer[Owner, Element]
- Implicit
- This member is added by an implicit conversion from DeviceBuffer[Owner, Element] to Ensuring[DeviceBuffer[Owner, Element]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (DeviceBuffer[Owner, Element]) ⇒ Boolean): DeviceBuffer[Owner, Element]
- Implicit
- This member is added by an implicit conversion from DeviceBuffer[Owner, Element] to Ensuring[DeviceBuffer[Owner, Element]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): DeviceBuffer[Owner, Element]
- Implicit
- This member is added by an implicit conversion from DeviceBuffer[Owner, Element] to Ensuring[DeviceBuffer[Owner, Element]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): DeviceBuffer[Owner, Element]
- Implicit
- This member is added by an implicit conversion from DeviceBuffer[Owner, Element] to Ensuring[DeviceBuffer[Owner, Element]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from DeviceBuffer[Owner, Element] to StringFormat[DeviceBuffer[Owner, Element]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val handle: Long
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def length(implicit memory: Memory[Element]): Int
-
def
monadicClose: UnitContinuation[Unit]
- Definition Classes
- DeviceBuffer → MonadicCloseable
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def numberOfBytes: Int
- def release(): Unit
- def retain(): Unit
- def slice(offset: Int, size: Int)(implicit memory: Memory[Element]): Do[DeviceBuffer[Owner, Element]]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
toHostBuffer(preconditionEvents: Event[Owner]*)(implicit witnessOwner: Aux[Owner], memory: Memory[Element]): Do[HostBuffer]
Returns an asynchronous operation of a buffer on host.
Returns an asynchronous operation of a buffer on host.
The buffer may be FloatBuffer, DoubleBuffer or other buffer types according to
Element
.- Note
The buffer is allocated by lwjgl, not JRE. As a result, you can only use the buffer inside a
map
orflatMap
block, then it will be released by Do automatically. Assigning the buffer to another variable used outsidemap
orflatMap
block will cause memory access error.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
→[B](y: B): (DeviceBuffer[Owner, Element], B)
- Implicit
- This member is added by an implicit conversion from DeviceBuffer[Owner, Element] to ArrowAssoc[DeviceBuffer[Owner, Element]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc