fclBufferSwap Interface

interface
public module subroutine fclBufferSwap(memObject1, memObject2)

Arguments

Type IntentOptional Attributes Name
class(fclDeviceBuffer), intent(inout) :: memObject1

Buffer objects with which to swap pointers

class(fclDeviceBuffer), intent(inout) :: memObject2

Buffer objects with which to swap pointers

Description

Helper routine for swapping device buffer pointers. Also swaps the command queue pointers associated with each buffer if different.

Note

The debug build will throw an error if either buffer is uninitialised or if the buffers do not match in size.