PxGpuCopyDesc.h
Go to the documentation of this file.
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 
11 #ifndef PX_GPU_COPY_DESC_H
12 #define PX_GPU_COPY_DESC_H
13 
14 #include "foundation/Px.h"
15 
16 #ifndef PX_DOXYGEN
17 namespace physx
18 {
19 #endif
20 
22 
31 {
35  enum CopyType
36  {
40  DeviceMemset32
41  };
42 
43  size_t dest;
44  size_t source;
45  size_t bytes;
47 
52  PX_INLINE bool isValid()
53  {
54  bool ok = true;
55  ok &= ((dest & 0x3) == 0);
56  ok &= ((type == DeviceMemset32) || (source & 0x3) == 0);
57  ok &= ((bytes & 0x3) == 0);
58  return ok;
59  }
60 };
61 
63 
64 #ifndef PX_DOXYGEN
65 } // end physx namespace
66 #endif
67 
68 #endif


Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com