problem about direct3d10-Collection of common programming errors


  • vdbuilder
    layout input unhandled-exception direct3d10
    My application keeps failing to compile when I try to create a Vertex Layout in direct3D 10. Heres the code:// Create the vertex input layout. D3D10_INPUT_ELEMENT_DESC vertexDesc[] = {{“POSITION”, 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, D3D10_INPUT_PER_VERTEX_DATA, 0},{“COLOR”, 0, DXGI_FORMAT_R32G32B32A32_FLOAT, 0, 12, D3D10_INPUT_PER_VERTEX_DATA, 0} };// Create the input layout D3D10_PASS_DESC PassDesc; mTech->GetPassByIndex(0)->GetDesc(&PassDesc); HR(md3dDevice->CreateInputLayout