Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
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 }
00081
00082 #endif // USER_RENDER_INSTANCE_BUFFER_H