Path: blob/master/thirdparty/metal-cpp/Metal/MTL4StitchedFunctionDescriptor.hpp
21066 views
//-------------------------------------------------------------------------------------------------------------------------------------------------------------1//2// Metal/MTL4StitchedFunctionDescriptor.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#include "../Foundation/Foundation.hpp"23#include "MTL4FunctionDescriptor.hpp"24#include "MTLDefines.hpp"25#include "MTLHeaderBridge.hpp"26#include "MTLPrivate.hpp"2728namespace MTL429{30class StitchedFunctionDescriptor;31}3233namespace MTL34{35class FunctionStitchingGraph;36}3738namespace MTL439{40class StitchedFunctionDescriptor : public NS::Copying<StitchedFunctionDescriptor, FunctionDescriptor>41{42public:43static StitchedFunctionDescriptor* alloc();4445NS::Array* functionDescriptors() const;4647MTL::FunctionStitchingGraph* functionGraph() const;4849StitchedFunctionDescriptor* init();5051void setFunctionDescriptors(const NS::Array* functionDescriptors);5253void setFunctionGraph(const MTL::FunctionStitchingGraph* functionGraph);54};5556}57_MTL_INLINE MTL4::StitchedFunctionDescriptor* MTL4::StitchedFunctionDescriptor::alloc()58{59return NS::Object::alloc<MTL4::StitchedFunctionDescriptor>(_MTL_PRIVATE_CLS(MTL4StitchedFunctionDescriptor));60}6162_MTL_INLINE NS::Array* MTL4::StitchedFunctionDescriptor::functionDescriptors() const63{64return Object::sendMessage<NS::Array*>(this, _MTL_PRIVATE_SEL(functionDescriptors));65}6667_MTL_INLINE MTL::FunctionStitchingGraph* MTL4::StitchedFunctionDescriptor::functionGraph() const68{69return Object::sendMessage<MTL::FunctionStitchingGraph*>(this, _MTL_PRIVATE_SEL(functionGraph));70}7172_MTL_INLINE MTL4::StitchedFunctionDescriptor* MTL4::StitchedFunctionDescriptor::init()73{74return NS::Object::init<MTL4::StitchedFunctionDescriptor>();75}7677_MTL_INLINE void MTL4::StitchedFunctionDescriptor::setFunctionDescriptors(const NS::Array* functionDescriptors)78{79Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(setFunctionDescriptors_), functionDescriptors);80}8182_MTL_INLINE void MTL4::StitchedFunctionDescriptor::setFunctionGraph(const MTL::FunctionStitchingGraph* functionGraph)83{84Object::sendMessage<void>(this, _MTL_PRIVATE_SEL(setFunctionGraph_), functionGraph);85}868788