MCPcopy Create free account
hub / github.com/crosire/reshade / copy_acceleration_structure

Method copy_acceleration_structure

source/d3d12/d3d12_impl_command_list.cpp:1146–1154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1144}
1145
1146void reshade::d3d12::command_list_impl::copy_acceleration_structure(api::resource_view source, api::resource_view dest, api::acceleration_structure_copy_mode mode)
1147{
1148 _has_commands = true;
1149
1150 if (_supports_ray_tracing)
1151 static_cast<ID3D12GraphicsCommandList4 *>(_orig)->CopyRaytracingAccelerationStructure(dest.handle, source.handle, convert_acceleration_structure_copy_mode(mode));
1152 else
1153 assert(false);
1154}
1155void reshade::d3d12::command_list_impl::build_acceleration_structure(api::acceleration_structure_type type, api::acceleration_structure_build_flags flags, uint32_t input_count, const api::acceleration_structure_build_input *inputs, api::resource scratch, uint64_t scratch_offset, api::resource_view source, api::resource_view dest, api::acceleration_structure_build_mode mode)
1156{
1157 _has_commands = true;

Callers

nothing calls this directly

Tested by

no test coverage detected