Commit AFTER playing around with poking/vector sizing a little

This commit is contained in:
2024-10-01 12:32:23 +01:00
parent 8348c1234c
commit 6438da0037
12 changed files with 301 additions and 1889 deletions
+5 -4
View File
@@ -1,11 +1,12 @@
module Shader.Parameters
( floatSize
, ubyteSize
, numDrawableElements
, numDrawableVertices
, numSubElements
, glushortSize
, numGLushort
) where
import Picture.Data
import Graphics.GL.Core45
import Foreign
@@ -29,9 +30,9 @@ numGLushort :: Int
numGLushort = fromIntegral (maxBound :: GLushort) + 1
{-# INLINE numGLushort #-}
numDrawableElements :: Int
{-# INLINE numDrawableElements #-}
numDrawableElements = 6 * numSubElements
numDrawableVertices :: Int
{-# INLINE numDrawableVertices #-}
numDrawableVertices = 6 * numSubElements
numSubElements :: Int
{-# INLINE numSubElements #-}