Skip to content

Commit 6a4c695

Browse files
committed
Fix return type
1 parent b5bbe64 commit 6a4c695

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
@@ -1866,9 +1866,18 @@ impl BlockContext<'_> {
18661866
.get(&query)
18671867
.expect("not a cached ray query");
18681868

1869+
let rq_get_vertex_positions_ty_id = self.get_handle_type_id(
1870+
*self
1871+
.ir_module
1872+
.special_types
1873+
.ray_vertex_return
1874+
.as_ref()
1875+
.expect("must be generated when reading in get vertex position"),
1876+
);
1877+
18691878
let func_call_id = self.gen_id();
18701879
block.body.push(Instruction::function_call(
1871-
self.writer.void_type,
1880+
rq_get_vertex_positions_ty_id,
18721881
func_call_id,
18731882
fn_id,
18741883
&[query_id, tracker_id.initialized_tracker],

0 commit comments

Comments
 (0)