Skip to content

IDxcResult output enumeration is reporting multiple DXC_OUT_NONE values and missing supported DXC_OUT_ values. #6523

Open

Description

@coopp

Description
Calling IDxcResult::GetNumOutputs( ) and enumerating outputs by index is returning incorrect results

Steps to Reproduce

IDxcResult* result; // Obtained from Compile( )

uint32_t numOutputs = result->GetNumOutputs();
std::cout << "Compiled result contains " << numOutputs << " outputs\n";
for (uint32_t i = 0; i < numOutputs; ++i)
{
    std::cout << result->GetOutputByIndex(i) << " found\n";
}

Actual Behavior
The total number of supported outputs is correct, but DXC_OUT_NONE is reported multiple times.

Compiled result contains 6 outputs
Primary output is DXC_OUT_OBJECT
DXC_OUT_OBJECT found
DXC_OUT_ERRORS found
DXC_OUT_PDB found
DXC_OUT_HASH found
DXC_OUT_NONE found
DXC_OUT_NONE found

Environment

  • DXC version dxcompiler.dll: 1.8 - 1.8.2403.37 (11e1318); dxil.dll: 1.8(101.8.2403.24)
  • Host Operating System Windows 11

Activity

  1. added
    bug
    needs-triage
    on Apr 12, 2024
  2. damyanp commented on Apr 12, 2024

    @damyanp
    Member

    Cooper Partin (@coopp) - looks like the "Actual Behavior" section needs to be filled in.

  3. coopp commented on Apr 12, 2024

    @coopp
    ContributorAuthor

    Actual behavior is filled in.

  4. added this to the Dormant milestone on Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions