3 #include "core/cl/voxel_structs.h" 4 #include "core/spatial_division/voxelised_scene_data.h" 11 template <
typename Vertex,
typename Surface>
18 , voxel_index_{load_to_buffer(
19 context_, get_flattened(scene_data.get_voxels()),
true)}
26 , side_{
static_cast<cl_uint
>(scene_data.get_voxels().get_side())}
27 , triangles_{load_to_buffer(
29 scene_data.get_scene_data().get_triangles(),
31 , vertices_{load_to_buffer(
33 scene_data.get_scene_data().get_vertices(),
36 load_to_buffer(context_,
37 scene_data.get_scene_data().get_surfaces(),
40 cl::Context get_context()
const {
return context_; }
42 const cl::Buffer& get_voxel_index_buffer()
const {
return voxel_index_; }
43 aabb get_global_aabb()
const {
return global_aabb_; }
44 cl_uint get_side()
const {
return side_; }
46 const cl::Buffer& get_triangles_buffer()
const {
return triangles_; }
47 const cl::Buffer& get_vertices_buffer()
const {
return vertices_; }
48 const cl::Buffer& get_surfaces_buffer()
const {
return surfaces_; }
51 const cl::Context context_;
53 const cl::Buffer voxel_index_;
54 const aabb global_aabb_;
57 const cl::Buffer triangles_;
58 const cl::Buffer vertices_;
59 const cl::Buffer surfaces_;
62 template <
typename Vertex,
typename Surface>
63 auto make_scene_buffers(
Definition: voxel_structs.h:9
Definition: conversions.h:10
Definition: scene_buffers.h:12
Definition: capsule_base.h:9
Definition: voxelised_scene_data.h:14
Definition: pressure.h:73