src/video/windowsrt/SDL_winrtrenderer.cpp
changeset 8348 7cdcd6d28c85
parent 8347 f0e61c2638ad
child 8349 020b8b65bcfc
     1.1 --- a/src/video/windowsrt/SDL_winrtrenderer.cpp	Wed Nov 21 17:07:48 2012 -0500
     1.2 +++ b/src/video/windowsrt/SDL_winrtrenderer.cpp	Wed Nov 21 17:19:16 2012 -0500
     1.3 @@ -32,8 +32,7 @@
     1.4  		const D3D11_INPUT_ELEMENT_DESC vertexDesc[] = 
     1.5  		{
     1.6  			{ "POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0,  D3D11_INPUT_PER_VERTEX_DATA, 0 },
     1.7 -			{ "COLOR",    0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 12, D3D11_INPUT_PER_VERTEX_DATA, 0 },
     1.8 -			{ "TEXCOORD", 0, DXGI_FORMAT_R32G32_FLOAT, 0, 24, D3D11_INPUT_PER_VERTEX_DATA, 0 },
     1.9 +			{ "TEXCOORD", 0, DXGI_FORMAT_R32G32_FLOAT, 0, 12, D3D11_INPUT_PER_VERTEX_DATA, 0 },
    1.10  		};
    1.11  
    1.12  		DX::ThrowIfFailed(
    1.13 @@ -61,10 +60,10 @@
    1.14  	auto createCubeTask = (createPSTask && createVSTask).then([this] () {
    1.15  		VertexPositionColor cubeVertices[] = 
    1.16  		{
    1.17 -			{XMFLOAT3(-1.0f, -1.0f, 0.0f), XMFLOAT3(1.0f, 0.0f, 0.0f), XMFLOAT2(0.0f, 0.0f)},
    1.18 -			{XMFLOAT3(-1.0f, 1.0f, 0.0f), XMFLOAT3(0.0f, 1.0f, 0.0f), XMFLOAT2(0.0f, 1.0f)},
    1.19 -			{XMFLOAT3(1.0f, -1.0f, 0.0f), XMFLOAT3(0.0f, 0.0f, 1.0f), XMFLOAT2(1.0f, 0.0f)},
    1.20 -			{XMFLOAT3(1.0f, 1.0f, 0.0f), XMFLOAT3(1.0f, 1.0f, 1.0f), XMFLOAT2(1.0f, 1.0f)},
    1.21 +			{XMFLOAT3(-1.0f, -1.0f, 0.0f),  XMFLOAT2(0.0f, 0.0f)},
    1.22 +			{XMFLOAT3(-1.0f, 1.0f, 0.0f), XMFLOAT2(0.0f, 1.0f)},
    1.23 +			{XMFLOAT3(1.0f, -1.0f, 0.0f), XMFLOAT2(1.0f, 0.0f)},
    1.24 +			{XMFLOAT3(1.0f, 1.0f, 0.0f), XMFLOAT2(1.0f, 1.0f)},
    1.25  		};
    1.26  
    1.27  		m_vertexCount = ARRAYSIZE(cubeVertices);