Cycles: clang build fixes.
This commit is contained in:
@@ -83,6 +83,7 @@ public:
|
|||||||
vector<Object*> objects;
|
vector<Object*> objects;
|
||||||
|
|
||||||
static BVH *create(const BVHParams& params, const vector<Object*>& objects);
|
static BVH *create(const BVHParams& params, const vector<Object*>& objects);
|
||||||
|
virtual ~BVH() {}
|
||||||
|
|
||||||
void build(Progress& progress);
|
void build(Progress& progress);
|
||||||
void refit(Progress& progress);
|
void refit(Progress& progress);
|
||||||
|
@@ -42,6 +42,7 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual ~BVHNode() {}
|
||||||
virtual bool is_leaf() const = 0;
|
virtual bool is_leaf() const = 0;
|
||||||
virtual int num_children() const = 0;
|
virtual int num_children() const = 0;
|
||||||
virtual BVHNode *get_child(int i) const = 0;
|
virtual BVHNode *get_child(int i) const = 0;
|
||||||
|
@@ -244,7 +244,7 @@ public:
|
|||||||
mem.device_pointer = tmp;
|
mem.device_pointer = tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
void draw_pixels(device_memory& rgba, int x, int y, int w, int h, int width, int height)
|
void draw_pixels(device_memory& rgba, int y, int w, int h, int width, int height)
|
||||||
{
|
{
|
||||||
device_ptr tmp = rgba.device_pointer;
|
device_ptr tmp = rgba.device_pointer;
|
||||||
int i = 0, sub_h = h/devices.size();
|
int i = 0, sub_h = h/devices.size();
|
||||||
|
@@ -30,6 +30,7 @@ class Mesh;
|
|||||||
|
|
||||||
class Patch {
|
class Patch {
|
||||||
public:
|
public:
|
||||||
|
virtual ~Patch() {}
|
||||||
virtual void eval(float3 *P, float3 *dPdu, float3 *dPdv, float u, float v) = 0;
|
virtual void eval(float3 *P, float3 *dPdu, float3 *dPdv, float u, float v) = 0;
|
||||||
virtual bool is_triangle() = 0;
|
virtual bool is_triangle() = 0;
|
||||||
virtual BoundBox bound() = 0;
|
virtual BoundBox bound() = 0;
|
||||||
|
@@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
/* Vector */
|
/* Vector */
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
CCL_NAMESPACE_BEGIN
|
CCL_NAMESPACE_BEGIN
|
||||||
|
Reference in New Issue
Block a user