Skip to content

Need to report error when use constant which has offset bigger than root constant size. #2792

Open

Description

@python3kgae

cbuffer cb : register(b0)
{
float a;
float b;
}

[RootSignature("RootFlags(0), RootConstants(b0, num32BitConstants = 1)")]
float main() : SV_Target {
return b;
}

Root constant size is 1, but b has offset 1 which is out of bound.

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