2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 00:27:43 +00:00

Update boo and GLSL backend for Vulkan

This commit is contained in:
Jack Andersen
2016-06-30 16:31:23 -10:00
parent b8010759fb
commit 66774da1be
3 changed files with 7 additions and 6 deletions

View File

@@ -86,6 +86,7 @@ struct HECLApplicationCallback : boo::IApplicationCallback
/* Compile HECL shader */
static std::string testShader = "HECLOpaque(Texture(0, UV(0)))";
//static std::string testShader = "HECLOpaque(vec4(1.0,1.0,1.0,1.0))";
hecl::Runtime::ShaderTag testShaderTag(testShader, 0, 1, 0, 0, 0, boo::Primitive::TriStrips, false, false, false);
boo::IShaderPipeline* testShaderObj =
shaderMgr.buildShader(testShaderTag, testShader, "testShader", ctx);
@@ -200,7 +201,7 @@ struct HECLApplicationCallback : boo::IApplicationCallback
vubo->load(&vuboData, sizeof(vuboData));
gfxQ->setShaderDataBinding(binding);
gfxQ->draw(0, 4);
gfxQ->drawIndexed(0, 4);
gfxQ->resolveDisplay(renderTex);
gfxQ->execute();