APEX Framework: UserRenderBoneBufferDesc.h Source File

NVIDIA APEX

UserRenderBoneBufferDesc.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_BONE_BUFFER_DESC_H
00013 #define USER_RENDER_BONE_BUFFER_DESC_H
00014 
00020 #include "RenderDataFormat.h"
00021 #include "UserRenderResourceManager.h"
00022 
00023 namespace nvidia
00024 {
00025 namespace apex
00026 {
00027 
00028 PX_PUSH_PACK_DEFAULT
00029 
00033 struct RenderBoneSemantic
00034 {
00038     enum Enum
00039     {
00040         POSE = 0,       
00041         PREVIOUS_POSE,  
00042         NUM_SEMANTICS   
00043     };
00044 };
00045 
00046 
00047 
00054 class UserRenderBoneBufferDesc
00055 {
00056 public:
00057     UserRenderBoneBufferDesc(void)
00058     {
00059         maxBones = 0;
00060         hint     = RenderBufferHint::STATIC;
00061         for (uint32_t i = 0; i < RenderBoneSemantic::NUM_SEMANTICS; i++)
00062         {
00063             buffersRequest[i] = RenderDataFormat::UNSPECIFIED;
00064         }
00065     }
00066 
00070     bool isValid(void) const
00071     {
00072         uint32_t numFailed = 0;
00073         return (numFailed == 0);
00074     }
00075 
00076 public:
00080     uint32_t                maxBones;
00081 
00085     RenderBufferHint::Enum  hint;
00086 
00092     RenderDataFormat::Enum  buffersRequest[RenderBoneSemantic::NUM_SEMANTICS];
00093 };
00094 
00095 PX_POP_PACK
00096 
00097 }
00098 } // end namespace nvidia::apex
00099 
00100 #endif

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.