DXT5nmSwizzle Class Reference#include <dxt5nmSwizzle.h>
Inheritance diagram for DXT5nmSwizzle:
[legend]List of all members.
|
Public Member Functions |
| | DXT5nmSwizzle () |
| 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.
|
Constructor & Destructor Documentation
| DXT5nmSwizzle::DXT5nmSwizzle |
( |
|
) |
[inline] |
Member Function Documentation
| virtual void DXT5nmSwizzle::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.
- Parameters:
-
| memory | Pointer to the start of the buffer to swizzle |
| size | Size of the buffer |
Reimplemented from Swizzle< T, mapLength >.
| virtual void DXT5nmSwizzle::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
- Parameters:
-
| 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 >.
|