Skip to content

Commit

Permalink
Added Empty DXIL Shader Debugger helper files to the project
Browse files Browse the repository at this point in the history
renderdoc/driver/d3d12/d3d12_dxil_debug.[h,cpp]
Will contain replay helper functions for DXIL debugger including the wrapper for D3D12 API interaction i.e. "DXILDebug::D3D12APIWrapper"
  • Loading branch information
Zorro666 committed May 11, 2024
1 parent 2dcb0d0 commit 69bc0ea
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
27 changes: 27 additions & 0 deletions renderdoc/driver/d3d12/d3d12_dxil_debug.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2024 Baldur Karlsson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
******************************************************************************/

#pragma once

#include "d3d12_dxil_debug.h"
25 changes: 25 additions & 0 deletions renderdoc/driver/d3d12/d3d12_dxil_debug.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2024 Baldur Karlsson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
******************************************************************************/

#pragma once
2 changes: 2 additions & 0 deletions renderdoc/driver/d3d12/renderdoc_d3d12.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
<ClCompile Include="d3d12_device_wrap7.cpp" />
<ClCompile Include="d3d12_device_wrap8.cpp" />
<ClCompile Include="d3d12_device_wrap9.cpp" />
<ClCompile Include="d3d12_dxil_debug.cpp" />
<ClCompile Include="d3d12_hooks.cpp" />
<ClCompile Include="d3d12_initstate.cpp" />
<ClCompile Include="d3d12_manager.cpp" />
Expand Down Expand Up @@ -163,6 +164,7 @@
<ClInclude Include="d3d12_common.h" />
<ClInclude Include="d3d12_debug.h" />
<ClInclude Include="d3d12_device.h" />
<ClInclude Include="d3d12_dxil_debug.h" />
<ClInclude Include="d3d12_hooks.h" />
<ClInclude Include="d3d12_manager.h" />
<ClInclude Include="..\dx\official\d3d12.h" />
Expand Down
6 changes: 6 additions & 0 deletions renderdoc/driver/d3d12/renderdoc_d3d12.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
<ClInclude Include="d3d12_hooks.h">
<Filter>Hooks</Filter>
</ClInclude>
<ClInclude Include="d3d12_dxil_debug.h">
<Filter>Util</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="d3d12_common.cpp">
Expand Down Expand Up @@ -230,5 +233,8 @@
<ClCompile Include="d3d12_pixelhistory.cpp">
<Filter>Replay</Filter>
</ClCompile>
<ClCompile Include="d3d12_dxil_debug.cpp">
<Filter>Util</Filter>
</ClCompile>
</ItemGroup>
</Project>

0 comments on commit 69bc0ea

Please sign in to comment.