directx-11

DirectX 11 Pixel Shader What Is SV_POSITION?

扶醉桌前 提交于 2019-12-01 20:53:52
I am learning HLSL for DirectX 11, and I was wondering what exactly is the SV_POSITION that is the output for a Vertex Shader, and the input for a Pixel Shader. 1: Is this x,y,z of every pixel on your screen, or of the object? 2: Why is it 4 32bit floats? 3: Do you need this System Variable for the vertex output? Thank you! The vertex shader stage only has one required output: the position of the vertex. This value is then used by the fixed-function rasterizer to compute which pixels are being drawn and invoke the pixel shader for each one. That's what the system value semantic SV_Position

Why is D3D10SDKLayers.dll loaded during my DX11 game?

自古美人都是妖i 提交于 2019-12-01 20:05:34
SEE EDIT UPDATES BELOW. Original question has been modified! I have a working window that uses a DX11 device. My problem comes along when I try to go fullscreen using Alt+Enter. If the window is not focused, i get a debug output that says: 'MyGame.exe': Loaded 'C:\Windows\SysWOW64\D3D10SDKLayers.DLL', Cannot find or open the PDB file and then the warning DXGI Warning: IDXGISwapChain::Present: Fullscreen presentation inefficiencies incurred due to application not using IDXGISwapChain::ResizeBuffers appropriately, specifying a DXGI_MODE_DESC not available in IDXGIOutput::GetDisplayModeList, or

JavaFX EXCEPTION_ACCESS_VIOLATION

孤街浪徒 提交于 2019-12-01 14:47:08
I have a problem with JavaFX desktop application, specifically with 3d rendering functionalities. Every time I try to build and launch JavaFX application, JVM crshes and I get error similiar to following one: # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000000000000, pid=8440, tid=9008 # # JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13) # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode windows-amd64 compressed oops) # Problematic frame: # C 0x0000000000000000 # #

JavaFX EXCEPTION_ACCESS_VIOLATION

六眼飞鱼酱① 提交于 2019-12-01 12:58:11
问题 I have a problem with JavaFX desktop application, specifically with 3d rendering functionalities. Every time I try to build and launch JavaFX application, JVM crshes and I get error similiar to following one: # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000000000000, pid=8440, tid=9008 # # JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13) # Java VM: Java HotSpot(TM) 64-Bit Server VM

Nvidia 3d Video using DirectX11 and SlimDX in C#

亡梦爱人 提交于 2019-12-01 03:15:26
Good day, I am trying to display a real-time stereo video using nvidia 3DVision and two IP cameras. I am totally new to DirectX, but have tried to work through some tutorials and other questions on this and other sites. For now, I am displaying two static bitmaps for left and right eyes. These will be replaced by bitmaps from my cameras once I have got this part of my program working. This question NV_STEREO_IMAGE_SIGNATURE and DirectX 10/11 (nVidia 3D Vision) has helped me quite a bit, but I am still struggling to get my program working as it should. What I am finding is that my shutter

Nvidia 3d Video using DirectX11 and SlimDX in C#

可紊 提交于 2019-11-30 22:32:02
问题 Good day, I am trying to display a real-time stereo video using nvidia 3DVision and two IP cameras. I am totally new to DirectX, but have tried to work through some tutorials and other questions on this and other sites. For now, I am displaying two static bitmaps for left and right eyes. These will be replaced by bitmaps from my cameras once I have got this part of my program working. This question NV_STEREO_IMAGE_SIGNATURE and DirectX 10/11 (nVidia 3D Vision) has helped me quite a bit, but I

Check which version of DirectX is installed

天涯浪子 提交于 2019-11-30 22:11:37
As per the title, how can I check which version of DirectX a user has installed? Checking the FeatureLevel isn't enough, as my application can run on feature level 10.0, but requires that DirectX 11.1 be installed. Why this is not a duplicate: How to code to get direct X version on my machine in C#? The first answer in this question says "If Windows 7, DirectX = 11, if Windows Vista, DirectX = 10". This is wrong, as Vista supports both DirectX 10 and 11 and Windows 7 supports DirectX 11 and 11.1. The second answer references a registry key which only applies to DirectX 9 and lower. Even on a

What can cause D3D11CreateDevice() to fail with E_FAIL?

隐身守侯 提交于 2019-11-30 20:39:10
I'm invoking D3D11CreateDevice() with the following code: ID3D11Device* md3dDevice; ID3D11DeviceContext* md3dImmediateContext; D3D_DRIVER_TYPE md3dDriverType = D3D_DRIVER_TYPE_HARDWARE; createDeviceFlags = D3D11_CREATE_DEVICE_DEBUG; HRESULT hr = D3D11CreateDevice( 0, md3dDriverType, 0, createDeviceFlags, 0, 0, D3D11_SDK_VERSION, &md3dDevice, &featureLevel, &md3dImmediateContext); However, the result stored in HRESTUL hr is E_FAIL . The console has the following output: First-chance exception at 0x7590b9bc in Init Direct3D.exe: Microsoft C++ exception: _com_error at memory location 0x0049ec64..

How to create bitmap from Surface (SharpDX)

妖精的绣舞 提交于 2019-11-30 14:42:22
I am new to DirectX and trying to use SharpDX to capture a screen shot using the Desktop Duplication API. I am wondering if there is any easy way to create bitmap that I can use in CPU (i.e. save on file, etc.) I am using the following code the get the desktop screen shot: var factory = new SharpDX.DXGI.Factory1(); var adapter = factory.Adapters1[0]; var output = adapter.Outputs[0]; var device = new SharpDX.Direct3D11.Device(SharpDX.Direct3D.DriverType.Hardware, DeviceCreationFlags.BgraSupport | DeviceCreationFlags.Debug); var dev1 = device.QueryInterface<SharpDX.DXGI.Device1>(); var output1 =

What can cause D3D11CreateDevice() to fail with E_FAIL?

房东的猫 提交于 2019-11-30 04:41:17
问题 I'm invoking D3D11CreateDevice() with the following code: ID3D11Device* md3dDevice; ID3D11DeviceContext* md3dImmediateContext; D3D_DRIVER_TYPE md3dDriverType = D3D_DRIVER_TYPE_HARDWARE; createDeviceFlags = D3D11_CREATE_DEVICE_DEBUG; HRESULT hr = D3D11CreateDevice( 0, md3dDriverType, 0, createDeviceFlags, 0, 0, D3D11_SDK_VERSION, &md3dDevice, &featureLevel, &md3dImmediateContext); However, the result stored in HRESTUL hr is E_FAIL . The console has the following output: First-chance exception