GPUOcelot
|
A class to represent the access format of a texture. More...
#include <Texture.h>
Public Types | |
enum | SurfaceType { Texref, Surfref, Samplerref, SurfaceType_Invalid } |
enum | Type { Unsigned, Signed, Float, Invalid } |
enum | Interpolation { Nearest, Linear } |
enum | AddressMode { Wrap, Clamp, Mirror, Clamp_ogl, Clamp_edge, Clamp_border, AddressMode_Invalid } |
enum | ChannelDataType { CL_SNORM_INT8 = 0x10D0, CL_SNORM_INT16 = 0x10D1, CL_UNORM_INT8 = 0x10D2, CL_UNORM_INT16 = 0x10D3, CL_UNORM_SHORT_565 = 0x10D4, CL_UNORM_SHORT_555 = 0x105, CL_UNORM_INT_101010 = 0x10D6, CL_SIGNED_INT8 = 0x10D7, CL_SIGNED_INT16 = 0x10D8, CL_SIGNED_INT32 = 0x10D9, CL_UNSIGNED_INT8 = 0x10DA, CL_UNSIGNED_INT16 = 0x10DB, CL_UNSIGNED_INT32 = 0x10DC, CL_HALF_FLOAT = 0x10DD, CL_FLOAT = 0x10DE, ChannelDataType_Invalid } |
enum | ChannelOrder { CL_R = 0x10B0, CL_A = 0x10B1, CL_RG = 0x10B2, CL_RA = 0x10B3, CL_RGB = 0x10B4, CL_RGBA = 0x10B5, CL_BGRA = 0x10B6, CL_ARGB = 0x10B7, CL_ITENSITY = 0x10B8, CL_LUMINANCE = 0x10B9, ChannelOrder_Invalid } |
Public Member Functions | |
unsigned int | pitch () const |
unsigned int | bytes () const |
unsigned int | components () const |
unsigned int | dimensions () const |
Texture (const std::string &n="", SurfaceType surfType=Texref, Type type=Float) | |
Pointer to mapped variable. | |
std::string | toString () const |
Static Public Member Functions | |
static std::string | toString (SurfaceType type) |
static std::string | toString (Interpolation type) |
static std::string | toString (AddressMode type) |
static std::string | toString (Type type) |
static Type | typeFromString (const std::string &) |
static AddressMode | modeFromString (const std::string &) |
static Interpolation | interpolationFromString (const std::string &) |
static ir::PTXOperand::DataType | convertFromChannelDataType (ChannelDataType) |
static ChannelDataType | convertFromPTXDataType (ir::PTXOperand::DataType) |
Public Attributes | |
std::string | name |
SurfaceType | surfaceType |
texture name | |
unsigned int | x |
indicates type of surface this is | |
unsigned int | y |
Bits in x dim. | |
unsigned int | z |
Bits in y dim. | |
unsigned int | w |
Bits in z dim. | |
bool | normalize |
Bits in w dim. | |
bool | normalizedFloat |
Normalize accesses. | |
Type | type |
Return a normalized float. | |
Dim3 | size |
Data type. | |
Interpolation | interpolation |
Texture dimensions. | |
AddressMode | addressMode [3] |
Interpolation mode. | |
void * | data |
Wrap around or clamp to bound. |
A class to represent the access format of a texture.
enum ir::Texture::Type |
ir::Texture::Texture | ( | const std::string & | n = "" , |
SurfaceType | surfType = Texref , |
||
Type | type = Float |
||
) |
Pointer to mapped variable.
unsigned int ir::Texture::bytes | ( | ) | const [inline] |
unsigned int ir::Texture::components | ( | ) | const [inline] |
ir::PTXOperand::DataType ir::Texture::convertFromChannelDataType | ( | Texture::ChannelDataType | channelData | ) | [static] |
Texture::ChannelDataType ir::Texture::convertFromPTXDataType | ( | ir::PTXOperand::DataType | ptxData | ) | [static] |
unsigned int ir::Texture::dimensions | ( | ) | const [inline] |
Texture::Interpolation ir::Texture::interpolationFromString | ( | const std::string & | s | ) | [static] |
Texture::AddressMode ir::Texture::modeFromString | ( | const std::string & | s | ) | [static] |
unsigned int ir::Texture::pitch | ( | ) | const [inline] |
std::string ir::Texture::toString | ( | SurfaceType | type | ) | [static] |
std::string ir::Texture::toString | ( | ) | const |
std::string ir::Texture::toString | ( | Type | type | ) | [static] |
std::string ir::Texture::toString | ( | AddressMode | type | ) | [static] |
std::string ir::Texture::toString | ( | Interpolation | type | ) | [static] |
Texture::Type ir::Texture::typeFromString | ( | const std::string & | s | ) | [static] |
Interpolation mode.
void* ir::Texture::data |
Wrap around or clamp to bound.
Texture dimensions.
std::string ir::Texture::name |
Bits in w dim.
Normalize accesses.
Data type.
texture name
Return a normalized float.
unsigned int ir::Texture::w |
Bits in z dim.
unsigned int ir::Texture::x |
indicates type of surface this is
unsigned int ir::Texture::y |
Bits in x dim.
unsigned int ir::Texture::z |
Bits in y dim.