raytracing: Check error when updating hit SBT

This commit is contained in:
Antonio Caggiano
2026-04-10 18:51:35 +02:00
parent dd5fe138a0
commit b4e802c79d
+2 -1
View File
@@ -6572,7 +6572,8 @@ void RenderingDevice::raytracing_list_trace_rays(RaytracingListID p_list, uint32
ERR_FAIL_COND(hit_sbt->raytracing_pipeline != raytracing_list.state.pipeline_driver_id);
RDD::ShaderBindingTable rdd_hit_sbt;
_hit_sbt_buffer_update(hit_sbt, p_hit_sbt, rdd_hit_sbt);
Error err = _hit_sbt_buffer_update(hit_sbt, p_hit_sbt, rdd_hit_sbt);
ERR_FAIL_COND(err != OK);
if (hit_sbt->draw_tracker != nullptr) {
draw_graph.add_raytracing_list_usage(hit_sbt->draw_tracker, RDG::RESOURCE_USAGE_STORAGE_BUFFER_READ);