summaryrefslogtreecommitdiff
path: root/test/d3d11
diff options
context:
space:
mode:
authorJason Maskell <[email protected]>2016-05-25 16:03:19 +0200
committerJason Maskell <[email protected]>2016-05-25 16:03:19 +0200
commit77385b9689f3d626ab4582dceea140443e961985 (patch)
tree85d3c5014bd1734dae44be34329613b37fb50199 /test/d3d11
parentExcised D3D9 and 10 support from library. (diff)
downloadwaveworks_archive-77385b9689f3d626ab4582dceea140443e961985.tar.xz
waveworks_archive-77385b9689f3d626ab4582dceea140443e961985.zip
Added path to opengl media search path. Removed commented out code left over from old DXUT in d3d11 test.
Diffstat (limited to 'test/d3d11')
-rw-r--r--test/d3d11/ocean_cufft_app.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/test/d3d11/ocean_cufft_app.cpp b/test/d3d11/ocean_cufft_app.cpp
index e083fc6..a09261f 100644
--- a/test/d3d11/ocean_cufft_app.cpp
+++ b/test/d3d11/ocean_cufft_app.cpp
@@ -186,7 +186,6 @@ const FLOAT kWaterScale = 50.f;
//--------------------------------------------------------------------------------------
// Forward declarations
//--------------------------------------------------------------------------------------
-//bool CALLBACK IsD3D9DeviceAcceptable( D3DCAPS9* pCaps, D3DFORMAT AdapterFormat, D3DFORMAT BackBufferFormat, bool bWindowed, void* pUserContext );
bool CALLBACK IsD3D11DeviceAcceptable( const CD3D11EnumAdapterInfo *AdapterInfo, UINT Output, const CD3D11EnumDeviceInfo *DeviceInfo, DXGI_FORMAT BackBufferFormat, bool bWindowed, void* pUserContext );
bool CALLBACK ModifyDeviceSettings( DXUTDeviceSettings* pDeviceSettings, void* pUserContext );
HRESULT CALLBACK OnD3D11CreateDevice( ID3D11Device* pd3dDevice, const DXGI_SURFACE_DESC* pBackBufferSurfaceDesc, void* pUserContext );
@@ -275,7 +274,6 @@ INT WINAPI WinMain( HINSTANCE, HINSTANCE, LPSTR cmdline, int )
DXUTSetCallbackKeyboard( KeyboardProc );
DXUTSetCallbackFrameMove( OnFrameMove );
-// DXUTSetCallbackD3D9DeviceAcceptable( IsD3D9DeviceAcceptable );
DXUTSetCallbackD3D11DeviceAcceptable( IsD3D11DeviceAcceptable );
DXUTSetCallbackD3D11DeviceCreated( OnD3D11CreateDevice );
DXUTSetCallbackD3D11SwapChainResized( OnD3D11ResizedSwapChain );
@@ -446,15 +444,6 @@ void AddGUISet()
g_HUD.AddSlider(IDC_TESSELLATION_LOD_SLIDER, 10, iY += 20, 130, 24, 0, 200, int(g_TessellationLOD));
}
-//--------------------------------------------------------------------------------------
-// Called during device initialization, this code checks the device for some
-// minimum set of capabilities, and rejects those that don't pass by returning E_FAIL.
-//--------------------------------------------------------------------------------------
-// bool CALLBACK IsD3D9DeviceAcceptable( D3DCAPS9* pCaps, D3DFORMAT AdapterFormat,
-// D3DFORMAT BackBufferFormat, bool bWindowed, void* pUserContext )
-// {
-// return false;
-// }
bool CALLBACK IsD3D11DeviceAcceptable(const CD3D11EnumAdapterInfo *AdapterInfo, UINT Output, const CD3D11EnumDeviceInfo *DeviceInfo,
DXGI_FORMAT BackBufferFormat, bool bWindowed, void* pUserContext )