Path: blob/master/thirdparty/metal-cpp/Metal/MTL4FunctionDescriptor.hpp
21066 views
//-------------------------------------------------------------------------------------------------------------------------------------------------------------1//2// Metal//MTL4FunctionDescriptor.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 "MTLDefines.hpp"24#include "MTLHeaderBridge.hpp"25#include "MTLPrivate.hpp"2627namespace MTL428{29class FunctionDescriptor;3031class FunctionDescriptor : public NS::Copying<FunctionDescriptor>32{33public:34static FunctionDescriptor* alloc();3536FunctionDescriptor* init();37};3839}40_MTL_INLINE MTL4::FunctionDescriptor* MTL4::FunctionDescriptor::alloc()41{42return NS::Object::alloc<MTL4::FunctionDescriptor>(_MTL_PRIVATE_CLS(MTL4FunctionDescriptor));43}4445_MTL_INLINE MTL4::FunctionDescriptor* MTL4::FunctionDescriptor::init()46{47return NS::Object::init<MTL4::FunctionDescriptor>();48}495051