Skip to content

Commit

Permalink
RayTracing API WIP.
Browse files Browse the repository at this point in the history
  • Loading branch information
facundo-villa committed Nov 2, 2023
1 parent 53f99e8 commit 60cea63
Show file tree
Hide file tree
Showing 5 changed files with 323 additions and 80 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#![feature(const_mut_refs)]
#![feature(is_sorted)]
#![feature(iter_map_windows)]
#![feature(pointer_is_aligned)]
// #![warn(missing_docs)] # Disable now because we are writing a lot of code
// #![warn(missing_doc_code_examples)] # Disable now because we are writing a lot of code

Expand Down
8 changes: 4 additions & 4 deletions src/render_domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ void main() {{
binding: 0,
descriptor_type: render_system::DescriptorType::AccelerationStructure,
descriptor_count: 1,
stages: render_system::Stages::ACCELERATION_STRUCTURE,
stages: render_system::Stages::RAYGEN,
immutable_samplers: None,
},
]);
Expand All @@ -975,7 +975,7 @@ void main() {{
binding: 0,
descriptor_type: render_system::DescriptorType::AccelerationStructure,
descriptor_count: 1,
stages: render_system::Stages::ACCELERATION_STRUCTURE,
stages: render_system::Stages::RAYGEN,
immutable_samplers: None,
},
]);
Expand All @@ -990,8 +990,8 @@ void main() {{
]);

const _SHADOW_RAY_GEN_SHADER: &'static str = "
#version 450
#pragma shader_stage(ray_gen)
#version 460 core
#pragma shader_stage(raygen)
#extension GL_EXT_scalar_block_layout: enable
#extension GL_EXT_buffer_reference: enable
Expand Down
Loading

0 comments on commit 60cea63

Please sign in to comment.