keiokrysha

Member
  • Content count

    5
  • Joined

  • Last visited

Community Reputation

106 Neutral

About keiokrysha

  • Rank
    Newbie
  1. Hi, it is solved, was a silly mistake, the g_pRenderTargetView is NULL because of "g_pImmediateContext->OMSetRenderTargets" I set it as g_pImmediateContext->OMGetRenderTargets", so the render target was never set. Thanks.
  2. D3D11 SDK Tutorial question

    Hi Erik Rufelt, you are absolutely correct, I checked the project folder and there was not any .fx file, it was on my desktop, I just dragged it into the "Solution Explorer" in my Visual Studio 2010, after I put it in the project folder, the program can continue, however I am encoutering a new problem now, which I have post in another thread. Thank you very much!
  3. Hi, I am encountering a problem in my program, the program can be built sucessfully, but if I try to run it, it pops up a window says "Unhandled exception at 0x77ad15de in akatsuki.exe: 0x0000087D: 0x87d." And the related output message is: [source lang="cpp"]D3D11: CORRUPTION: ID3D11DeviceContext::ClearRenderTargetView: First parameter is corrupt or NULL. [ MISCELLANEOUS CORRUPTION #13: CORRUPTED_PARAMETER1 ] First-chance exception at 0x7689b9bc in akatsuki.exe: 0x0000087D: 0x87d. Unhandled exception at 0x77ad15de in akatsuki.exe: 0x0000087D: 0x87d.[/source] The related code to the "CelarRenderTargetView" is: [source lang="cpp"] g_pImmediateContext->ClearRenderTargetView( g_pRenderTargetView, ClearColor );[/source] I cannot see any problem here. And the Visual Studio 2010 automatically opens a new tab with the title "xnamathmatrix.inl(Please see attach files) Please help, thanks!
  4. In the SDK tutorials, some of them use .fx files to store shaders information, take Tutorial04 as an example, it has the .fx file "Tutorial04.fx", [color=#ff0000]Can anybody tell me why if I create a .fx file with the same content(copy/paste from "Turotial04.fx") but different title, then change the two places in the code where the file title are used:[/color] [source lang="cpp"]hr = CompileShaderFromFile( L"Tutorial04.fx", "PS", "ps_4_0", &pPSBlob );[/source] Change L"Tutorial04.fx" to new .fx file tile [source lang="cpp"]hr = CompileShaderFromFile( L"Tutorial04.fx", "VS", "vs_4_0", &pVSBlob );[/source] Change L"Tutorial04.fx" to new .fx file title Then the program pops up an error message? " [source lang="java"]if( FAILED( hr ) ) { MessageBox( NULL, L"The FX file cannot be compiled. Please run this executable from the directory that contains the FX file.", L"Error", MB_OK ); return hr; }[/source] That says only a .fx file with title "Tutorial04" will work here, I guess it has something to do with the resource.h and Tutorial04.rc files, but I do not know what it is. Can anybody help? Thanks.
  5. Hi I tried to write some D3D11 code, "build" is successful, information see below: [source lang="cpp"]1>------ Rebuild All started: Project: akatsuki, Configuration: Debug Win32 ------ 1>Build started 9/13/2012 9:43:23 PM. 1>_PrepareForClean: 1> Deleting file "Debug\akatsuki.lastbuildstate". 1>InitializeBuildStatus: 1> Creating "Debug\akatsuki.unsuccessfulbuild" because "AlwaysCreate" was specified. 1>ClCompile: 1> stdafx.cpp 1> akatsuki.cpp 1>Manifest: 1> Deleting file "Debug\akatsuki.exe.embed.manifest". 1>LinkEmbedManifest: 1> akatsuki.vcxproj -> C:\Users\kai\Documents\Visual Studio 2010\Projects\akatsuki\Debug\akatsuki.exe 1>FinalizeBuildStatus: 1> Deleting file "Debug\akatsuki.unsuccessfulbuild". 1> Touching "Debug\akatsuki.lastbuildstate". 1> 1>Build succeeded. 1> 1>Time Elapsed 00:00:01.53 ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========[/source] but when "start debugging", the program stops at opening the .fx shader file, information see below: [source lang="cpp"]'akatsuki.exe': Loaded 'C:\Users\kai\Documents\Visual Studio 2010\Projects\akatsuki\Debug\akatsuki.exe', Symbols loaded. 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\d3d11.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\dxgi.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\version.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\D3DX11d_43.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded. 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\clbcatq.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\wintrust.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\crypt32.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\msasn1.dll', Cannot find or open the PDB file 'akatsuki.exe': Unloaded 'C:\Windows\SysWOW64\setupapi.dll' 'akatsuki.exe': Unloaded 'C:\Windows\SysWOW64\devobj.dll' 'akatsuki.exe': Unloaded 'C:\Windows\SysWOW64\cfgmgr32.dll' 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\igd10umd32.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\d3dx10_40.dll', Cannot find or open the PDB file 'akatsuki.exe': Loaded 'C:\Windows\SysWOW64\D3D11SDKLayers.dll', Cannot find or open the PDB file D3DX11: ID3DX11DataLoader::Load - can't open Akatsuki.fx[/source] Please help, thanks! [color=#ff0000]And can anybody tell me what are all those "Cannot find or open the PDB file" about?[/color]