Path: blob/master/thirdparty/metal-cpp/MetalFX/MTL4FXTemporalDenoisedScaler.hpp
21807 views
//-------------------------------------------------------------------------------------------------------------------------------------------------------------1//2// MetalFX/MTLFXTemporalDenoisedScaler.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 "MTLFXTemporalDenoisedScaler.hpp"28#include "../Metal/Metal.hpp"2930#include <simd/simd.h>3132//-------------------------------------------------------------------------------------------------------------------------------------------------------------3334namespace MTL4FX35{36class TemporalDenoisedScaler : public NS::Referencing< TemporalDenoisedScaler, MTLFX::TemporalDenoisedScalerBase >37{38public:39void encodeToCommandBuffer(MTL4::CommandBuffer* commandBuffer);40};41}4243//-------------------------------------------------------------------------------------------------------------------------------------------------------------4445_MTLFX_INLINE void MTL4FX::TemporalDenoisedScaler::encodeToCommandBuffer( MTL4::CommandBuffer* commandBuffer )46{47return NS::Object::sendMessage< void >( this, _MTLFX_PRIVATE_SEL( encodeToCommandBuffer_ ), commandBuffer );48}495051