mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 13:05:11 +00:00
Metal backend, part 4
This commit is contained in:
parent
8bd104f783
commit
cb0856f635
1 changed files with 2 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue