Blender  V2.93
Public Member Functions | Public Attributes | List of all members
texture< T > Struct Template Reference

#include <kernel_compat_cpu.h>

Public Member Functions

ccl_always_inline const Tfetch (int index)
 

Public Attributes

Tdata
 
int width
 

Detailed Description

template<typename T>
struct texture< T >

Definition at line 74 of file kernel_compat_cpu.h.

Member Function Documentation

◆ fetch()

template<typename T >
ccl_always_inline const T& texture< T >::fetch ( int  index)
inline

Definition at line 75 of file kernel_compat_cpu.h.

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

Member Data Documentation

◆ data

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

Definition at line 107 of file kernel_compat_cpu.h.

Referenced by texture< T >::fetch().

◆ width

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

Definition at line 108 of file kernel_compat_cpu.h.

Referenced by texture< T >::fetch().


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