| 2812 | } |
| 2813 | |
| 2814 | ITr2InstanceData::InstanceData TriGeometryRes::GetInstanceData( unsigned int bufferIndex, float screenSize ) const |
| 2815 | { |
| 2816 | auto mesh = GetMeshData( bufferIndex ); |
| 2817 | |
| 2818 | if( !mesh ) |
| 2819 | { |
| 2820 | static Tr2BufferAL nullVB; |
| 2821 | return { nullVB }; |
| 2822 | } |
| 2823 | |
| 2824 | auto lod = GetMeshLod( bufferIndex, screenSize ); |
| 2825 | return { |
| 2826 | lod->m_vertexAllocation.GetBuffer(), lod->m_vertexAllocation.GetOffset(), mesh->m_bytesPerVertex, lod->m_vertexCount |
| 2827 | }; |
| 2828 | } |
| 2829 | |
| 2830 | // -------------------------------------------------------------------------------------- |
| 2831 | // Description: |
no test coverage detected