Skip to content

Commit 85f6629

Browse files
committed
Fix return type
1 parent a78b265 commit 85f6629

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

naga/src/back/spv/ray.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1697,9 +1697,18 @@ impl BlockContext<'_> {
16971697
.get(&query)
16981698
.expect("not a cached ray query");
16991699

1700+
let rq_get_vertex_positions_ty_id = self.get_handle_type_id(
1701+
*self
1702+
.ir_module
1703+
.special_types
1704+
.ray_vertex_return
1705+
.as_ref()
1706+
.expect("must be generated when reading in get vertex position"),
1707+
);
1708+
17001709
let func_call_id = self.gen_id();
17011710
block.body.push(Instruction::function_call(
1702-
self.writer.void_type,
1711+
rq_get_vertex_positions_ty_id,
17031712
func_call_id,
17041713
fn_id,
17051714
&[query_id, init_tracker_id],

0 commit comments

Comments
 (0)