APEX Framework: UserRenderSurfaceBuffer.h Source File

NVIDIA APEX

UserRenderSurfaceBuffer.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_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 } // end namespace nvidia::apex
00083 
00084 #endif // USER_RENDER_SURFACE_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.