Questions tagged [directxtk]

This tag is for questions related to the open source C++ utility library DirectX Tool Kit available for DirectX 11 and DirectX 12.

This tag is for questions related to the open source C++ utility library DirectX Tool Kit available for DirectX 11 and DirectX 12.

65 questions
4
votes
0 answers

XAudio2 - Source voice hangs when active audio device gets removed

I have a problem I am not able to solve. My application should be able to switch the default audio device during runtime. To achieve this I am using XAudio2 from the DirectXTK. I implemented the IMMNotificationClient into my audio class to be able…
datoml
  • 5,554
  • 4
  • 21
  • 28
2
votes
1 answer

Convert any input DDS into another DDS format in DirectXTex

I want to create a function to convert the input dds file to another format (also DDS) function signature will be like this std::vector ConvertDDS(const byte* src, const size_t src_len, const DXGI_FORMAT format) in here src will be a pointer…
2
votes
1 answer

DirectX 12 application is crashing in Windows 11

I'm quite a ways into a DirectX 12 desktop x64 application built upon several of the DirectX Tool Kit examples, but now also supports custom shaders for directional and omnidirectional shadows, dynamic reflections, a hardware-instanced particle…
Maico De Blasio
  • 97
  • 1
  • 2
  • 8
2
votes
2 answers

Skeletal animation bug with Assimp in DirectX 12

I am using Assimp to load an FBX model with animation (created in Blender) into my DirectX 12 game, but I'm experiencing a very frustrating bug with the animation rendered by the game application. The test model is a simple 'flagpole' containing…
2
votes
2 answers

Transforming a plane with DirectXTK / DirectXMath

I have a 3D plane defined by three points and I want to transform it with a 4x4 matrix using DirectXTK. I tried two ways to do this: Transform the plane with Plane::Transform() method - this gives a very strange result. Transform the three points…
milkyway
  • 55
  • 5
1
vote
0 answers

Why is my mouse movement super jerky in diagonal movements with the DirectXTK mouse?

So i've been bashing my head against this for a while. I'm using the DirectXTK11 with my own renderer and i'm using the Mouse class that comes with it. When the mouse is in relative mode, I take the mouse delta and multiply it by .05f to speed it up…
jkinz3
  • 23
  • 6
1
vote
0 answers

Can't complete directxtk installation

I am trying to add the directxtk Project to Visual Studio 2022, i followed this guide: https://github.com/microsoft/DirectXTK/wiki/DirectXTK#adding-to-a-vs-solution, i choose the "DirectXTK_Desktop_2022" Project, add it to my Solution then i go to…
Manul667
  • 31
  • 1
  • 4
1
vote
1 answer

DirectX 12 Ultimate graphics sample generates a D3D12 "CBV Invalid Resource" error

Presently I'm working on updating a Windows 11 DX12 desktop app to take advantage of the technologies introduced by DX12 Ultimate (i.e. mesh shaders, VRS & DXR). All the official samples for Ultimate compile and run on my machine (Core i9/RTX3070…
1
vote
1 answer

DXGI flip in Windows 8.1?

Does Windows 8.1 support the DXGI flip model? I.e. DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL and DXGI_SWAP_EFFECT_FLIP_DISCARD? I am seeing conflicting information online. Link1 and link2 indicate that at least DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL is supported…
1
vote
1 answer

Unresolved symbols in DirectX12 ToolKit project only for x64

I have a dxtk12 project that I worked on earlier. Currently I am using another Windows architecture - x64 and version of VS - 2019 (earlier - x86 and vs2017). I tried to compile my project for x64 release but got linker errors: 1>DeviceResources.obj…
isagsadvb
  • 23
  • 4
1
vote
1 answer

DirectXTK 3D audio uses only left channel

I've decided to try the DirectXTK12 audio and it's working fine except for the 3D sound. I'm following the guide from wiki but the sound is always in the left speaker no matter how I position the listener/emitter. What's wrong? My code looks like…
Flone
  • 187
  • 1
  • 3
  • 11
1
vote
1 answer

D3D11 DirectXTK Spritebatch fullscreen issues

I am working on a low resolution 2D game using the DirectXTK and Spritebatch. Everything works fine in windowed mode, however whenever I start or switch to fullscreen the image is blurred to stretch the backbuffer to fit the screen. I Initialise the…
ball
  • 39
  • 7
1
vote
1 answer

Why does DirectXToolkit ruin my depth testing

I'm sure I'm just missing some simple step that I've been too blind to notice so far, but I cannot seem to get depth testing to work at all. This is with DirectX 11. The code that should set it all up: DXGI_SWAP_CHAIN_DESC swapDesc = { }; …
1
vote
0 answers

Xbox-ATG-Samples (DirectXTK) SimpleTrianglePC causes 100% GPU usage in this circumstance

I'm tracking down a performance bottleneck. To narrow down the cause, I created a test using the SimpleTrianglePC sample from the Xbox ATG Samples repo. I made only a few changes: I changed Draw to DrawInstanced to render multiple triangles, and…
1
vote
1 answer

Lockedrect in D3D11

I am trying to implement a pixel perfect collision detection algorithm from an online tutorial, but it is written using d3d9. I am writing my game in d3d11, so I would like to know the best way to convert it. The original code, uses locked rects,…
1
2 3 4 5