WinRT: added SDL_LockTexture and SDL_UnlockTexture support to the D3D 11.1 renderer

This commit is contained in:
David Ludwig 2013-03-31 11:16:31 -04:00
parent b7476a788a
commit da65f35eaf
2 changed files with 97 additions and 5 deletions

View file

@ -23,6 +23,7 @@
#include <D3D11_1.h>
#include <DirectXMath.h>
#include <wrl/client.h>
#include <vector>
struct SDL_VertexShaderConstants
{
@ -67,6 +68,8 @@ typedef struct
Microsoft::WRL::ComPtr<ID3D11Texture2D> mainTexture;
Microsoft::WRL::ComPtr<ID3D11ShaderResourceView> mainTextureResourceView;
SDL_PixelFormat * pixelFormat;
Microsoft::WRL::ComPtr<ID3D11Texture2D> stagingTexture;
DirectX::XMINT2 lockedTexturePosition;
} D3D11_TextureData;
struct VertexPositionColor