WinRT: added SDL_LockTexture and SDL_UnlockTexture support to the D3D 11.1 renderer
This commit is contained in:
parent
b7476a788a
commit
da65f35eaf
2 changed files with 97 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue