2
$\begingroup$

I'm trying to port part of an OpenGL program into an existing DirectX 12 software, at some point in their shaders they use OpenGL ImageLoadStore in order to store information in 3D Textures without having to use an FBO.

Is there something similar in the DirectX 12 API? Or would I have to render to a custom FrameBuffer?

$\endgroup$
1
  • 3
    $\begingroup$ This related question and its answers should get you a little further. DirectX 12 is actually more similar to Vulkan than to OpenGL, but with the help of those tables you should be able to figure out the further DirectX keywords you should be looking for. But...rest assured that something to the effect of loading/storing data in aribtrary memory locations of arbitrary textures is definitely possible in DirectX 12. $\endgroup$ Commented Jan 30, 2019 at 13:18

1 Answer 1

2
$\begingroup$

You should be able to use RWTexture3D.
The hlsl documentation page about RWTexture2D also has sample code that you might find useful.

$\endgroup$
1
  • $\begingroup$ Thanks, that's what I'm doing atm. Your second link is pointing to RWTexture3D, I tihnk you meant link $\endgroup$ Commented Feb 7, 2019 at 23:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.