Path: blob/master/thirdparty/metal-cpp/MetalFX/MTL4FXFrameInterpolator.hpp
21152 views
//-------------------------------------------------------------------------------------------------------------------------------------------------------------1//2// MetalFX/MTL4FXFrameInterpolator.hpp3//4// Copyright 2020-2025 Apple Inc.5//6// Licensed under the Apache License, Version 2.0 (the "License");7// you may not use this file except in compliance with the License.8// You may obtain a copy of the License at9//10// http://www.apache.org/licenses/LICENSE-2.011//12// Unless required by applicable law or agreed to in writing, software13// distributed under the License is distributed on an "AS IS" BASIS,14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.15// See the License for the specific language governing permissions and16// limitations under the License.17//18//-------------------------------------------------------------------------------------------------------------------------------------------------------------1920#pragma once2122//-------------------------------------------------------------------------------------------------------------------------------------------------------------2324#include "MTLFXDefines.hpp"25#include "MTLFXPrivate.hpp"2627#include "MTLFXFrameInterpolator.hpp"28#include "../Metal/Metal.hpp"2930//-------------------------------------------------------------------------------------------------------------------------------------------------------------3132namespace MTL4FX33{34class FrameInterpolator : public NS::Referencing<FrameInterpolator, MTLFX::FrameInterpolatorBase>35{36public:37void encodeToCommandBuffer(MTL4::CommandBuffer* commandBuffer);38};39}4041//-------------------------------------------------------------------------------------------------------------------------------------------------------------4243_MTLFX_INLINE void MTL4FX::FrameInterpolator::encodeToCommandBuffer(MTL4::CommandBuffer* commandBuffer)44{45return NS::Object::sendMessage< void >( this, _MTLFX_PRIVATE_SEL( encodeToCommandBuffer_ ), commandBuffer );46}474849