13 # ifdef WITH_CUDA_DYNLOAD
24 class CUDADevice :
public Device {
26 friend class CUDAContextScope;
32 size_t device_texture_headroom;
33 size_t device_working_headroom;
34 bool move_texture_to_host;
36 size_t map_host_limit;
40 int cuDevArchitecture;
44 CUDAMem() : texobject(0),
array(0), use_mapped_host(false)
54 typedef map<device_memory *, CUDAMem> CUDAMemMap;
55 CUDAMemMap cuda_mem_map;
60 bool need_texture_info;
62 CUDADeviceKernels kernels;
64 static bool have_precompiled_kernels();
72 virtual ~CUDADevice();
74 bool support_device(
const uint );
78 bool use_adaptive_compilation();
80 virtual string compile_kernel_get_common_cflags(
const uint kernel_features);
82 string compile_kernel(
const uint kernel_features,
84 const char *base =
"cuda",
85 bool force_ptx =
false);
89 void reserve_local_memory(
const uint kernel_features);
91 void init_host_memory();
93 void load_texture_info();
95 void move_textures_to_host(
size_t size,
bool for_texture);
97 CUDAMem *generic_alloc(
device_memory &mem,
size_t pitch_padding = 0);
129 int get_num_multiprocessors();
130 int get_max_num_threads_per_multiprocessor();
133 bool get_device_attribute(CUdevice_attribute
attribute,
int *value);
134 int get_device_default_attribute(CUdevice_attribute
attribute,
int default_value);
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
in reality light always falls off quadratically Particle Retrieve the data of the particle that spawned the object for example to give variation to multiple instances of an object Point Retrieve information about points in a point cloud Retrieve the edges of an object as it appears to Cycles topology will always appear triangulated Convert a blackbody temperature to an RGB value Normal Generate a perturbed normal from an RGB normal map image Typically used for faking highly detailed surfaces Generate an OSL shader from a file or text data block Image Sample an image file as a texture Sky Generate a procedural sky texture Noise Generate fractal Perlin noise Wave Generate procedural bands or rings with noise Voronoi Generate Worley noise based on the distance to random points Typically used to generate textures such as or biological cells Brick Generate a procedural texture producing bricks Texture Retrieve multiple types of texture coordinates nTypically used as inputs for texture nodes Vector Convert a or normal between and object coordinate space Combine Create a color from its and value channels Color Retrieve a color attribute
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
SIMD_FORCE_INLINE const btScalar & w() const
Return the w value.
virtual BVHLayoutMask get_bvh_layout_mask() const =0
virtual void const_copy_to(const char *name, void *host, size_t size)=0
virtual void mem_zero(device_memory &mem)=0
virtual void mem_copy_from(device_memory &mem, size_t y, size_t w, size_t h, size_t elem)=0
virtual unique_ptr< DeviceQueue > gpu_queue_create()
virtual bool load_kernels(uint)
virtual bool check_peer_access(Device *)
virtual void mem_free(device_memory &mem)=0
virtual void set_error(const string &error)
virtual void mem_copy_to(device_memory &mem)=0
virtual device_ptr mem_alloc_sub_ptr(device_memory &, size_t, size_t)
virtual void mem_alloc(device_memory &mem)=0
virtual bool should_use_graphics_interop()
unsigned long long CUtexObject
#define CCL_NAMESPACE_END
ccl_gpu_kernel_postfix ccl_global float int int int int float bool int offset
static void error(const char *str)
CCL_NAMESPACE_BEGIN typedef std::mutex thread_mutex