Skip to content

The CommandListParameters::queueType is garbled code when passing to get command queue. #118

@NatureStudio789

Description

@NatureStudio789

The CommandListParameters::queueType is garbled code when passing to the function of nvrhi::d3d12::Device::getQueue().

Here is my command list creation code :

nvrhi::DeviceHandle GraphicsDevice;
nvrhi::CommandListHandle CommandListInstance;
...
nvrhi::CommandListParameters Parameters = nvrhi::CommandListParameters();
Parameters.queueType = nvrhi::CommandQueue::Graphics;
CommandListInstance = GraphicsDevice->createCommandList(Parameters);

The CommandListParameters::queueType is correct until it is passed to the :

class Device final : public RefCounter<IDevice>
{
...
    Queue* getQueue(CommandQueue type) { return m_Queues[int(type)].get(); }
...
};

It may turn into some garbled code like "D" or something else, which make the command list creation fail.
I couldn't make should whether it's caused by my configuration of the NVRHI or the IDE bugs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions