APEX Framework: UserRenderIndexBuffer.h Source File

NVIDIA APEX

UserRenderIndexBuffer.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_INDEX_BUFFER_H
00013 #define USER_RENDER_INDEX_BUFFER_H
00014 
00020 #include "ApexUsingNamespace.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 UserRenderIndexBuffer
00038 {
00039 public:
00040     virtual     ~UserRenderIndexBuffer() {}
00041 
00044     virtual bool getInteropResourceHandle(CUgraphicsResource& handle)
00045 #if APEX_DEFAULT_NO_INTEROP_IMPLEMENTATION
00046     {
00047         PX_UNUSED(&handle);
00048         return false;
00049     }
00050 #else
00051     = 0;
00052 #endif
00053 
00055     //  the source data type is assumed to be the same as what was defined in the descriptor.
00056     virtual void writeBuffer(const void* srcData, uint32_t srcStride, uint32_t firstDestElement, uint32_t numElements) = 0;
00057 };
00058 
00059 PX_POP_PACK
00060 
00061 }
00062 } // namespace nvidia::apex
00063 
00064 #endif // USER_RENDER_INDEX_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.