Questions tagged [directcompute]

Microsoft DirectCompute is an application programming interface (API) that supports general-purpose computing on graphics processing units on Microsoft's Windows Vista, Windows 7 and Windows 8.

DirectCompute is part of the Microsoft DirectX collection of APIs, and was initially released with the DirectX 11 API but runs on graphics processing units that use either DirectX 10 or DirectX 11.

The DirectCompute architecture shares a range of computational interfaces with its competitors: OpenCL and CUDA.

79 questions
0
votes
1 answer

How to unwrap this recursive function into a loop?

I'm writing a simple diffuse path tracer in DirectCompute for education. DirectCompute doesn't allow recursive functions, so I need to figure out how to turn this recursive statement into a loop: intersectCode() { // ... intersection code …
user1043761
  • 696
  • 6
  • 22
0
votes
1 answer

Create R32_UINT view from R8G8B8A8_UNORM resource

I need to do in place image editing using DirectCompute - ala: http://msdn.microsoft.com/en-us/library/ff728749%28v=vs.85%29.aspx My backbuffer is R8G8B8A8_UNORM and I need to create a UAV of format R32_UINT in order for me to read and write…
user1043761
  • 696
  • 6
  • 22
-1
votes
1 answer

"D3D12 CORRUPTION: ID3D12CommandList::CopyResource: pDstResource is corrupt." How did I corrupt my Shader Resource View's buffer?

The calling code corresponding to the error in the title is: this->directCommandList.Get()->CopyResource( this->srvBuffer.Get(), this->stagingWriteBuffer.Get()); srvBuffer is a smart pointer to an ID3D12Resource. My first real interaction…
MNagy
  • 423
  • 7
  • 20
-2
votes
2 answers

When is the data copied to GPU memory?

I have some well known steps in my program: CreateBuffer Create..View CSSet..Views Dispatch At which step is the data copied to the GPU?
Yola
  • 18,496
  • 11
  • 65
  • 106
1 2 3 4 5
6