// It is an error to use [[pad_to(N)]] in a function (outside of a struct, in general).

ShaderResourceGroupSemantic slot1
{
    FrequencyId = 1;
};

struct MyStruct
{
    float m_red;
    [[pad_to(16)]]
};

ShaderResourceGroup DemoSrg : slot1
{
    MyStruct m_data;
};

float4 PSMain() : SV_Target0
{
    float4 color = float4(0, 0, 0, 0);
    [[pad_to(16)]]
    color.r = DemoSrg::m_data.m_red;
    return color;
}