|
Untitled
|
Go to the source code of this file.
Data Structures | |
| struct | DrawArraysIndirectCommand |
| DrawArraysIndirect commands are used for static meshes (eg. More... | |
| struct | DrawElementsIndirectCommand |
| DrawArraysIndirect commands are used for non-static meshes. More... | |
| struct | MeshNode |
| MeshNodes that describe the position of Meshes, GLTF nodes for GLTFAnimations, or hold references to other MeshNodes. More... | |
| struct | Transform |
| Transforms for MeshNode models. More... | |
| struct | AABBBounds |
Macros | |
| #define | MAX_MESH_NODES 1024 |
| #define | MAX_INSTANCES 1024 |
Functions | |
| layout (local_size_x=64, local_size_y=1, local_size_z=1) in | |
| layout (std430, binding=5) buffer DrawArraysData | |
| AABBBounds | transform_aabb_by_model_matrix (MeshNode mn, mat4 mat) |
| bool | aabb_in_frustum (vec3 min, vec3 max) |
| void | main () |
Variables | |
| uniform uint | uInstanceCount |
| uniform vec4 | planes [6] |
| uniform uint | uArrayOffset |
| struct DrawElementsIndirectCommand |
DrawArraysIndirect commands are used for non-static meshes.
Definition at line 857 of file engine_types.h.
| struct AABBBounds |
Definition at line 92 of file cull_draw_calls.comp.
| Data Fields | ||
|---|---|---|
| vec4 | min | |
| vec4 | max | |
| #define MAX_MESH_NODES 1024 |
Definition at line 51 of file cull_draw_calls.comp.
| #define MAX_INSTANCES 1024 |
Definition at line 63 of file cull_draw_calls.comp.
| layout | ( | local_size_x | = 64, |
| local_size_y | = 1, | ||
| local_size_z | = 1 ) |
References layout().
| layout | ( | std430 | , |
| binding | = 5 ) |
Definition at line 15 of file cull_draw_calls.comp.
References layout().
| AABBBounds transform_aabb_by_model_matrix | ( | MeshNode | mn, |
| mat4 | mat ) |
Definition at line 99 of file cull_draw_calls.comp.
References MeshNode::center, MeshNode::extents, AABBBounds::max, AABBBounds::min, transform_aabb_by_model_matrix(), vec3::x, vec4::x, vec3::y, vec4::y, vec3::z, and vec4::z.
Referenced by compute_hull_centroid(), determine_mesh_visibility(), init_scene_bvh(), PC_traverse_scene_bvh(), ray_traverse_scene_bvh(), render_mesh_aabbs_from_root(), render_tree(), search_collisions_from_hull(), search_collisions_from_pc(), transform_aabb_by_model_matrix(), transform_aabb_by_model_matrix(), and update_physics_components().
Definition at line 127 of file cull_draw_calls.comp.
References aabb_in_frustum(), planes, vec3::x, vec3::y, vec4::y, vec3::z, and vec4::z.
Referenced by aabb_in_frustum(), and aabb_in_frustum().
| void main | ( | ) |
Definition at line 146 of file cull_draw_calls.comp.
References Transform::command_id, main(), MAX_INSTANCES, Transform::mn_id, MeshNode::static_mesh, uArrayOffset, and uInstanceCount.
| uniform uint uInstanceCount |
Definition at line 88 of file cull_draw_calls.comp.
Referenced by main().
| uniform vec4 planes[6] |
Definition at line 89 of file cull_draw_calls.comp.
Referenced by aabb_in_frustum(), aabb_in_frustum(), clip_triangle(), determine_mesh_visibility(), get_view_planes(), perform_clip(), and render_to_cubemap_face().
| uniform uint uArrayOffset |
Definition at line 90 of file cull_draw_calls.comp.
Referenced by main().