Mojo struct
DoubleBuffer
struct DoubleBuffer[dtype: DType]
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDestructible,
Movable
Methodsβ
__init__β
__init__(out self)
__init__(out self, current: UnsafePointer[Scalar[dtype], MutExternalOrigin], alternate: UnsafePointer[Scalar[dtype], MutExternalOrigin], size: Int)
__init__(out self, *, copy: Self)
currentβ
current(self, ctx: DeviceContext) -> DeviceBuffer[dtype]
Returns:
DeviceBuffer[dtype]
alternateβ
alternate(self, ctx: DeviceContext) -> DeviceBuffer[dtype]
Returns:
DeviceBuffer[dtype]
swapβ
swap(mut self)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!