| 1146 | #endif |
| 1147 | } |
| 1148 | void 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 | |
| 1179 | void STDMETHODCALLTYPE D3D12GraphicsCommandList::RSSetShadingRate(D3D12_SHADING_RATE BaseShadingRate, const D3D12_SHADING_RATE_COMBINER *pCombiners) |
| 1180 | { |