UserRenderVertexBuffer.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_VERTEX_BUFFER_H 00013 #define USER_RENDER_VERTEX_BUFFER_H 00014 00020 #include "RenderBufferData.h" 00021 #include "UserRenderVertexBufferDesc.h" 00022 00023 #include "ApexUsingNamespace.h" 00024 00028 typedef struct CUgraphicsResource_st* CUgraphicsResource; 00029 00030 namespace nvidia 00031 { 00032 namespace apex 00033 { 00034 00035 PX_PUSH_PACK_DEFAULT 00036 00040 class RenderVertexBufferData : public RenderBufferData<RenderVertexSemantic, RenderVertexSemantic::Enum>, public ModuleSpecificRenderBufferData 00041 { 00042 }; 00043 00047 class UserRenderVertexBuffer 00048 { 00049 public: 00050 virtual ~UserRenderVertexBuffer() {} 00051 00054 virtual bool getInteropResourceHandle(CUgraphicsResource& handle) 00055 #if APEX_DEFAULT_NO_INTEROP_IMPLEMENTATION 00056 { 00057 PX_UNUSED(&handle); 00058 return false; 00059 } 00060 #else 00061 = 0; 00062 #endif 00063 00075 virtual void writeBuffer(const nvidia::RenderVertexBufferData& data, uint32_t firstVertex, uint32_t numVertices) = 0; 00076 }; 00077 00078 PX_POP_PACK 00079 00080 } 00081 } // end namespace nvidia::apex 00082 00083 #endif // USER_RENDER_VERTEX_BUFFER_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.