aboutsummaryrefslogtreecommitdiff
path: root/src/shaders/out/D3D11/CopyDepth_PS.h
diff options
context:
space:
mode:
authorlbavoil <[email protected]>2018-03-15 11:08:34 +0100
committerlbavoil <[email protected]>2018-03-15 11:08:34 +0100
commit636807e68a85a978473764d171ed0c7cc36f9be6 (patch)
tree784a3d4fa8f48b4c085dd959678505b2af12f425 /src/shaders/out/D3D11/CopyDepth_PS.h
parentRemove test folder (diff)
downloadhbaoplus-636807e68a85a978473764d171ed0c7cc36f9be6.tar.xz
hbaoplus-636807e68a85a978473764d171ed0c7cc36f9be6.zip
HBAO+ 4.0.0.23740451
Diffstat (limited to 'src/shaders/out/D3D11/CopyDepth_PS.h')
-rw-r--r--src/shaders/out/D3D11/CopyDepth_PS.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/shaders/out/D3D11/CopyDepth_PS.h b/src/shaders/out/D3D11/CopyDepth_PS.h
index b3000a4..0d012fc 100644
--- a/src/shaders/out/D3D11/CopyDepth_PS.h
+++ b/src/shaders/out/D3D11/CopyDepth_PS.h
@@ -17,21 +17,32 @@ namespace ShaderPermutations
};
#endif
+#ifndef DEPTH_LAYER_COUNT_DEFINED
+#define DEPTH_LAYER_COUNT_DEFINED
+ enum DEPTH_LAYER_COUNT
+ {
+ DEPTH_LAYER_COUNT_1,
+ DEPTH_LAYER_COUNT_2,
+ DEPTH_LAYER_COUNT_COUNT,
+ };
+#endif
+
};
struct CopyDepth_PS
{
void Create(DevicePointer Device);
void Release(DevicePointer Device);
- PixelShader& Get(ShaderPermutations::RESOLVE_DEPTH A)
+ PixelShader& Get(ShaderPermutations::RESOLVE_DEPTH A, ShaderPermutations::DEPTH_LAYER_COUNT B)
{
- return m_Shader[A];
+ return m_Shader[A][B];
}
private:
- PixelShader m_Shader[ShaderPermutations::RESOLVE_DEPTH_COUNT];
+ PixelShader m_Shader[ShaderPermutations::RESOLVE_DEPTH_COUNT][ShaderPermutations::DEPTH_LAYER_COUNT_COUNT];
#if _WIN32
static_assert(ShaderPermutations::RESOLVE_DEPTH_COUNT == 2, "");
+ static_assert(ShaderPermutations::DEPTH_LAYER_COUNT_COUNT == 2, "");
#endif
};