Skip to content

Commit

Permalink
Updated RTX API.
Browse files Browse the repository at this point in the history
  • Loading branch information
facundo-villa committed Nov 1, 2023
1 parent f441a13 commit 53f99e8
Show file tree
Hide file tree
Showing 5 changed files with 1,225 additions and 777 deletions.
5 changes: 2 additions & 3 deletions src/render_domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ pub struct VisibilityWorldRenderDomain {

pending_texture_loads: Vec<render_system::ImageHandle>,

top_level_acceleration_structure: render_system::AccelerationStructureHandle,
top_level_acceleration_structure: render_system::TopLevelAccelerationStructureHandle,
}

const VERTEX_COUNT: u32 = 64;
Expand Down Expand Up @@ -954,8 +954,7 @@ void main() {{

let _instance_buffer = render_system.create_acceleration_structure_instance_buffer(Some("Scene Instance Buffer"), MAX_INSTANCES as u32);

let buffer = render_system.create_buffer(None, 65565, render_system::Uses::AccelerationStructure, render_system::DeviceAccesses::GpuWrite, render_system::UseCases::STATIC);
let top_level_acceleration_structure = render_system.create_acceleration_structure(Some("Top Level Acceleration Structure"), render_system::AccelerationStructureTypes::TopLevel{ instance_count: 16 }, render_system::BufferDescriptor { buffer: buffer, offset: 0, range: 4096, slot: 0 });
let top_level_acceleration_structure = render_system.create_top_level_acceleration_structure(Some("Top Level Acceleration Structure"));

let rt_pass_descriptor_set_layout = render_system.create_descriptor_set_layout(Some("RT Pass Set Layout"), &[
render_system::DescriptorSetLayoutBinding {
Expand Down
Loading

0 comments on commit 53f99e8

Please sign in to comment.