rafx-plugins 0.0.16

Rendering framework built on an extensible asset pipeline
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use rafx::framework::{BufferResource, ResourceArc};
use rafx::render_features::RenderView;

pub struct OcclusionJob {
    pub draw_data: ResourceArc<BufferResource>,
    pub transforms: ResourceArc<BufferResource>,
    pub bounding_spheres: ResourceArc<BufferResource>,
    pub indirect_commands: ResourceArc<BufferResource>,

    pub render_view: RenderView,
    pub draw_data_count: u32,
    pub indirect_first_command_index: u32,
}

#[derive(Default)]
pub struct MeshAdvGpuOcclusionCullRenderResource {
    pub data: Vec<OcclusionJob>,
}