| Flutter Impeller |

Public Member Functions | List of all members
impeller::ContentContextOptions::Hash Struct Reference

`#include <content_context.h>`

## Public Member Functions
constexpr uint64_t | operator() (const ContentContextOptions &o) const

## Detailed Description

Definition at line 287 of file content_context.h.

## Member Function Documentation

## ◆ operator()()

constexpr uint64_t impeller::ContentContextOptions::Hash::operator() | ( | const ContentContextOptions & | o | ) | const
| inline constexpr

Definition at line 288 of file content_context.h.

288 {
289 static_assert(sizeof(o.sample_count) == 1);
290 static_assert(sizeof(o.blend_mode) == 1);
291 static_assert(sizeof(o.sample_count) == 1);
292 static_assert(sizeof(o.stencil_compare) == 1);
293 static_assert(sizeof(o.stencil_operation) == 1);
294 static_assert(sizeof(o.primitive_type) == 1);
295 static_assert(sizeof(o.color_attachment_pixel_format) == 1);
296
297 return (o.is_for_rrect_blur_clear ? 1llu : 0llu) << 0 |
298 (o.wireframe ? 1llu : 0llu) << 1 |
299 (o.has_stencil_attachment ? 1llu : 0llu) << 2 |
300 // enums
301 static_cast<uint64_t>(o.color_attachment_pixel_format) << 16 |
302 static_cast<uint64_t>(o.primitive_type) << 24 |
303 static_cast<uint64_t>(o.stencil_operation) << 32 |
304 static_cast<uint64_t>(o.stencil_compare) << 40 |
305 static_cast<uint64_t>(o.blend_mode) << 48 |
306 static_cast<uint64_t>(o.sample_count) << 56;
307 }

References impeller::ContentContextOptions::blend_mode, impeller::ContentContextOptions::color_attachment_pixel_format, impeller::ContentContextOptions::has_stencil_attachment, impeller::ContentContextOptions::is_for_rrect_blur_clear, impeller::ContentContextOptions::primitive_type, impeller::ContentContextOptions::sample_count, impeller::ContentContextOptions::stencil_compare, impeller::ContentContextOptions::stencil_operation, and impeller::ContentContextOptions::wireframe.

The documentation for this struct was generated from the following file:

- impeller/entity/contents/content_context.h