Blender V2.61 - r43446
Public Member Functions | Public Attributes

texture< T > Struct Template Reference

#include <kernel_compat_cpu.h>

List of all members.

Public Member Functions

fetch (int index)
float interp (float x, int size)

Public Attributes

T * data
int width

Detailed Description

template<typename T>
struct texture< T >

Definition at line 39 of file kernel_compat_cpu.h.


Member Function Documentation

template<typename T >
T texture< T >::fetch ( int  index) [inline]

Definition at line 40 of file kernel_compat_cpu.h.

References texture< T >::data, kernel_assert, and texture< T >::width.

template<typename T >
float texture< T >::interp ( float  x,
int  size 
) [inline]

Definition at line 58 of file kernel_compat_cpu.h.

References clamp, texture< T >::data, kernel_assert, min, and texture< T >::width.


Member Data Documentation

template<typename T >
T* texture< T >::data

Definition at line 71 of file kernel_compat_cpu.h.

Referenced by texture< T >::fetch(), and texture< T >::interp().

template<typename T >
int texture< T >::width

Definition at line 72 of file kernel_compat_cpu.h.

Referenced by texture< T >::fetch(), and texture< T >::interp().


The documentation for this struct was generated from the following file: