UserRenderInstanceBuffer.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_INSTANCE_BUFFER_H 00013 #define USER_RENDER_INSTANCE_BUFFER_H 00014 00020 #include "RenderBufferData.h" 00021 #include "UserRenderInstanceBufferDesc.h" 00022 00026 typedef struct CUgraphicsResource_st* CUgraphicsResource; 00027 00028 namespace nvidia 00029 { 00030 namespace apex 00031 { 00032 00033 PX_PUSH_PACK_DEFAULT 00037 class PX_DEPRECATED RenderInstanceBufferData : public RenderBufferData<RenderInstanceSemantic, RenderInstanceSemantic::Enum> {}; 00038 00042 class UserRenderInstanceBuffer 00043 { 00044 public: 00045 virtual ~UserRenderInstanceBuffer() {} 00046 00049 virtual bool getInteropResourceHandle(CUgraphicsResource& handle) 00050 #if APEX_DEFAULT_NO_INTEROP_IMPLEMENTATION 00051 { 00052 PX_UNUSED(&handle); 00053 return false; 00054 } 00055 #else 00056 = 0; 00057 #endif 00058 00069 virtual void writeBuffer(const void* data, uint32_t firstInstance, uint32_t numInstances) 00070 { 00071 PX_UNUSED(data); 00072 PX_UNUSED(firstInstance); 00073 PX_UNUSED(numInstances); 00074 } 00075 }; 00076 00077 PX_POP_PACK 00078 00079 } 00080 } // end namespace nvidia::apex 00081 00082 #endif // USER_RENDER_INSTANCE_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.