mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-01 18:42:40 +00:00
Metal backend, part 2
This commit is contained in:
parent
bd676bde64
commit
fe2cf4b508
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ void FurnaceGUIRenderMetal::clear(ImVec4 color) {
|
|||
|
||||
priv->cmdBuf=[priv->cmdQueue commandBuffer];
|
||||
priv->renderPass.colorAttachments[0].clearColor=MTLClearColorMake(color.x,color.y,color.z,color.w);
|
||||
priv->renderPass.colorAttachments[0].texture=drawable.texture;
|
||||
priv->renderPass.colorAttachments[0].texture=priv->drawable.texture;
|
||||
priv->renderPass.colorAttachments[0].loadAction=MTLLoadActionClear;
|
||||
priv->renderPass.colorAttachments[0].storeAction=MTLStoreActionStore;
|
||||
priv->renderEncoder=[commandBuffer renderCommandEncoderWithDescriptor:renderPassDescriptor];
|
||||
|
|
Loading…
Reference in a new issue