| 85 | } |
| 86 | |
| 87 | Tr2PerObjectData* Tr2PrimitiveSet::GetPerObjectData( ITriRenderBatchAccumulator* accumulator ) |
| 88 | { |
| 89 | Tr2PerObjectDataStandard* data = accumulator->Allocate<Tr2PerObjectDataStandard>(); |
| 90 | |
| 91 | if( !data ) |
| 92 | { |
| 93 | return nullptr; |
| 94 | } |
| 95 | |
| 96 | PerObjectPSData perObjectPSBuffer; |
| 97 | PerObjectVSData perObjectVSBuffer; |
| 98 | |
| 99 | // column_major for shaders |
| 100 | perObjectVSBuffer.WorldMat = Transpose( m_worldTransform ); |
| 101 | perObjectPSBuffer.WorldMat = Transpose( m_worldTransform ); |
| 102 | |
| 103 | data->CopyToVSFloatBuffer( perObjectVSBuffer ); |
| 104 | data->CopyToPSFloatBuffer( perObjectPSBuffer ); |
| 105 | |
| 106 | return data; |
| 107 | } |
| 108 | |
| 109 | void Tr2PrimitiveSet::UpdateTransform( void ) |
| 110 | { |
nothing calls this directly
no test coverage detected