Converted David Ludwig's D3D11 renderer to C and optimized it.

The D3D11 renderer is now slightly faster than D3D9 on my Windows 8 machine (testsprite2 runs at 3400 FPS vs 3100 FPS)
This will need tweaking to fix the Windows RT build.
This commit is contained in:
Sam Lantinga
2014-03-10 01:51:03 -07:00
parent a8f540fe4a
commit 1a35f32b68
12 changed files with 1007 additions and 816 deletions

11
configure vendored
View File

@@ -21880,6 +21880,12 @@ if test "x$ac_cv_header_d3d9_h" = xyes; then :
fi
ac_fn_c_check_header_mongrel "$LINENO" "d3d11_1.h" "ac_cv_header_d3d11_1_h" "$ac_includes_default"
if test "x$ac_cv_header_d3d11_1_h" = xyes; then :
have_d3d11=yes
fi
ac_fn_c_check_header_mongrel "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "$ac_includes_default"
if test "x$ac_cv_header_ddraw_h" = xyes; then :
have_ddraw=yes
@@ -22716,6 +22722,11 @@ fi
$as_echo "#define SDL_VIDEO_RENDER_D3D 1" >>confdefs.h
fi
if test x$enable_render_d3d = xyes -a x$have_d3d11 = xyes; then
$as_echo "#define SDL_VIDEO_RENDER_D3D11 1" >>confdefs.h
fi
fi
# Set up files for the audio library