@@ -181,7 +181,7 @@ constexpr size_t BytesPerPixelForPixelFormat(PixelFormat format) {
181
181
// / ```
182
182
// /
183
183
// / The default blend mode is 1 - source alpha.
184
- struct PipelineColorAttachment {
184
+ struct ColorAttachmentDescriptor {
185
185
PixelFormat format = PixelFormat::kUnknown ;
186
186
bool blending_enabled = false ;
187
187
@@ -196,7 +196,7 @@ struct PipelineColorAttachment {
196
196
std::underlying_type_t <ColorWriteMask> write_mask =
197
197
static_cast <uint64_t >(ColorWriteMask::kAll );
198
198
199
- constexpr bool operator ==(const PipelineColorAttachment & o) const {
199
+ constexpr bool operator ==(const ColorAttachmentDescriptor & o) const {
200
200
return format == o.format && //
201
201
blending_enabled == o.blending_enabled && //
202
202
src_color_blend_factor == o.src_color_blend_factor && //
@@ -254,7 +254,7 @@ enum class StencilOperation {
254
254
kDecrementWrap ,
255
255
};
256
256
257
- struct PipelineDepthAttachment {
257
+ struct DepthAttachmentDescriptor {
258
258
// ----------------------------------------------------------------------------
259
259
// / Indicates how to compare the value with that in the depth buffer.
260
260
// /
@@ -264,7 +264,7 @@ struct PipelineDepthAttachment {
264
264
// /
265
265
bool depth_write_enabled = false ;
266
266
267
- constexpr bool operator ==(const PipelineDepthAttachment & o) const {
267
+ constexpr bool operator ==(const DepthAttachmentDescriptor & o) const {
268
268
return depth_compare == o.depth_compare &&
269
269
depth_write_enabled == o.depth_write_enabled ;
270
270
}
@@ -274,7 +274,7 @@ struct PipelineDepthAttachment {
274
274
}
275
275
};
276
276
277
- struct PipelineStencilAttachment {
277
+ struct StencilAttachmentDescriptor {
278
278
// ----------------------------------------------------------------------------
279
279
// / Indicates the operation to perform between the reference value and the
280
280
// / value in the stencil buffer. Both values have the read_mask applied to
@@ -305,7 +305,7 @@ struct PipelineStencilAttachment {
305
305
// /
306
306
uint32_t write_mask = ~0 ;
307
307
308
- constexpr bool operator ==(const PipelineStencilAttachment & o) const {
308
+ constexpr bool operator ==(const StencilAttachmentDescriptor & o) const {
309
309
return stencil_compare == o.stencil_compare &&
310
310
stencil_failure == o.stencil_failure &&
311
311
depth_failure == o.depth_failure &&
@@ -344,17 +344,17 @@ struct StencilAttachment : public Attachment {
344
344
namespace std {
345
345
346
346
template <>
347
- struct hash <impeller::PipelineDepthAttachment > {
347
+ struct hash <impeller::DepthAttachmentDescriptor > {
348
348
constexpr std::size_t operator ()(
349
- const impeller::PipelineDepthAttachment & des) const {
349
+ const impeller::DepthAttachmentDescriptor & des) const {
350
350
return des.GetHash ();
351
351
}
352
352
};
353
353
354
354
template <>
355
- struct hash <impeller::PipelineStencilAttachment > {
355
+ struct hash <impeller::StencilAttachmentDescriptor > {
356
356
constexpr std::size_t operator ()(
357
- const impeller::PipelineStencilAttachment & des) const {
357
+ const impeller::StencilAttachmentDescriptor & des) const {
358
358
return des.GetHash ();
359
359
}
360
360
};
0 commit comments