| 12 | } |
| 13 | |
| 14 | HRESULT FloodEffect::GetNamedPropertyMapping(LPCWSTR name, UINT* index, awge::GRAPHICS_EFFECT_PROPERTY_MAPPING* mapping) noexcept |
| 15 | { |
| 16 | if (index == nullptr || mapping == nullptr) [[unlikely]] |
| 17 | { |
| 18 | return E_INVALIDARG; |
| 19 | } |
| 20 | |
| 21 | const std::wstring_view nameView(name); |
| 22 | if (nameView == L"Color") |
| 23 | { |
| 24 | *index = D2D1_FLOOD_PROP_COLOR; |
| 25 | *mapping = awge::GRAPHICS_EFFECT_PROPERTY_MAPPING_DIRECT; |
| 26 | |
| 27 | return S_OK; |
| 28 | } |
| 29 | |
| 30 | return E_INVALIDARG; |
| 31 | } |
| 32 | |
| 33 | HRESULT FloodEffect::GetPropertyCount(UINT* count) noexcept |
| 34 | { |
nothing calls this directly
no outgoing calls
no test coverage detected