UserRenderIndexBufferDesc.h
Go to the documentation of this file.
00001 /* 00002 * Copyright (c) 2008-2017, NVIDIA CORPORATION. All rights reserved. 00003 * 00004 * NVIDIA CORPORATION and its licensors retain all intellectual property 00005 * and proprietary rights in and to this software, related documentation 00006 * and any modifications thereto. Any use, reproduction, disclosure or 00007 * distribution of this software and related documentation without an express 00008 * license agreement from NVIDIA CORPORATION is strictly prohibited. 00009 */ 00010 00011 00012 #ifndef USER_RENDER_INDEX_BUFFER_DESC_H 00013 #define USER_RENDER_INDEX_BUFFER_DESC_H 00014 00020 #include "RenderDataFormat.h" 00021 #include "UserRenderResourceManager.h" 00022 00023 namespace physx 00024 { 00025 class PxCudaContextManager; 00026 }; 00027 00028 namespace nvidia 00029 { 00030 namespace apex 00031 { 00032 00033 PX_PUSH_PACK_DEFAULT 00034 00035 #if !PX_PS4 00036 #pragma warning(push) 00037 #pragma warning(disable:4121) 00038 #endif //!PX_PS4 00039 00043 class UserRenderIndexBufferDesc 00044 { 00045 public: 00046 UserRenderIndexBufferDesc(void) 00047 { 00048 registerInCUDA = false; 00049 interopContext = 0; 00050 maxIndices = 0; 00051 hint = RenderBufferHint::STATIC; 00052 format = RenderDataFormat::UNSPECIFIED; 00053 primitives = RenderPrimitiveType::TRIANGLES; 00054 } 00055 00059 bool isValid(void) const 00060 { 00061 uint32_t numFailed = 0; 00062 numFailed += (registerInCUDA && !interopContext) ? 1 : 0; 00063 return (numFailed == 0); 00064 } 00065 00066 public: 00067 00071 uint32_t maxIndices; 00072 00076 RenderBufferHint::Enum hint; 00077 00081 RenderDataFormat::Enum format; 00082 00086 RenderPrimitiveType::Enum primitives; 00087 00091 bool registerInCUDA; 00092 00099 PxCudaContextManager* interopContext; 00100 }; 00101 00102 #if !PX_PS4 00103 #pragma warning(pop) 00104 #endif //!PX_PS4 00105 00106 PX_POP_PACK 00107 00108 } 00109 } // end namespace nvidia::apex 00110 00111 #endif // USER_RENDER_INDEX_BUFFER_DESC_H
Generated on Fri Dec 15 2017 13:58:35 Copyright © 2012-2017 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved.