fix, but still not working
This commit is contained in:
parent
45d180484f
commit
139f208377
2 changed files with 5 additions and 4 deletions
|
@ -89,11 +89,12 @@ initVulkan window = do
|
||||||
rainbowVertexShader <- loadShader vulkanLogicalDevice "shadersrc/rainbow.vert" "vert"
|
rainbowVertexShader <- loadShader vulkanLogicalDevice "shadersrc/rainbow.vert" "vert"
|
||||||
rainbowFragmentShader <- loadShader vulkanLogicalDevice "shadersrc/rainbow.frag" "frag"
|
rainbowFragmentShader <- loadShader vulkanLogicalDevice "shadersrc/rainbow.frag" "frag"
|
||||||
meshVertexShader <- loadShader vulkanLogicalDevice "shadersrc/mesh.vert" "vert"
|
meshVertexShader <- loadShader vulkanLogicalDevice "shadersrc/mesh.vert" "vert"
|
||||||
|
meshFragmentShader <- loadShader vulkanLogicalDevice "shadersrc/rainbow.frag" "frag"
|
||||||
renderPass <- createRenderPass vulkanLogicalDevice (Khr.format surfaceFormat)
|
renderPass <- createRenderPass vulkanLogicalDevice (Khr.format surfaceFormat)
|
||||||
pipelineLayout <- createPipelineLayout vulkanLogicalDevice
|
pipelineLayout <- createPipelineLayout vulkanLogicalDevice
|
||||||
let redContainer = ShaderContainer (Just redVertexShader) (Just redFragmentShader)
|
let redContainer = ShaderContainer (Just redVertexShader) (Just redFragmentShader)
|
||||||
rainbowContainer = ShaderContainer (Just rainbowVertexShader) (Just rainbowFragmentShader)
|
rainbowContainer = ShaderContainer (Just rainbowVertexShader) (Just rainbowFragmentShader)
|
||||||
meshContainer = ShaderContainer (Just meshVertexShader) Nothing
|
meshContainer = ShaderContainer (Just meshVertexShader) (Just meshFragmentShader)
|
||||||
redPipelines <-
|
redPipelines <-
|
||||||
createGraphicsPipelines
|
createGraphicsPipelines
|
||||||
vulkanLogicalDevice
|
vulkanLogicalDevice
|
||||||
|
|
|
@ -24,9 +24,9 @@ loadMeshes
|
||||||
:: V.Vector Vertex
|
:: V.Vector Vertex
|
||||||
loadMeshes =
|
loadMeshes =
|
||||||
V.fromList
|
V.fromList
|
||||||
[ Vertex (V3 0.5 0.5 0) (V3 0 1 0) (V4 0 0 0 0)
|
[ Vertex (V3 0.5 0.5 0) (V3 0 0 0) (V4 0 1 0 1)
|
||||||
, Vertex (V3 (-0.5) 0.5 0) (V3 0 1 0) (V4 0 0 0 0)
|
, Vertex (V3 (-0.5) 0.5 0) (V3 0 0 0) (V4 0 1 0 1)
|
||||||
, Vertex (V3 0 (-0.5) 0) (V3 0 1 0) (V4 0 0 0 0)
|
, Vertex (V3 0 (-0.5) 0) (V3 0 0 0) (V4 0 1 0 1)
|
||||||
]
|
]
|
||||||
|
|
||||||
uploadMesh
|
uploadMesh
|
||||||
|
|
Loading…
Reference in a new issue