1717
1818namespace impeller {
1919
20- static bool ConfigureAttachment (const RenderPassAttachment & desc,
20+ static bool ConfigureAttachment (const Attachment & desc,
2121 MTLRenderPassAttachmentDescriptor * attachment) {
2222 if (!desc.texture ) {
2323 return false ;
@@ -30,7 +30,7 @@ static bool ConfigureAttachment(const RenderPassAttachment& desc,
3030}
3131
3232static bool ConfigureColorAttachment (
33- const RenderPassColorAttachment & desc,
33+ const ColorAttachment & desc,
3434 MTLRenderPassColorAttachmentDescriptor * attachment) {
3535 if (!ConfigureAttachment (desc, attachment)) {
3636 return false ;
@@ -40,7 +40,7 @@ static bool ConfigureColorAttachment(
4040}
4141
4242static bool ConfigureDepthAttachment (
43- const RenderPassDepthAttachment & desc,
43+ const DepthAttachment & desc,
4444 MTLRenderPassDepthAttachmentDescriptor * attachment) {
4545 if (!ConfigureAttachment (desc, attachment)) {
4646 return false ;
@@ -50,7 +50,7 @@ static bool ConfigureDepthAttachment(
5050}
5151
5252static bool ConfigureStencilAttachment (
53- const RenderPassStencilAttachment & desc,
53+ const StencilAttachment & desc,
5454 MTLRenderPassStencilAttachmentDescriptor * attachment) {
5555 if (!ConfigureAttachment (desc, attachment)) {
5656 return false ;
@@ -61,7 +61,7 @@ static bool ConfigureStencilAttachment(
6161
6262// TODO(csg): Move this to formats_mtl.h
6363static MTLRenderPassDescriptor * ToMTLRenderPassDescriptor (
64- const RenderPassDescriptor & desc) {
64+ const RenderTarget & desc) {
6565 auto result = [MTLRenderPassDescriptor renderPassDescriptor ];
6666
6767 const auto & colors = desc.GetColorAttachments ();
@@ -93,7 +93,7 @@ static bool ConfigureStencilAttachment(
9393}
9494
9595RenderPassMTL::RenderPassMTL (id <MTLCommandBuffer > buffer,
96- const RenderPassDescriptor & desc)
96+ const RenderTarget & desc)
9797 : buffer_(buffer),
9898 desc_ (ToMTLRenderPassDescriptor(desc)),
9999 transients_buffer_(HostBuffer::Create()) {
0 commit comments