Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

DX12: Should I create the resource in COMMON state if it will be used by the copy queue right after creation

$
0
0
I am working on a resource loader / manager for a DX12 framework. Until now, I was creating the resources in their intended state before transitioning them to COMMON for the copy engine. Eg: Create texture in COPY_DEST. Transition to COMMON on graphics queue and give ownership to copy engine. Transition to COPY_DEST on copy queue. Copy operations on copy queue. Transition to SRV on graphics engine. Is it better or even possible to create the texture in COMMON state to avoid that first transition from COPY_DEST to COMMON? Also, why can't the resource be in COPY_DEST / COPY_SRC when it enters copy queue. The first operation that happens on the copy queue is anyways transition the resource to COPY_DEST or COPY_SRC.

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>