From 8c0aa6062a30160f0655d1be767d7ee77b4809ce Mon Sep 17 00:00:00 2001 From: Kosyrev Serge <_deepfire@feelingofgreen.ru> Date: Tue, 18 Sep 2018 01:14:11 +0300 Subject: types: introduce GLOutput into GLRenderer --- src/LambdaCube/GL/Type.hs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/LambdaCube') diff --git a/src/LambdaCube/GL/Type.hs b/src/LambdaCube/GL/Type.hs index 49491ed..bd3f827 100644 --- a/src/LambdaCube/GL/Type.hs +++ b/src/LambdaCube/GL/Type.hs @@ -152,6 +152,7 @@ data GLRenderer , glTextures :: Vector GLTexture , glSamplers :: Vector GLSampler , glTargets :: Vector GLRenderTarget + , glOutputs :: [GLOutput] , glCommands :: [GLCommand] , glSlotPrograms :: Vector [ProgramName] -- programs depend on a slot , glInput :: IORef (Maybe InputConnection) @@ -177,6 +178,16 @@ data GLRenderTarget , framebufferDrawbuffers :: Maybe [GLenum] } deriving Eq +data GLOutput + = GLOutputDrawBuffer + { glOutputFBO :: GLuint + , glOutputDrawBuffer :: GLenum + } + | GLOutputRenderTexture + { glOutputFBO :: GLuint + , glOutputRenderTexture :: GLTexture + } + type GLTextureUnit = Int type GLUniformBinding = GLint -- cgit v1.2.3