David Ludwig
94233675c7
WinRT: simplified the d3d11 vertex shader a bit
...
The projection and view matrices are now computed ahead of time, as they both get computed in the same spot, and typically not often. If this does, however, become a performance problem later on, this change can always be reverted.
2013-12-26 11:03:43 -05:00
David Ludwig
7ef05d266f
WinRT: implemented SDL_RenderSetClipRect for the d3d11 renderer
2013-12-26 10:18:33 -05:00
David Ludwig
700f82de2b
WinRT: corrected a minor error in an end-of-file comment
2013-12-25 23:46:19 -05:00
David Ludwig
8b2694f986
WinRT: minor rotation/orientation code cleanup in the d3d11 renderer
2013-12-25 23:45:07 -05:00
David Ludwig
b93ab1e6a3
WinRT: removed a bit of dead d3d11 code
2013-12-25 23:25:25 -05:00
David Ludwig
f0e406e994
WinRT: d3d11 compiled-shader code cleanup
...
I'm surprised this code even compiled, before this change. It did, but regardless, here's a cleanup.
2013-12-25 22:27:58 -05:00
David Ludwig
4d16628f1c
WinRT: made sure d3d11 debug mode doesn't get enabled by default
...
D3D11 debug mode got inadvertently enabled, in all cases, via changeset c0e68f3. This change reverts that.
2013-12-25 22:05:18 -05:00
David Ludwig
ce8057221a
WinRT: compiled the d3d11 renderer's shaders into SDL itself
...
Previously, the shaders would get compiled separately, the output of which would need to be packaged into the app. This change should make SDL's dll be the only binary needed to include SDL in a WinRT app.
2013-12-25 21:39:48 -05:00
David Ludwig
8db33416a2
WinRT: added a TODO note regarding texture-[un]locking in the d3d11 renderer
2013-12-25 14:20:40 -05:00
David Ludwig
187f52e80f
WinRT: renamed d3d11-internal struct, SDL_VertexShaderConstants, to just VertexShaderConstants
...
This is primarily to keep naming consistent with other shader-bound structs.
2013-12-25 14:17:49 -05:00
David Ludwig
2225493102
WinRT: moved contents of the d3d11 renderer's header file into its implementation file
2013-12-25 13:13:15 -05:00
David Ludwig
d4ae392953
WinRT: simplified a potentially-common error message from D3D11_SetRenderTarget
2013-12-25 13:00:41 -05:00
David Ludwig
b0df915737
WinRT: removed an unnecessary use of std::string in the d3d11 renderer
2013-12-25 12:58:37 -05:00
David Ludwig
10f2de1e69
WinRT: utilized SDL_SetError's return value in the d3d11 renderer
2013-12-25 12:52:16 -05:00
David Ludwig
43e27aa82e
WinRT: minor d3d11 code cleanups
2013-12-25 12:48:47 -05:00
David Ludwig
8c8feb83e0
WinRT: made d3d11-spawned error messages trickle down
...
Some error messages had the potential to be overwritten/obscured.
2013-12-25 12:47:39 -05:00
David Ludwig
5fba7db23c
WinRT: made d3d11-spawned error messages include the function name of failed calls
2013-12-25 12:43:26 -05:00
David Ludwig
5e6aba0670
WinRT: better rendering performance via D3D11_USAGE_DYNAMIC
2013-12-22 21:13:35 -05:00
David Ludwig
446a270487
WinRT: fixed bug: SDL_RenderReadPixels didn't work with certain orientations of the physical display
2013-12-10 22:34:08 -05:00
David Ludwig
7cc0951637
WinRT: added support for SDL_HINT_RENDER_SCALE_QUALITY
2013-11-01 22:54:39 -04:00
David Ludwig
62c781eaff
WinRT: made the Direct3D 11.x 'Debug Layer' be enable-able in any app via a hint
...
To enable the Debug Layer, set the hint, SDL_HINT_RENDER_DIRECT3D11_DEBUG to '1'.
The Debug Layer will be turned off by default, both in Release and Debug builds (of SDL).
2013-10-25 20:31:43 -04:00
David Ludwig
fa45a9c953
WinRT: fixed a line-rendering bug in the D3D 11.1 backend
2013-09-16 00:31:01 -04:00
David Ludwig
31235b4b99
WinRT: made rendering work with orientation changes on Windows Phone
...
Pointer event geometry still needs to be adjusted on Windows Phone, to note.
2013-08-28 15:27:01 -04:00
David Ludwig
91b039027f
WinRT: removed a comment regarding a dealt-with TODO
2013-08-28 12:45:43 -04:00
David Ludwig
8e3886a279
WinRT: rendering orientation fixes for Windows Phone, part 1
...
This change should allow apps to render correctly in Portrait mode, at minimum,
Support for orientation changes is pending.
Thanks to Pierre-Yves for assistance!
2013-08-28 12:38:30 -04:00
David Ludwig
44755f8a6a
WinRT: fixed a potential memory-related crash in SDL_Renderer on Windows Phone
2013-08-28 11:46:02 -04:00
David Ludwig
2cafee9de1
WinRT: experimental and preliminary support for XAML-based overlays on Windows 8/RT
...
The XAML support here is still rudimentary. Bugs do exist. You've been warned.
XAML support in Windows Phone 8 is not yet available (in SDL/WinRT).
2013-08-27 21:21:09 -04:00
David Ludwig
86ea4c4edf
WinRT: made all WinRT-related TODO comments use the same prefix, "TODO, WinRT"
2013-08-27 13:03:43 -04:00
David Ludwig
7be2ad71c9
WinRT: renamed SDL_SYSWM_WINDOWSRT to SDL_SYSWM_WINRT
...
This is part of an overall effort to use the name, "WinRT", rather than "WindowsRT" (or "Windows RT"), as the shorthand name often seems to mean something different than the longhand name. (WinRT is an API, Windows RT is a product name)
2013-08-27 11:44:43 -04:00
David Ludwig
eaf26ff66a
WinRT: added a stub implementation of UpdateClipRect to the D3D 11.1 renderer
2013-08-13 20:33:15 -04:00
David Ludwig
f7049b93d5
WinRT: merged with SDL 2.0.0 codebase (aka. SDL hg rev d4ce48ff30d1)
2013-08-12 22:29:55 -04:00