| 66 | } |
| 67 | |
| 68 | HRESULT CompositeEffect::GetSource(UINT index, awge::IGraphicsEffectSource** source) noexcept try |
| 69 | { |
| 70 | if (source == nullptr) [[unlikely]] |
| 71 | { |
| 72 | return E_INVALIDARG; |
| 73 | } |
| 74 | |
| 75 | winrt::copy_to_abi(Sources.at(index), *reinterpret_cast<void**>(source)); |
| 76 | return S_OK; |
| 77 | } |
| 78 | catch (...) |
| 79 | { |
| 80 | return winrt::to_hresult(); |
| 81 | } |
| 82 | |
| 83 | HRESULT CompositeEffect::GetSourceCount(UINT* count) noexcept |
| 84 | { |
nothing calls this directly
no outgoing calls
no test coverage detected