NullSwizzle< T, mapLength > Class Template Reference#include <swizzle.h>
Inheritance diagram for NullSwizzle< T, mapLength >: ![]()
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Member Functions | |
| NullSwizzle (const dsize_t *map=NULL) | |
| virtual void | InPlace (void *memory, const dsize_t size) const |
| This method will, in the general case, use the ToBuffer method to swizzle the memory specified into a temporary buffer, allocated by FrameTemp, and then copy the temporary memory into the source memory. | |
| virtual void | ToBuffer (void *destination, const void *source, const dsize_t size) const |
| This method copies the data from source to destination while applying the re-ordering. | |
| NullSwizzle< T, mapLength >::NullSwizzle | ( | const dsize_t * | map = NULL |
) | [inline] |
| virtual void NullSwizzle< T, mapLength >::InPlace | ( | void * | memory, | |
| const dsize_t | size | |||
| ) | const [inline, virtual] |
This method will, in the general case, use the ToBuffer method to swizzle the memory specified into a temporary buffer, allocated by FrameTemp, and then copy the temporary memory into the source memory.
| memory | Pointer to the start of the buffer to swizzle | |
| size | Size of the buffer |
Reimplemented from Swizzle< T, mapLength >.
| virtual void NullSwizzle< T, mapLength >::ToBuffer | ( | void * | destination, | |
| const void * | source, | |||
| const dsize_t | size | |||
| ) | const [inline, virtual] |
This method copies the data from source to destination while applying the re-ordering.
This method is, in the non-specalized case, O(N^2) where N is sizeof( T ) / size; the number of instances of type 'T' in the buffer
| destination | The destination of the swizzled data | |
| source | The source data to be swizzled | |
| size | Size of the source and destination buffers. |
Reimplemented from Swizzle< T, mapLength >.