Path: blob/master/thirdparty/metal-cpp/MetalFX/MTLFXDefines.hpp
21155 views
//-------------------------------------------------------------------------------------------------------------------------------------------------------------1//2// MetalFX/MTLFXDefines.hpp3//4// Copyright 2020-2024 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 "../Foundation/NSDefines.hpp"2526//-------------------------------------------------------------------------------------------------------------------------------------------------------------2728#define _MTLFX_EXPORT _NS_EXPORT29#define _MTLFX_EXTERN _NS_EXTERN30#define _MTLFX_INLINE _NS_INLINE31#define _MTLFX_PACKED _NS_PACKED3233#define _MTLFX_CONST( type, name ) _NS_CONST( type, name )34#define _MTLFX_ENUM( type, name ) _NS_ENUM( type, name )35#define _MTLFX_OPTIONS( type, name ) _NS_OPTIONS( type, name )3637#define _MTLFX_VALIDATE_SIZE( mtlfx, name ) _NS_VALIDATE_SIZE( mtlfx, name )38#define _MTLFX_VALIDATE_ENUM( mtlfx, name ) _NS_VALIDATE_ENUM( mtlfx, name )3940//-------------------------------------------------------------------------------------------------------------------------------------------------------------414243