Mojo struct
DoubleBuffer
struct DoubleBuffer[dtype: DType]
Implemented traits
AnyType
,
Copyable
,
ImplicitlyCopyable
,
Movable
,
UnknownDestructibility
Aliases
__copyinit__is_trivial
alias __copyinit__is_trivial = False
__del__is_trivial
alias __del__is_trivial = False
__moveinit__is_trivial
alias __moveinit__is_trivial = False
Methods
__init__
__init__(out self)
__init__(out self, current: UnsafePointer[Scalar[dtype]], alternate: UnsafePointer[Scalar[dtype]], size: Int)
current
current(self, ctx: DeviceContext) -> DeviceBuffer[dtype]
Returns:
DeviceBuffer
alternate
alternate(self, ctx: DeviceContext) -> DeviceBuffer[dtype]
Returns:
DeviceBuffer
swap
swap(mut self)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!