aboutsummaryrefslogtreecommitdiff
path: root/src/UserTexture.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/UserTexture.h
parentRemove test folder (diff)
downloadhbaoplus-636807e68a85a978473764d171ed0c7cc36f9be6.tar.xz
hbaoplus-636807e68a85a978473764d171ed0c7cc36f9be6.zip
HBAO+ 4.0.0.23740451
Diffstat (limited to 'src/UserTexture.h')
-rw-r--r--src/UserTexture.h44
1 files changed, 1 insertions, 43 deletions
diff --git a/src/UserTexture.h b/src/UserTexture.h
index 7aea6c6..1a22a8d 100644
--- a/src/UserTexture.h
+++ b/src/UserTexture.h
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2008-2017, NVIDIA CORPORATION. All rights reserved.
+* Copyright (c) 2008-2018, NVIDIA CORPORATION. All rights reserved.
*
* NVIDIA CORPORATION and its licensors retain all intellectual property
* and proprietary rights in and to this software, related documentation
@@ -211,47 +211,5 @@ struct UserTextureRTV : public SSAO::UserTextureDesc
} // namespace D3D12
#endif // SUPPORT_D3D12
-//--------------------------------------------------------------------------------
-#if SUPPORT_GL
-namespace GL
-{
-
-struct UserTexture : public SSAO::UserTextureDesc
-{
- GFSDK_SSAO_Status Init(const GFSDK_SSAO_GLFunctions& GL, const GFSDK_SSAO_Texture_GL &InputGLTexture)
- {
- if (!GFSDK::SSAO::GL::TextureUtil::HasValidTextureTarget(InputGLTexture))
- {
- return GFSDK_SSAO_GL_INVALID_TEXTURE_TARGET;
- }
-
- if (!InputGLTexture.TextureId)
- {
- // The name space for texture objects is the unsigned integers, with zero reserved by the GL.
- return GFSDK_SSAO_GL_INVALID_TEXTURE_OBJECT;
- }
-
- GFSDK::SSAO::GL::TextureDesc2D TextureDesc;
- GFSDK::SSAO::GL::TextureUtil::GetDesc2D(GL, InputGLTexture, &TextureDesc);
-
- GLTexture = InputGLTexture;
- Width = TextureDesc.Width;
- Height = TextureDesc.Height;
- SampleCount = TextureDesc.SampleCount;
-
- return GFSDK_SSAO_OK;
- }
-
- bool IsSet()
- {
- return (GLTexture.TextureId != 0);
- }
-
- GFSDK_SSAO_Texture_GL GLTexture;
-};
-
-} // namespace GL
-#endif
-
} // namespace SSAO
} // namespace GFSDK