Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/compose/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ use indexmap::IndexMap;
///
/// codespan reporting for errors is available using the error `emit_to_string` method. this requires validation to be enabled, which is true by default. `Composer::non_validating()` produces a non-validating composer that is not able to give accurate error reporting.
///
use naga::EntryPoint;
use naga::{valid::Capabilities, EntryPoint};
use regex::Regex;
use std::collections::{hash_map::Entry, BTreeMap, HashMap, HashSet};
use tracing::{debug, trace};
Expand Down Expand Up @@ -1797,6 +1797,11 @@ impl Composer {
..derived.into()
};

if self.capabilities.contains(Capabilities::RAY_QUERY) {
naga_module.generate_ray_desc_type();
naga_module.generate_ray_intersection_type();
}

// apply overrides
if !composable.override_functions.is_empty() {
let mut redirect = Redirector::new(naga_module);
Expand Down