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

Method DispatchRays

source/d3d12/d3d12_command_list.cpp:1148–1177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1146#endif
1147}
1148void STDMETHODCALLTYPE D3D12GraphicsCommandList::DispatchRays(const D3D12_DISPATCH_RAYS_DESC *pDesc)
1149{
1150 assert(_interface_version >= 4);
1151
1152#if RESHADE_ADDON
1153 assert(pDesc != nullptr);
1154
1155 if (reshade::invoke_addon_event<reshade::addon_event::dispatch_rays>(
1156 this,
1157 reshade::api::resource {},
1158 pDesc->RayGenerationShaderRecord.StartAddress,
1159 pDesc->RayGenerationShaderRecord.SizeInBytes,
1160 reshade::api::resource {},
1161 pDesc->MissShaderTable.StartAddress,
1162 pDesc->MissShaderTable.SizeInBytes,
1163 pDesc->MissShaderTable.StrideInBytes,
1164 reshade::api::resource {},
1165 pDesc->HitGroupTable.StartAddress,
1166 pDesc->HitGroupTable.SizeInBytes,
1167 pDesc->HitGroupTable.StrideInBytes,
1168 reshade::api::resource {},
1169 pDesc->CallableShaderTable.StartAddress,
1170 pDesc->CallableShaderTable.SizeInBytes,
1171 pDesc->CallableShaderTable.StrideInBytes,
1172 pDesc->Width, pDesc->Height, pDesc->Depth))
1173 return;
1174#endif
1175
1176 static_cast<ID3D12GraphicsCommandList4 *>(_orig)->DispatchRays(pDesc);
1177}
1178
1179void STDMETHODCALLTYPE D3D12GraphicsCommandList::RSSetShadingRate(D3D12_SHADING_RATE BaseShadingRate, const D3D12_SHADING_RATE_COMBINER *pCombiners)
1180{

Callers 1

dispatch_raysMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected