SDL: Support rendering software cursor in D3D11

This commit is contained in:
Connor McLaughlin
2020-06-08 02:59:38 +10:00
parent f9eb3719e3
commit a56d7385eb
2 changed files with 44 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ private:
void Render() override;
void RenderDisplay();
void RenderSoftwareCursor();
SDL_Window* m_window = nullptr;
@@ -57,6 +58,7 @@ private:
ComPtr<ID3D11RasterizerState> m_display_rasterizer_state;
ComPtr<ID3D11DepthStencilState> m_display_depth_stencil_state;
ComPtr<ID3D11BlendState> m_display_blend_state;
ComPtr<ID3D11BlendState> m_software_cursor_blend_state;
ComPtr<ID3D11VertexShader> m_display_vertex_shader;
ComPtr<ID3D11PixelShader> m_display_pixel_shader;
ComPtr<ID3D11SamplerState> m_point_sampler;