Metal backend, part 4

This commit is contained in:
tildearrow 2024-04-12 00:34:55 -05:00
parent 8bd104f783
commit cb0856f635

View file

@ -105,7 +105,7 @@ void FurnaceGUIRenderMetal::clear(ImVec4 color) {
priv->renderPass.colorAttachments[0].texture=priv->drawable.texture;
priv->renderPass.colorAttachments[0].loadAction=MTLLoadActionClear;
priv->renderPass.colorAttachments[0].storeAction=MTLStoreActionStore;
priv->renderEncoder=[priv->cmdBuf renderCommandEncoderWithDescriptor:renderPassDescriptor];
priv->renderEncoder=[priv->cmdBuf renderCommandEncoderWithDescriptor:priv->renderPass];
}
bool FurnaceGUIRenderMetal::newFrame() {
@ -113,7 +113,7 @@ bool FurnaceGUIRenderMetal::newFrame() {
}
void FurnaceGUIRenderMetal::createFontsTexture() {
ImGui_ImplMetal_CreateFontsTexture(priv->context);
ImGui_ImplMetal_CreateFontsTexture(priv->context.device);
}
void FurnaceGUIRenderMetal::destroyFontsTexture() {