31 #include <cugar/linalg/vector.h> 39 enum class VertexSampling
45 enum class VertexOrdering
61 vertex_counter(NULL) {}
64 uint32* vertex_path_id;
65 uint4* vertex_gbuffer;
68 float2* vertex_weights;
69 uint32* vertex_counts;
70 uint32* vertex_counter;
75 void alloc(
const uint32 n_paths,
const uint32 n_vertices)
77 vertex.alloc(n_vertices);
78 vertex_path_id.alloc(n_vertices);
79 vertex_pos.alloc(n_vertices);
80 vertex_gbuffer.alloc(n_vertices);
81 vertex_input.alloc(n_vertices);
82 vertex_weights.alloc(n_vertices);
83 vertex_counts.alloc(n_paths);
84 vertex_counter.alloc(1);
90 r.vertex = vertex.ptr();
91 r.vertex_path_id = vertex_path_id.ptr();
92 r.vertex_pos = vertex_pos.ptr();
93 r.vertex_gbuffer = vertex_gbuffer.ptr();
94 r.vertex_input = vertex_input.ptr();
95 r.vertex_weights = vertex_weights.ptr();
96 r.vertex_counts = vertex_counts.ptr();
97 r.vertex_counter = vertex_counter.ptr();
Definition: vertex_storage.h:51
Definition: vertex_storage.h:73