mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-11 13:07:42 +00:00
Uniform and Vertex buffer pool refactor
This commit is contained in:
@@ -10,7 +10,7 @@ IconView::IconView(ViewResources& res, View& parentView, Icon& icon)
|
||||
commitResources(res, [&](boo::IGraphicsDataFactory::Context& ctx) -> bool
|
||||
{
|
||||
buildResources(ctx, res);
|
||||
m_vertexBinding.initTex(ctx, res, 4, m_viewVertBlockBuf, icon.m_tex);
|
||||
m_vertexBinding.init(ctx, res, 4, *m_viewVertBlockBuf, icon.m_tex);
|
||||
return true;
|
||||
});
|
||||
TexShaderVert verts[] =
|
||||
@@ -20,7 +20,7 @@ IconView::IconView(ViewResources& res, View& parentView, Icon& icon)
|
||||
{{1, 1, 0}, icon.m_uvCoords[2]},
|
||||
{{1, 0, 0}, icon.m_uvCoords[3]},
|
||||
};
|
||||
m_vertexBinding.load(verts, sizeof(verts));
|
||||
m_vertexBinding.load<decltype(verts)>(verts);
|
||||
setBackground(zeus::CColor::skBlue);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user