Skip to content

Uniforms in parameter list of entry point #2197

@LukasBanana

Description

@LukasBanana

I'm not sure whether this is a bug in DXC or the default constant buffer $Param is no longer supported.
But the following code sample compiles fine with FXC but fails with DXC because a semantic is missing:

float4 PSMain(uniform float4 FooBar) : SV_Target {
    return FooBar;
}

Here is the code sample at shader-playground.timhones.io:
FXC Output
DXC Output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug, regression, crash

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions