Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 08 Sep 2011
Offline Last Active Today, 02:35 AM

Posts I've Made

In Topic: HLSL: mad vs separate multiply add

09 October 2016 - 02:15 PM

I just tried it and the compiler (fxc.exe) emits a mad for a * b + c if you don't force IEEE strictness (/Gis) or disable optimizations (/Od).

In Topic: How to make an Direct3D program work in OpenGL context?

29 September 2016 - 05:40 PM

Both OpenGL and DirectX are left-handed in clip space.
You're probably thinking of world space and view space in the fixed function pipeline, which were right handed in OpenGL. Nowadays the FFP is dead and handedness in those spaces is up to the user.

In Topic: Fullscreen sometimes throws DXGI_ERROR_NOT_CURRENTLY_AVAILABLE

28 September 2016 - 06:43 PM

Can you even connect a monitor to the NVIDIA card in an Optimus setup? I thought the outputs were always connected to the IGP and the NVIDIA card works by writing into the IGP framebuffer.

In Topic: How to use a big constant buffer in DirectX 11.1?

11 September 2016 - 04:55 AM

The only thing that changes is how you bind it (with *SSetConstantBuffers1 instead of *SSetConstantBuffers). See https://msdn.microsoft.com/en-us/library/windows/desktop/hh404649(v=vs.85).aspx

In Topic: How do I detect the available video memory?

07 September 2016 - 12:18 PM

It fails because the NVIDIA card doesn't have any outputs. It's how those dual GPU setups work, the final output has to go through the integrated card no matter what.
Both NVIDIA and AMD provide ways to force using the dedicated card; the easiest one is adding this to your program:
extern "C"
	__declspec(dllexport) DWORD NvOptimusEnablement = 1;
	__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;