Version
menu_open
link

include/AK/SoundEngine/Common/IAkProcessorFeatures.h

Go to the documentation of this file.
00001 /*******************************************************************************
00002 The content of this file includes portions of the AUDIOKINETIC Wwise Technology
00003 released in source code form as part of the SDK installer package.
00004 
00005 Commercial License Usage
00006 
00007 Licensees holding valid commercial licenses to the AUDIOKINETIC Wwise Technology
00008 may use this file in accordance with the end user license agreement provided 
00009 with the software or, alternatively, in accordance with the terms contained in a
00010 written agreement between you and Audiokinetic Inc.
00011 
00012 Apache License Usage
00013 
00014 Alternatively, this file may be used under the Apache License, Version 2.0 (the 
00015 "Apache License"); you may not use this file except in compliance with the 
00016 Apache License. You may obtain a copy of the Apache License at 
00017 http://www.apache.org/licenses/LICENSE-2.0.
00018 
00019 Unless required by applicable law or agreed to in writing, software distributed
00020 under the Apache License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
00021 OR CONDITIONS OF ANY KIND, either express or implied. See the Apache License for
00022 the specific language governing permissions and limitations under the License.
00023 
00024   Version: <VERSION>  Build: <BUILDNUMBER>
00025   Copyright (c) <COPYRIGHTYEAR> Audiokinetic Inc.
00026 *******************************************************************************/
00027 
00028 /// \file 
00029 /// Runtime processor supported features detection interface.
00030 
00031 #pragma once
00032 
00033 #include <AK/SoundEngine/Common/AkTypes.h>
00034 
00035 namespace AK
00036 {   
00037     /// SIMD instruction sets.
00038     enum AkSIMDProcessorSupport
00039     {
00040         AK_SIMD_SSE = 1<<0,     ///< SSE support.   
00041         AK_SIMD_SSE2 = 1<<1,    ///< SSE2 support.
00042         AK_SIMD_SSE3 = 1<<2,    ///< SSE3 support.
00043         AK_SIMD_SSSE3 = 1<<3    ///< SSSE3 support.
00044     };
00045 
00046     /// Runtime processor supported features detection interface. Allows to query specific processor features
00047     /// to chose optimal implementation.
00048     /// \warning The functions in this interface are not thread-safe, unless stated otherwise.
00049     class IAkProcessorFeatures
00050     {
00051     protected:
00052         /// Virtual destructor on interface to avoid warnings.
00053         virtual ~IAkProcessorFeatures(){}
00054 
00055     public:
00056         /// Query for specific SIMD instruction set support. See AkSIMDProcessorSupport for options.
00057         virtual bool GetSIMDSupport(AkSIMDProcessorSupport in_eSIMD) = 0;
00058         /// Query L2 cache size to optimize prefetching techniques where necessary.
00059         virtual AkUInt32 GetCacheSize() = 0;
00060         /// Query cache line size to optimize prefetching techniques where necessary.
00061         virtual AkUInt32 GetCacheLineSize() = 0;
00062     };
00063 }

Cette page a-t-elle été utile ?

Besoin d'aide ?

Des questions ? Des problèmes ? Besoin de plus d'informations ? Contactez-nous, nous pouvons vous aider !

Visitez notre page d'Aide

Décrivez-nous de votre projet. Nous sommes là pour vous aider.

Enregistrez votre projet et nous vous aiderons à démarrer sans aucune obligation !

Partir du bon pied avec Wwise