Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef USER_RENDER_SURFACE_BUFFER_H
00013 #define USER_RENDER_SURFACE_BUFFER_H
00014
00020 #include "UserRenderSurfaceBufferDesc.h"
00021
00025 typedef struct CUgraphicsResource_st* CUgraphicsResource;
00026
00027 namespace nvidia
00028 {
00029 namespace apex
00030 {
00031
00032 PX_PUSH_PACK_DEFAULT
00033
00037 class RenderSurfaceBufferData {};
00038
00042 class UserRenderSurfaceBuffer
00043 {
00044 public:
00045 virtual ~UserRenderSurfaceBuffer() {}
00046
00062 virtual void writeBuffer(const void* srcData, uint32_t srcPitch, uint32_t srcHeight, uint32_t dstX, uint32_t dstY, uint32_t dstZ, uint32_t width, uint32_t height, uint32_t depth) = 0;
00063
00064
00067 virtual bool getInteropResourceHandle(CUgraphicsResource& handle)
00068 #if APEX_DEFAULT_NO_INTEROP_IMPLEMENTATION
00069 {
00070 PX_UNUSED(&handle);
00071 return false;
00072 }
00073 #else
00074 = 0;
00075 #endif
00076
00077 };
00078
00079 PX_POP_PACK
00080
00081 }
00082 }
00083
00084 #endif // USER_RENDER_SURFACE_BUFFER_H