summaryrefslogtreecommitdiff
path: root/src/simple_renderer.cpp
diff options
context:
space:
mode:
authortylermurphy534 <tylermurphy534@gmail.com>2022-09-26 20:57:53 -0400
committertylermurphy534 <tylermurphy534@gmail.com>2022-09-26 20:57:53 -0400
commit5a08c9c8e230fd952311f29bc02b22c7635d0178 (patch)
tree09bb647986461478ba8cc0671550d8488a6c434f /src/simple_renderer.cpp
parenttexture arrays (diff)
downloadminecraftvulkan-5a08c9c8e230fd952311f29bc02b22c7635d0178.tar.gz
minecraftvulkan-5a08c9c8e230fd952311f29bc02b22c7635d0178.tar.bz2
minecraftvulkan-5a08c9c8e230fd952311f29bc02b22c7635d0178.zip
vertex buffer is not a byte vector, multi texture loading
Diffstat (limited to 'src/simple_renderer.cpp')
-rw-r--r--src/simple_renderer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/simple_renderer.cpp b/src/simple_renderer.cpp
index c68f2ab..17f7b57 100644
--- a/src/simple_renderer.cpp
+++ b/src/simple_renderer.cpp
@@ -4,10 +4,10 @@ namespace app {
SimpleRenderer::SimpleRenderer(xe::Engine &xeEngine, std::vector<xe::Image*> &images) {
xeRenderSystem = xe::RenderSystem::Builder(xeEngine, "res/shaders/simple_shader.vert.spv", "res/shaders/simple_shader.frag.spv")
- .addVertexBinding(0, 3, 0) // position
- .addVertexBinding(1, 3, 12) // normal
- .addVertexBinding(2, 2, 24) // uvs
- .addVertexBinding(3, 1, 32) // texture
+ .addVertexBindingf(0, 3, 0) // position
+ .addVertexBindingf(1, 3, 12) // normal
+ .addVertexBindingf(2, 2, 24) // uvs
+ .addVertexBindingi(3, 1, 32) // texture
.setVertexSize(36)
.addPushConstant(sizeof(PushConstant))
.addUniformBinding(0, sizeof(UniformBuffer))