Skip to content

Warning for mix packoffset for static variable. #6828

Open

Description

@python3kgae

Description

cbuffer A
{
uint a: packoffset(c0);
uint4 b[1] : packoffset(c2);
static uint c[3] = (uint[3])b;
};
will get warning: cannot mix packoffset elements with nonpackoffset elements in a cbuffer
Steps to Reproduce
dxc -Tlib_6_3

Expected Behavior
No warning.

Actual Behavior

Warning (cannot mix packoffset elements with nonpackoffset elements in a cbuffer) is reported.

Environment

  • DXC version : 1.8.2405
  • Host Operating System: Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdiagnostic

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions