Continue shader refactor

This commit is contained in:
2023-04-13 00:43:01 +01:00
parent cd46998e05
commit f104b24e90
7 changed files with 40 additions and 39 deletions
+6 -1
View File
@@ -3,6 +3,7 @@ module Shader.Parameters
, numDrawableElements
, numSubElements
, glushortSize
, numGLushort
) where
import Graphics.GL.Core45
import Foreign
@@ -19,10 +20,14 @@ glushortSize :: Int
glushortSize = sizeOf (0 :: GLushort)
{-# INLINE glushortSize #-}
numGLushort :: Int
numGLushort = fromIntegral (maxBound :: GLushort) + 1
{-# INLINE numGLushort #-}
numDrawableElements :: Int
{-# INLINE numDrawableElements #-}
numDrawableElements = 6 * numSubElements
numSubElements :: Int
{-# INLINE numSubElements #-}
numSubElements = 100000
numSubElements = 65536