Blender V2.61 - r43446
Classes | Enumerations | Functions

device_memory.h File Reference

#include "util_debug.h"
#include "util_types.h"
#include "util_vector.h"

Go to the source code of this file.

Classes

struct  device_type_traits< T >
struct  device_type_traits< uchar >
struct  device_type_traits< uchar2 >
struct  device_type_traits< uchar3 >
struct  device_type_traits< uchar4 >
struct  device_type_traits< uint >
struct  device_type_traits< uint2 >
struct  device_type_traits< uint3 >
struct  device_type_traits< uint4 >
struct  device_type_traits< int >
struct  device_type_traits< int2 >
struct  device_type_traits< int3 >
struct  device_type_traits< int4 >
struct  device_type_traits< float >
struct  device_type_traits< float2 >
struct  device_type_traits< float3 >
struct  device_type_traits< float4 >
class  device_memory
class  device_vector< T >

Enumerations

enum  MemoryType { MEM_READ_ONLY, MEM_WRITE_ONLY, MEM_READ_WRITE }
enum  DataType { TYPE_UCHAR, TYPE_UINT, TYPE_INT, TYPE_FLOAT }

Functions

static size_t datatype_size (DataType datatype)

Enumeration Type Documentation

enum DataType
Enumerator:
TYPE_UCHAR 
TYPE_UINT 
TYPE_INT 
TYPE_FLOAT 

Definition at line 47 of file device_memory.h.

enum MemoryType
Enumerator:
MEM_READ_ONLY 
MEM_WRITE_ONLY 
MEM_READ_WRITE 

Definition at line 39 of file device_memory.h.


Function Documentation

static size_t datatype_size ( DataType  datatype) [inline, static]

Definition at line 54 of file device_memory.h.

References TYPE_FLOAT, TYPE_INT, TYPE_UCHAR, TYPE_UINT, uchar, and uint.

Referenced by device_memory::memory_size(), and CUDADevice::tex_alloc().