@@ -181,7 +181,7 @@ constexpr size_t BytesPerPixelForPixelFormat(PixelFormat format) {
181181// / ```
182182// /
183183// / The default blend mode is 1 - source alpha.
184- struct PipelineColorAttachment {
184+ struct ColorAttachmentDescriptor {
185185 PixelFormat format = PixelFormat::kUnknown ;
186186 bool blending_enabled = false ;
187187
@@ -196,7 +196,7 @@ struct PipelineColorAttachment {
196196 std::underlying_type_t <ColorWriteMask> write_mask =
197197 static_cast <uint64_t >(ColorWriteMask::kAll );
198198
199- constexpr bool operator ==(const PipelineColorAttachment & o) const {
199+ constexpr bool operator ==(const ColorAttachmentDescriptor & o) const {
200200 return format == o.format && //
201201 blending_enabled == o.blending_enabled && //
202202 src_color_blend_factor == o.src_color_blend_factor && //
@@ -254,7 +254,7 @@ enum class StencilOperation {
254254 kDecrementWrap ,
255255};
256256
257- struct PipelineDepthAttachment {
257+ struct DepthAttachmentDescriptor {
258258 // ----------------------------------------------------------------------------
259259 // / Indicates how to compare the value with that in the depth buffer.
260260 // /
@@ -264,7 +264,7 @@ struct PipelineDepthAttachment {
264264 // /
265265 bool depth_write_enabled = false ;
266266
267- constexpr bool operator ==(const PipelineDepthAttachment & o) const {
267+ constexpr bool operator ==(const DepthAttachmentDescriptor & o) const {
268268 return depth_compare == o.depth_compare &&
269269 depth_write_enabled == o.depth_write_enabled ;
270270 }
@@ -274,7 +274,7 @@ struct PipelineDepthAttachment {
274274 }
275275};
276276
277- struct PipelineStencilAttachment {
277+ struct StencilAttachmentDescriptor {
278278 // ----------------------------------------------------------------------------
279279 // / Indicates the operation to perform between the reference value and the
280280 // / value in the stencil buffer. Both values have the read_mask applied to
@@ -305,7 +305,7 @@ struct PipelineStencilAttachment {
305305 // /
306306 uint32_t write_mask = ~0 ;
307307
308- constexpr bool operator ==(const PipelineStencilAttachment & o) const {
308+ constexpr bool operator ==(const StencilAttachmentDescriptor & o) const {
309309 return stencil_compare == o.stencil_compare &&
310310 stencil_failure == o.stencil_failure &&
311311 depth_failure == o.depth_failure &&
@@ -344,17 +344,17 @@ struct StencilAttachment : public Attachment {
344344namespace std {
345345
346346template <>
347- struct hash <impeller::PipelineDepthAttachment > {
347+ struct hash <impeller::DepthAttachmentDescriptor > {
348348 constexpr std::size_t operator ()(
349- const impeller::PipelineDepthAttachment & des) const {
349+ const impeller::DepthAttachmentDescriptor & des) const {
350350 return des.GetHash ();
351351 }
352352};
353353
354354template <>
355- struct hash <impeller::PipelineStencilAttachment > {
355+ struct hash <impeller::StencilAttachmentDescriptor > {
356356 constexpr std::size_t operator ()(
357- const impeller::PipelineStencilAttachment & des) const {
357+ const impeller::StencilAttachmentDescriptor & des) const {
358358 return des.GetHash ();
359359 }
360360};
0 commit comments