mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
DX11 plugin: Use a better mechanism to load vertex and index buffers; prevent a potential bug where triangles, lines, and points could fight over the same buffers
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6292 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -22,6 +22,7 @@
|
||||
#include "VertexLoader.h"
|
||||
|
||||
#include "VertexManagerBase.h"
|
||||
#include "D3DBase.h"
|
||||
|
||||
namespace DX11
|
||||
{
|
||||
@ -33,9 +34,21 @@ public:
|
||||
~VertexManager();
|
||||
|
||||
private:
|
||||
void Draw(u32 stride, bool alphapass);
|
||||
void CreateDeviceObjects();
|
||||
void DestroyDeviceObjects();
|
||||
void LoadBuffers();
|
||||
void Draw(UINT stride, bool alphapass);
|
||||
// temp
|
||||
void vFlush();
|
||||
|
||||
UINT m_indexBufferCursor;
|
||||
UINT m_vertexBufferCursor;
|
||||
UINT m_vertexDrawOffset;
|
||||
UINT m_triangleDrawIndex;
|
||||
UINT m_lineDrawIndex;
|
||||
UINT m_pointDrawIndex;
|
||||
ID3D11Buffer* m_indexBuffer;
|
||||
ID3D11Buffer* m_vertexBuffer;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
Reference in New Issue
Block a user