Skip to content

Clarity on the requirement of pCmdList for resource tagging #45

@FakeMichau

Description

@FakeMichau

I've encountered an issue where I'm unable to tag a resource without providing a command list. The resource is marked as valid until present and is already in the prefer (D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE) state.
Trying to tag this resource with a nullptr passed as a command list results in XEFG_SWAPCHAIN_RESULT_ERROR_INVALID_ARGUMENT despite the header file saying pCmdList is optional for my case.

* @param pCmdList Optional command list utilized to manage the resource
* lifetime. It is only required if the resource is not valid until the next
* present call.

Doing the sin of passing this (ID3D12GraphicsCommandList*) 1 does get around this issue and the resource seems to be successfully tagged.

I would like to get some clarification on when exactly command list is optional.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions