SpuSampleTask.h

Go to the documentation of this file.
00001 /*
00002 Bullet Continuous Collision Detection and Physics Library, Copyright (c) 2007 Erwin Coumans
00003 
00004 This software is provided 'as-is', without any express or implied warranty.
00005 In no event will the authors be held liable for any damages arising from the use of this software.
00006 Permission is granted to anyone to use this software for any purpose, 
00007 including commercial applications, and to alter it and redistribute it freely, 
00008 subject to the following restrictions:
00009 
00010 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
00011 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
00012 3. This notice may not be removed or altered from any source distribution.
00013 
00014 */
00015 
00016 #ifndef SPU_SAMPLE_TASK_H
00017 #define SPU_SAMPLE_TASK_H
00018 
00019 #include "../PlatformDefinitions.h"
00020 #include "LinearMath/btScalar.h"
00021 #include "LinearMath/btVector3.h"
00022 #include "LinearMath/btMatrix3x3.h"
00023 
00024 #include "LinearMath/btAlignedAllocator.h"
00025 
00026 
00027 enum
00028 {
00029         CMD_SAMPLE_INTEGRATE_BODIES = 1,
00030         CMD_SAMPLE_PREDICT_MOTION_BODIES
00031 };
00032 
00033 
00034 
00035 ATTRIBUTE_ALIGNED16(struct) SpuSampleTaskDesc
00036 {
00037         BT_DECLARE_ALIGNED_ALLOCATOR();
00038 
00039         uint32_t                                                m_sampleCommand;
00040         uint32_t                                                m_taskId;
00041 
00042         uint64_t        m_mainMemoryPtr;
00043         int                     m_sampleValue;
00044         
00045 
00046 };
00047 
00048 
00049 void    processSampleTask(void* userPtr, void* lsMemory);
00050 void*   createSampleLocalStoreMemory();
00051 
00052 
00053 #endif //SPU_SAMPLE_TASK_H
00054