Skip to content

Commit

Permalink
Update Render.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
gadirom committed Nov 23, 2022
1 parent 86ea315 commit 81359e5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ public extension Render{
texture: MTLTextureContainer? = nil,
loadAction: MTLLoadAction? = nil,
storeAction: MTLStoreAction? = nil,
clearColor: MTLClearColor? = nil) -> Render{
mtlClearColor: MTLClearColor? = nil) -> Render{
var _loadAction: Binding<MTLLoadAction>? = nil
var _storeAction: Binding<MTLStoreAction>? = nil
var _clearColor: Binding<MTLClearColor>? = nil
Expand All @@ -581,7 +581,7 @@ public extension Render{
if let storeAction = storeAction {
_storeAction = Binding<MTLStoreAction>.constant(storeAction)
}
if let clearColor = clearColor {
if let clearColor = mtlClearColor {
_clearColor = Binding<MTLClearColor>.constant(clearColor)
}
return colorAttachement(index,
Expand Down Expand Up @@ -610,7 +610,7 @@ public extension Render{
texture: texture,
loadAction: loadAction,
storeAction: storeAction,
clearColor: _clearColor)
mtlClearColor: _clearColor)
}
/// Adds the render pipeline color attachment to a Render component.
/// - Parameter descriptor: The descriptor for the attachement to add.
Expand Down

0 comments on commit 81359e5

Please sign in to comment.