1 | /* |
2 | * Copyright (c) 2008-2015, NVIDIA CORPORATION. All rights reserved. |
3 | * |
4 | * NVIDIA CORPORATION and its licensors retain all intellectual property |
5 | * and proprietary rights in and to this software, related documentation |
6 | * and any modifications thereto. Any use, reproduction, disclosure or |
7 | * distribution of this software and related documentation without an express |
8 | * license agreement from NVIDIA CORPORATION is strictly prohibited. |
9 | */ |
10 | // Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved. |
11 | // Copyright (c) 2001-2004 NovodeX AG. All rights reserved. |
12 | |
13 | |
14 | #ifndef PX_COOKING_GAUSS_MAP_LIMIT_H |
15 | #define PX_COOKING_GAUSS_MAP_LIMIT_H |
16 | |
17 | #include "cooking/PxCooking.h" |
18 | #include "foundation/PxAssert.h" |
19 | |
20 | #ifndef PX_DOXYGEN |
21 | namespace physx |
22 | { |
23 | #endif |
24 | |
25 | PX_FORCE_INLINE PxU32 PxGetGaussMapVertexLimitForPlatform(PxPlatform::Enum targetPlatform) |
26 | { |
27 | //TODO: find optimal values for these empirically!! |
28 | switch(targetPlatform) |
29 | { |
30 | case PxPlatform::eXENON: |
31 | return 128; |
32 | case PxPlatform::ePLAYSTATION3: |
33 | return 128; |
34 | case PxPlatform::ePC: |
35 | return 32; |
36 | case PxPlatform::eARM: |
37 | return 32; |
38 | case PxPlatform::eWIIU: |
39 | return 128; |
40 | default: |
41 | PX_ALWAYS_ASSERT_MESSAGE("Unexpected platform in PxGetGaussMapVertexLimitForPlatform!" ); |
42 | return 0; |
43 | } |
44 | } |
45 | |
46 | #ifndef PX_DOXYGEN |
47 | } // namespace physx |
48 | #endif |
49 | |
50 | #endif |
51 | |