Skip to content

Commit

Permalink
removal of unnecessary shader specializations (#1044)
Browse files Browse the repository at this point in the history
  • Loading branch information
turanszkij authored Jan 23, 2025
1 parent 4bae72f commit 010e794
Show file tree
Hide file tree
Showing 26 changed files with 15 additions and 428 deletions.
20 changes: 0 additions & 20 deletions WickedEngine/offlineshadercompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,9 @@ wi::vector<ShaderEntry> shaders = {
{"hairparticle_simulateCS", wi::graphics::ShaderStage::CS},
{"emittedparticle_simulateCS", wi::graphics::ShaderStage::CS},
{"generateMIPChainCubeCS_float4", wi::graphics::ShaderStage::CS},
{"generateMIPChainCubeCS_unorm4", wi::graphics::ShaderStage::CS},
{"generateMIPChainCubeArrayCS_float4", wi::graphics::ShaderStage::CS},
{"generateMIPChainCubeArrayCS_unorm4", wi::graphics::ShaderStage::CS},
{"generateMIPChain3DCS_float4", wi::graphics::ShaderStage::CS},
{"generateMIPChain3DCS_unorm4", wi::graphics::ShaderStage::CS},
{"generateMIPChain2DCS_float4", wi::graphics::ShaderStage::CS},
{"generateMIPChain2DCS_unorm4", wi::graphics::ShaderStage::CS},
{"blockcompressCS_BC1", wi::graphics::ShaderStage::CS},
{"blockcompressCS_BC3", wi::graphics::ShaderStage::CS},
{"blockcompressCS_BC4", wi::graphics::ShaderStage::CS},
Expand All @@ -50,8 +46,6 @@ wi::vector<ShaderEntry> shaders = {
{"vxgi_resolve_specularCS", wi::graphics::ShaderStage::CS},
{"upsample_bilateral_float1CS", wi::graphics::ShaderStage::CS},
{"upsample_bilateral_float4CS", wi::graphics::ShaderStage::CS},
{"upsample_bilateral_unorm1CS", wi::graphics::ShaderStage::CS},
{"upsample_bilateral_unorm4CS", wi::graphics::ShaderStage::CS},
{"temporalaaCS", wi::graphics::ShaderStage::CS},
{"tonemapCS", wi::graphics::ShaderStage::CS},
{"underwaterCS", wi::graphics::ShaderStage::CS},
Expand Down Expand Up @@ -142,32 +136,18 @@ wi::vector<ShaderEntry> shaders = {
{"depthoffield_mainCS_earlyexit", wi::graphics::ShaderStage::CS },
{"depthoffield_postfilterCS", wi::graphics::ShaderStage::CS },
{"copytexture2D_float4_borderexpandCS", wi::graphics::ShaderStage::CS },
{"copytexture2D_unorm4_borderexpandCS", wi::graphics::ShaderStage::CS },
{"copytexture2D_unorm4CS", wi::graphics::ShaderStage::CS },
{"copytexture2D_float4CS", wi::graphics::ShaderStage::CS },
{"chromatic_aberrationCS", wi::graphics::ShaderStage::CS },
{"bvh_hierarchyCS", wi::graphics::ShaderStage::CS },
{"bvh_primitivesCS", wi::graphics::ShaderStage::CS },
{"bvh_propagateaabbCS", wi::graphics::ShaderStage::CS },
{"blur_gaussian_wide_unorm1CS", wi::graphics::ShaderStage::CS },
{"blur_gaussian_wide_unorm4CS", wi::graphics::ShaderStage::CS },
{"blur_gaussian_unorm1CS", wi::graphics::ShaderStage::CS },
{"blur_gaussian_unorm4CS", wi::graphics::ShaderStage::CS },
{"blur_gaussian_wide_float1CS", wi::graphics::ShaderStage::CS },
{"blur_gaussian_wide_float3CS", wi::graphics::ShaderStage::CS },
{"blur_gaussian_wide_float4CS", wi::graphics::ShaderStage::CS },
{"blur_bilateral_wide_unorm4CS", wi::graphics::ShaderStage::CS },
{"blur_gaussian_float1CS", wi::graphics::ShaderStage::CS },
{"blur_gaussian_float3CS", wi::graphics::ShaderStage::CS },
{"blur_bilateral_unorm4CS", wi::graphics::ShaderStage::CS },
{"blur_bilateral_wide_float1CS", wi::graphics::ShaderStage::CS },
{"blur_bilateral_wide_float3CS", wi::graphics::ShaderStage::CS },
{"blur_bilateral_wide_float4CS", wi::graphics::ShaderStage::CS },
{"blur_bilateral_wide_unorm1CS", wi::graphics::ShaderStage::CS },
{"blur_bilateral_float1CS", wi::graphics::ShaderStage::CS },
{"blur_bilateral_float3CS", wi::graphics::ShaderStage::CS },
{"blur_bilateral_float4CS", wi::graphics::ShaderStage::CS },
{"blur_bilateral_unorm1CS", wi::graphics::ShaderStage::CS },
{"normalsfromdepthCS", wi::graphics::ShaderStage::CS },
{"volumetricCloud_curlnoiseCS", wi::graphics::ShaderStage::CS },
{"volumetricCloud_detailnoiseCS", wi::graphics::ShaderStage::CS },
Expand Down
200 changes: 0 additions & 200 deletions WickedEngine/shaders/Shaders_SOURCE.vcxitems

Large diffs are not rendered by default.

60 changes: 0 additions & 60 deletions WickedEngine/shaders/Shaders_SOURCE.vcxitems.filters
Original file line number Diff line number Diff line change
Expand Up @@ -185,27 +185,15 @@
<FxCompile Include="$(MSBuildThisFileDirectory)generateMIPChainCubeCS_float4.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)generateMIPChainCubeCS_unorm4.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)generateMIPChainCubeArrayCS_float4.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)generateMIPChainCubeArrayCS_unorm4.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)generateMIPChain3DCS_float4.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)generateMIPChain3DCS_unorm4.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)generateMIPChain2DCS_float4.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)generateMIPChain2DCS_unorm4.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)blur_gaussian_float4CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
Expand Down Expand Up @@ -242,12 +230,6 @@
<FxCompile Include="$(MSBuildThisFileDirectory)upsample_bilateral_float4CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)upsample_bilateral_unorm1CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)upsample_bilateral_unorm4CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)temporalaaCS.hlsl">
<Filter>CS</Filter>
</FxCompile>
Expand Down Expand Up @@ -428,12 +410,6 @@
<FxCompile Include="$(MSBuildThisFileDirectory)copytexture2D_float4_borderexpandCS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)copytexture2D_unorm4_borderexpandCS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)copytexture2D_unorm4CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)copytexture2D_float4CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
Expand All @@ -449,63 +425,27 @@
<FxCompile Include="$(MSBuildThisFileDirectory)bvh_propagateaabbCS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)blur_gaussian_wide_unorm1CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)blur_gaussian_wide_unorm4CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)blur_gaussian_unorm1CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)blur_gaussian_unorm4CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)blur_gaussian_wide_float1CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)blur_gaussian_wide_float3CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)blur_gaussian_wide_float4CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)blur_bilateral_wide_unorm4CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)blur_gaussian_float1CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)blur_gaussian_float3CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)blur_bilateral_unorm4CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)blur_bilateral_wide_float1CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)blur_bilateral_wide_float3CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)blur_bilateral_wide_float4CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)blur_bilateral_wide_unorm1CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)blur_bilateral_float1CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)blur_bilateral_float3CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)blur_bilateral_float4CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)blur_bilateral_unorm1CS.hlsl">
<Filter>CS</Filter>
</FxCompile>
<FxCompile Include="$(MSBuildThisFileDirectory)objectDS.hlsl">
<Filter>DS</Filter>
</FxCompile>
Expand Down
2 changes: 0 additions & 2 deletions WickedEngine/shaders/blur_bilateral_float3CS.hlsl

This file was deleted.

2 changes: 0 additions & 2 deletions WickedEngine/shaders/blur_bilateral_unorm1CS.hlsl

This file was deleted.

2 changes: 0 additions & 2 deletions WickedEngine/shaders/blur_bilateral_unorm4CS.hlsl

This file was deleted.

3 changes: 0 additions & 3 deletions WickedEngine/shaders/blur_bilateral_wide_float3CS.hlsl

This file was deleted.

3 changes: 0 additions & 3 deletions WickedEngine/shaders/blur_bilateral_wide_unorm1CS.hlsl

This file was deleted.

3 changes: 0 additions & 3 deletions WickedEngine/shaders/blur_bilateral_wide_unorm4CS.hlsl

This file was deleted.

2 changes: 0 additions & 2 deletions WickedEngine/shaders/blur_gaussian_float3CS.hlsl

This file was deleted.

2 changes: 0 additions & 2 deletions WickedEngine/shaders/blur_gaussian_unorm1CS.hlsl

This file was deleted.

2 changes: 0 additions & 2 deletions WickedEngine/shaders/blur_gaussian_unorm4CS.hlsl

This file was deleted.

3 changes: 0 additions & 3 deletions WickedEngine/shaders/blur_gaussian_wide_float3CS.hlsl

This file was deleted.

3 changes: 0 additions & 3 deletions WickedEngine/shaders/blur_gaussian_wide_unorm1CS.hlsl

This file was deleted.

3 changes: 0 additions & 3 deletions WickedEngine/shaders/blur_gaussian_wide_unorm4CS.hlsl

This file was deleted.

3 changes: 0 additions & 3 deletions WickedEngine/shaders/copytexture2D_unorm4CS.hlsl

This file was deleted.

3 changes: 0 additions & 3 deletions WickedEngine/shaders/copytexture2D_unorm4_borderexpandCS.hlsl

This file was deleted.

4 changes: 0 additions & 4 deletions WickedEngine/shaders/generateMIPChain2DCS_unorm4.hlsl

This file was deleted.

4 changes: 0 additions & 4 deletions WickedEngine/shaders/generateMIPChain3DCS_unorm4.hlsl

This file was deleted.

4 changes: 0 additions & 4 deletions WickedEngine/shaders/generateMIPChainCubeArrayCS_unorm4.hlsl

This file was deleted.

4 changes: 0 additions & 4 deletions WickedEngine/shaders/generateMIPChainCubeCS_unorm4.hlsl

This file was deleted.

2 changes: 0 additions & 2 deletions WickedEngine/shaders/upsample_bilateral_unorm1CS.hlsl

This file was deleted.

2 changes: 0 additions & 2 deletions WickedEngine/shaders/upsample_bilateral_unorm4CS.hlsl

This file was deleted.

20 changes: 0 additions & 20 deletions WickedEngine/wiEnums.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,9 @@ namespace wi::enums
CSTYPE_SKYATMOSPHERE_SKYVIEWLUT,
CSTYPE_SKYATMOSPHERE_SKYLUMINANCELUT,
CSTYPE_SKYATMOSPHERE_CAMERAVOLUMELUT,
CSTYPE_GENERATEMIPCHAIN2D_UNORM4,
CSTYPE_GENERATEMIPCHAIN2D_FLOAT4,
CSTYPE_GENERATEMIPCHAIN3D_UNORM4,
CSTYPE_GENERATEMIPCHAIN3D_FLOAT4,
CSTYPE_GENERATEMIPCHAINCUBE_UNORM4,
CSTYPE_GENERATEMIPCHAINCUBE_FLOAT4,
CSTYPE_GENERATEMIPCHAINCUBEARRAY_UNORM4,
CSTYPE_GENERATEMIPCHAINCUBEARRAY_FLOAT4,
CSTYPE_BLOCKCOMPRESS_BC1,
CSTYPE_BLOCKCOMPRESS_BC3,
Expand All @@ -256,33 +252,19 @@ namespace wi::enums
CSTYPE_BLOCKCOMPRESS_BC6H,
CSTYPE_BLOCKCOMPRESS_BC6H_CUBEMAP,
CSTYPE_FILTERENVMAP,
CSTYPE_COPYTEXTURE2D_UNORM4,
CSTYPE_COPYTEXTURE2D_FLOAT4,
CSTYPE_COPYTEXTURE2D_UNORM4_BORDEREXPAND,
CSTYPE_COPYTEXTURE2D_FLOAT4_BORDEREXPAND,
CSTYPE_SKINNING,
CSTYPE_RAYTRACE,
CSTYPE_PAINT_TEXTURE,
CSTYPE_POSTPROCESS_BLUR_GAUSSIAN_FLOAT1,
CSTYPE_POSTPROCESS_BLUR_GAUSSIAN_FLOAT3,
CSTYPE_POSTPROCESS_BLUR_GAUSSIAN_FLOAT4,
CSTYPE_POSTPROCESS_BLUR_GAUSSIAN_UNORM1,
CSTYPE_POSTPROCESS_BLUR_GAUSSIAN_UNORM4,
CSTYPE_POSTPROCESS_BLUR_GAUSSIAN_WIDE_FLOAT1,
CSTYPE_POSTPROCESS_BLUR_GAUSSIAN_WIDE_FLOAT3,
CSTYPE_POSTPROCESS_BLUR_GAUSSIAN_WIDE_FLOAT4,
CSTYPE_POSTPROCESS_BLUR_GAUSSIAN_WIDE_UNORM1,
CSTYPE_POSTPROCESS_BLUR_GAUSSIAN_WIDE_UNORM4,
CSTYPE_POSTPROCESS_BLUR_BILATERAL_FLOAT1,
CSTYPE_POSTPROCESS_BLUR_BILATERAL_FLOAT3,
CSTYPE_POSTPROCESS_BLUR_BILATERAL_FLOAT4,
CSTYPE_POSTPROCESS_BLUR_BILATERAL_UNORM1,
CSTYPE_POSTPROCESS_BLUR_BILATERAL_UNORM4,
CSTYPE_POSTPROCESS_BLUR_BILATERAL_WIDE_FLOAT1,
CSTYPE_POSTPROCESS_BLUR_BILATERAL_WIDE_FLOAT3,
CSTYPE_POSTPROCESS_BLUR_BILATERAL_WIDE_FLOAT4,
CSTYPE_POSTPROCESS_BLUR_BILATERAL_WIDE_UNORM1,
CSTYPE_POSTPROCESS_BLUR_BILATERAL_WIDE_UNORM4,
CSTYPE_POSTPROCESS_SSAO,
CSTYPE_POSTPROCESS_HBAO,
CSTYPE_POSTPROCESS_MSAO_PREPAREDEPTHBUFFERS1,
Expand Down Expand Up @@ -359,9 +341,7 @@ namespace wi::enums
CSTYPE_POSTPROCESS_FSR2_RCAS_PASS,
CSTYPE_POSTPROCESS_CHROMATIC_ABERRATION,
CSTYPE_POSTPROCESS_UPSAMPLE_BILATERAL_FLOAT1,
CSTYPE_POSTPROCESS_UPSAMPLE_BILATERAL_UNORM1,
CSTYPE_POSTPROCESS_UPSAMPLE_BILATERAL_FLOAT4,
CSTYPE_POSTPROCESS_UPSAMPLE_BILATERAL_UNORM4,
CSTYPE_POSTPROCESS_DOWNSAMPLE4X,
CSTYPE_POSTPROCESS_LINEARDEPTH,
CSTYPE_POSTPROCESS_NORMALSFROMDEPTH,
Expand Down
Loading

0 comments on commit 010e794

Please sign in to comment.