From 636807e68a85a978473764d171ed0c7cc36f9be6 Mon Sep 17 00:00:00 2001 From: lbavoil Date: Thu, 15 Mar 2018 11:08:34 +0100 Subject: HBAO+ 4.0.0.23740451 --- src/UserTexture.h | 44 +------------------------------------------- 1 file changed, 1 insertion(+), 43 deletions(-) (limited to 'src/UserTexture.h') 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 -- cgit v1.2.3