Questions tagged [directx]
DirectX is a collection of APIs for handling tasks related to multimedia, especially 3D graphics and game programming and video, on Microsoft platforms.
directx
5,923
questions
0
votes
0
answers
30
views
Directx12 texture with ffmpeg is blinking
I'm trying to encode multiple D3D12 textures into a video file, but the video is flashing black.
pCommandQueue->Signal(pFence.Get(), 1);
pFence->SetEventOnCompletion(1, pEventHandle);
...
1
vote
0
answers
33
views
render SVG vector image files in DirectX 11
I need to render SVG vector image files (static images and animation) on DirectX 11. Is there a way to do this, or I have to convert SVG to a DirectX 11 compatible format file?
NOTE: I don't have a ...
3
votes
2
answers
94
views
Differences between Microsoft and Nvidia examples of DirectX12 CPU/GPU synchronization
I'm trying to understand the CPU/GPU synchronization in DirectX 12, but there are some things that confuse me. Here is the sample code from Microsoft's HelloFrameBuffering example:
// Prepare to ...
1
vote
0
answers
27
views
DirectX 11 Desktop Duplication API: Captured Frame Data is All Zeros
I'm developing a screen capture application using DirectX 11 and the Desktop Duplication API in C++. The goal is to capture the screen content and process it. However, I'm encountering an issue where ...
1
vote
1
answer
48
views
Some properties are missing in the DirectX 11 compared to the 9th
At the moment, I am porting the old code from the ninth version of DirectX to the newer, eleventh, and I have encountered some difficulties in finding analogues of existing properties and functions.
...
1
vote
0
answers
30
views
DirectX 11: Line List is drawn 2 pixels wide
I have ported an D3D9 application to DX11 and now I am facing this problem, that the line, that is drawn using a line list of 2 vertices, is drawn with 2px height on screen at certain zoom levels.
Now ...
0
votes
0
answers
35
views
Hololens 2 d3d11.dll could not be found
I'm writing some code using SharpDX which requires Direct3D.
I've written my project in a clean Unity 3d project built for UWP with just my SharpDX scripts. When run on the Hololens 2 I get the ...
1
vote
1
answer
59
views
Direct3D 11 and 2D : wrong display of a texture
I am still trying to improve my test program about Direct3D 11 in 2D, without any additional library (see direct3d 11 and 2D: pass coordinates of a vertex as int and not float).
I now want to display ...
1
vote
1
answer
30
views
How to read depth texture in DirectX 9 pixel shader?
I can use DirectX 9 and asm only. If I use following vertex shader:
struct VS_INPUT
{
float4 pos : POSITION;
float2 t0 : TEXCOORD0;
};
struct VS_OUTPUT
{
float4 pos : POSITION;
...
1
vote
0
answers
22
views
Memory leak when draw in Direct3D 9
I make code to draw square by Direct3D 9:
// create the vertices using the CUSTOMVERTEX struct
struct CustomVertex { float X, Y, Z, RHW; unsigned int Color; } vertices[4] = {
{ 10.0f, 10....
1
vote
2
answers
66
views
Win32 API convert ID3D11Texture2D to cv::Mat
So I am trying to convert ID3D11Texture2D to OpenCV cv::Mat, but my code distorts the image for some reason.
D3D11_TEXTURE2D_DESC capturedTextureDesc;
texture->GetDesc(&capturedTextureDesc);
...
0
votes
0
answers
29
views
Is it not possible to have depth test in wireframe view in direct x 11
I am trying to do z buffering in direct x11 with wireframe view. Currently with my rasterizer descriptor I am getting the correct result
D3D11_RASTERIZER_DESC rasDesc;
rasDesc.FillMode = ...
1
vote
0
answers
35
views
How do I use SRGB with DXGI_SWAP_EFFECT_FLIP_DISCARD?
I have a dx11 project and I'd like to change the color format from DXGI_FORMAT_R8G8B8A8_UNORM to DXGI_FORMAT_R8G8B8A8_UNORM_SRGB.
The problem is that doing this while having ...
-2
votes
1
answer
173
views
How can I render frames decoded by FFmpeg using hardware decoding with D3D11?
I have completed the process of decoding a video frame using FFmpeg. The format of the decoded frame is AV_PIX_FMT_NV12. Now, I want to render this frame to the screen using D3D11. My questions are:
...
1
vote
1
answer
56
views
DirectX Histogram Effect does not produce an output image, the local bounds rect is { 0, 0, 0, 0 }
I would like to demo the Histogram Effect but the output is blank I've tried a Sofware type and Hardware type render target but the results are the same. Ive also tried ensuring that the effect's ...