Skip to content

[SPIR-V] can't decorate a struct or type properly #7317

Open

Description

Doing this:

// declare a GLSL-like block
struct [[vk::ext_decorate(/* Block */ 2)]] SpheresShared
{
    Sphere spheres[9];
};

produces an error saying error: 'ext_decorate' attribute only applies to functions, variables, parameters, fields, and types

godbolt: https://godbolt.org/z/596Pcreaa

Metadata

Metadata

Labels

bugneeds-triagespirv

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions