Skip to content

Commit

Permalink
ShaderCompiler remove unnecessary #include in precomp
Browse files Browse the repository at this point in the history
  • Loading branch information
Benualdo committed Oct 2, 2024
1 parent c6408d2 commit a461b33
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
4 changes: 0 additions & 4 deletions src/gfx/Precomp.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@
#include "winpixeventruntime\Include\WinPixEventRuntime\pix3.h"
#endif

#if VG_ENABLE_SHADER_COMPILATION
#include "dxc/inc/dxcapi.h"
#endif

#pragma push_macro("new")
#undef new
#include "D3D12MemoryAllocator/src/D3D12MemAlloc.h"
Expand Down
10 changes: 1 addition & 9 deletions src/gfx/Shader/dxc/ShaderCompiler_dxc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,7 @@ namespace vg::gfx::dxc
{
VG_SAFE_RELEASE(m_d3d12dxcCompiler);
VG_SAFE_RELEASE(m_d3d12dxcLibrary);

try
{
VG_SAFE_RELEASE(m_d3d12dxcIncludeHandler);
}
catch (const std::exception & e)
{
VG_UNREFERENCED_VARIABLE(e);
}
VG_SAFE_RELEASE(m_d3d12dxcIncludeHandler);
}

//--------------------------------------------------------------------------------------
Expand Down

0 comments on commit a461b33

Please sign in to comment.