Jump to content

  • Log In with Google      Sign In   
  • Create Account

14 years ago on June 15th Gamedev.net was first launched! We want to thank all of you for being part of our community and hope the best years are ahead of us. Happy birthday Gamedev.net!

#Actualjburke4126

Posted 21 December 2012 - 03:51 PM

What is the HRESULT returned by cgD3D11LoadProgram()?

According to the debugger, the value is 0x8876086c, but again, cgGetLastErrorString returns CG_NO_ERROR after cgD3D11LoadProgram. To me, that HRESULT is pretty meaningless, but I don't think cgD3D11LoadProgram() is the issue because according to the debugger the memory address of vs (CGprogram is a pointer type) after returned from cgCreateProgramFromFile is 0x0000000e, which I suspect would not be a valid pointer location.

Edit: sorry for the multiple edits; for some reason my full response wouldn't show up.

#9jburke4126

Posted 21 December 2012 - 03:50 PM

What is the HRESULT returned by cgD3D11LoadProgram()?

According to the debugger, the value is 0x8876086c, but again, cgGetLastErrorString returns CG_NO_ERROR after cgD3D11LoadProgram. To me, that HRESULT is pretty meaningless, but I don't think cgD3D11LoadProgram() is the issue because according to the debugger the memory address of vs (CGprogram is a pointer type) after returned from cgCreateProgramFromFile is 0x0000000e, which I suspect would not be a valid pointer location.

#8jburke4126

Posted 21 December 2012 - 03:50 PM

What is the HRESULT returned by cgD3D11LoadProgram()?


#7jburke4126

Posted 21 December 2012 - 03:49 PM

What is the HRESULT returned by cgD3D11LoadProgram()?


#6jburke4126

Posted 21 December 2012 - 03:49 PM

What is the HRESULT returned by cgD3D11LoadProgram()?


#5jburke4126

Posted 21 December 2012 - 03:49 PM

What is the HRESULT returned by cgD3D11LoadProgram()?


PARTNERS