a little cleaner
This commit is contained in:
parent
4feac51f26
commit
2d3fc457be
1 changed files with 1 additions and 2 deletions
|
@ -235,8 +235,7 @@ recordCommandBuffer
|
||||||
materialMap <- (liftIO . STM.atomically . STM.readTMVar) =<< asks materialLibrary
|
materialMap <- (liftIO . STM.atomically . STM.readTMVar) =<< asks materialLibrary
|
||||||
|
|
||||||
let draws = compactDraws meshMap materialMap renderObjects
|
let draws = compactDraws meshMap materialMap renderObjects
|
||||||
|
drawCommands = V.map
|
||||||
let drawCommands = V.map
|
|
||||||
(\(i, RenderObject mesh _ _) ->
|
(\(i, RenderObject mesh _ _) ->
|
||||||
Vk.DrawIndirectCommand
|
Vk.DrawIndirectCommand
|
||||||
{ vertexCount = fromIntegral (V.length $ meshVertices $ meshMap M.! mesh)
|
{ vertexCount = fromIntegral (V.length $ meshVertices $ meshMap M.! mesh)
|
||||||
|
|
Loading…
Reference in a new issue