• Breaking News

    Does CopyDescriptors implicitly change resource state? Hello, I have come across a strange problem in D3D12. I am creating a render target with the start state in CreateCommittedResource as D3D12_RESOURCE_STATE_RENDER_TARGET. After that, I create an SRV for the render target and use that as the source handle in a CopyDescriptors call. This is all done during initialization. When doing the first draw call, I get this validation error. This happens only during the first frame. This makes me think, CopyDescriptors is doing an implicit state transition because I create the resource in D3D12_RESOURCE_STATE_RENDER_TARGET and after that, the only time it is used before the draw call is in the CopyDescriptors call. https://ift.tt/eA8V8J

    Hello, I have come across a strange problem in D3D12. I am creating a render target with the start state in CreateCommittedResource as D3D12_RESOURCE_STATE_RENDER_TARGET. After that, I create an SRV for the render target and use that as the source handle in a CopyDescriptors call. This is all done during initialization. When doing the first draw call, I get this validation error. This happens only during the first frame. This makes me think, CopyDescriptors is doing an implicit state transition because I create the resource in D3D12_RESOURCE_STATE_RENDER_TARGET and after that, the only time it is used before the draw call is in the CopyDescriptors call.

    from GameDev.net https://ift.tt/2y3ZIQ1

    ليست هناك تعليقات

    Post Top Ad

    ad728

    Post Bottom Ad

    ad728