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

GLSL refactors to support Vulkan

This commit is contained in:
Jack Andersen
2016-07-07 14:07:11 -10:00
parent 442068306f
commit 952b96fa79
10 changed files with 78 additions and 47 deletions

View File

@@ -450,6 +450,7 @@ CElementGen::CElementGen(const TToken<CGenDescription>& gen,
{
m_shaderClass = CElementGenShaders::GetShaderClass(*this);
size_t maxInsts = x224_29_MBLR ? (m_maxMBSP * x70_MAXP) : x70_MAXP;
maxInsts = (maxInsts == 0 ? 256 : maxInsts);
m_gfxToken = CGraphics::CommitResources([&](boo::IGraphicsDataFactory::Context& ctx) -> bool
{
m_instBuf = ctx.newDynamicBuffer(boo::BufferUse::Vertex, ShadClsSizes[int(m_shaderClass)], maxInsts);