Questions tagged [directx-11]

DirectX 11 is the 11th version of Microsoft's DirectX API, which is used to develop and handle tasks related to Multimedia, such as game programming, 3d visualizations and video on Microsoft platforms. DirectX 11 runs on Windows Vista, Windows 7, Windows 8, Windows 10, and Xbox One.

DirectX 11 is the 11th version of Microsoft's DirectX API (), which is used to develop and handle tasks related to Multimedia, such as game programming, 3d visualizations and video on Microsoft platforms. DirectX 11 runs on Windows Vista (), Windows 7 (), Windows 8 (), Windows 10 (), and Xbox One ().

1933 questions
4
votes
1 answer

Which texture slot should be used to start where I need 7th and 8th slot together among 0 to 8 index of 9 resources

I have total 9 texture resources among them I need 2 resources together for a pixel shader. In that case what should be the texture slot start index if I need the 7th and 8th texture resources only. (e.g. Texture2D foo1 : register(t7) and Texture2D…
4
votes
2 answers

DirectX 11 Debug Layer Capture Error Strings

I have the DirectX Debug Layer working and it outputs errors and warnings to the output window in visual studio. Like this for example (not the actual issue I'm facing): D3D11 WARNING: ID3D11DeviceContext::OMSetRenderTargets: Resource being set to…
DavidColson
  • 8,387
  • 9
  • 37
  • 50
4
votes
2 answers

DirectX 11 render to specific area

I am just wondering if DirectX 11 allows me to set an area to render to instead of rendering the whole window. Thanks a lot!
stephen
  • 71
  • 8
4
votes
1 answer

DX9 style intristics are disabled when not in dx9 compatibility mode?

I am currently writing an HLSL shader for a basic Gaussian blur. The shader code is straight forward, but I keep getting an error: DX9 style intristics are disabled when not in dx9 compatibility mode. (LN#: 19) This tells me that line 19 in my…
Hazel へいぜる
  • 2,751
  • 1
  • 12
  • 44
4
votes
2 answers

How to check if a true hardware video adapter is used

I develop an application which shows something like a video in its window. I use technologies which are described here Introducing Direct2D 1.1. In my case the only difference is that eventually I create a bitmap…
Eugen
  • 479
  • 5
  • 16
4
votes
2 answers

DirectX 11 What Is A Shader Resource View

Reading the book: "Practical Rendering and Computation with Direct3D 11", and looking for a definition online: https://learn.microsoft.com/en-us/windows/uwp/graphics-concepts/shader-resource-view--srv- I am still confused on what a…
Mike5050
  • 625
  • 1
  • 7
  • 22
4
votes
2 answers

What factors determine DXGI_FORMAT?

I am not familiar with directx, but I ran into a problem in a small project, part of which involves capturing directx data. I hope, below I make some sense. General question: I would like to know what factors determine the DXGI_FORMAT of a texture…
4
votes
1 answer

SlimDX stops loading big textures after a while

My app from time to time initializes a bunch of DirectX stuff and loads scenes, sometimes containing some large textures (up to 200–300 MB per texture). At first, everything works fine, but after a while FromMemory() just stops working, but only for…
Surfin Bird
  • 488
  • 7
  • 16
4
votes
1 answer

Is it better to use one large buffer with all related data or several smaller buffers in HLSL

I interested in both a code design and performance aspect if having a separated buffers when sending data to the GPU in HLSL, or another high-level shader language, is better. This is where a particular shader needs to have a lot of variable data…
A. Yeats
  • 89
  • 2
  • 7
4
votes
1 answer

How to get current camera position from view matrix?

I've implemented a simple arc-ball camera and it works well - when I use the mouse, I update the View matrix with roll, pitch and yawn. However, in order to properly calculate specular reflection, I need current camera position in world space which…
Bartosz Boczula
  • 349
  • 1
  • 2
  • 9
4
votes
2 answers

NURBS on DirectX 11?

Can you render NURBS on the GPU with DirectX 11? I've been reading up on current trends to rendering surfaces like these, but I don't see anything on NURBS. I found some related references, but nothing solid... like "Approximating Catmull-Clark…
davidotcom
  • 51
  • 4
4
votes
2 answers

DirectX 11 CreateSwapChain() fails with error DXGI_ERROR_INVALID_CALL

Everytime I try to create the swapChain it throws this error. After hours searching for a fix for this I found nothing that worked for me. Here's the important part of the code: bool Direct3D::Initialize(HWND hWnd) { HRESULT hResult; …
Rafiwui
  • 544
  • 6
  • 19
4
votes
3 answers

Windows Media Foundation using IMFTransform to decode mp4 movie frames to 2D textures

I'm trying to decode an mp4 video using Windows Media Foundation classes and converting frames in to 2D textures that can be used by a DirectX shader for rendering. I've been able to read the source stream using MFCreateSourceReaderfromURL and been…
TheRarebit
  • 385
  • 4
  • 18
4
votes
1 answer

Bind buffers to Unreal Engine 4 Customized Compute Shader

I am working on a project based on Unreal Engine 4 where I need to implement a customized directx11 compute shader. I am following this tutorial:Unreal HLSL Tutorial to write a customized compute shader in Unreal Engine for my project. I used the…
NULLPTR
  • 215
  • 1
  • 3
  • 12
4
votes
1 answer

Drawing text to a 2D texture in DirectX 11?

I'd like to be able to apply a transparent texture to each face of a simple 3D cube. Each texture is simply the name of the face, e.g. "Front", "Back", "Left", etc. Normally I'd just create an image in a paint app, then save it, and load the image…
WalderFrey
  • 575
  • 2
  • 17