You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting #[spirv(fragment)] on a non-pub function, rust-gpu errors with an obtuse error:
error: error:0:0 - No OpEntryPoint instruction was found. This is only allowed if the Linkage capability is being used.
This case should be detected and warned or even made an error if it is not supported. Further, the error message should be fixed as suggested in #1139.
The text was updated successfully, but these errors were encountered:
to add context to this, it's silly like this because specifically the #[spirv(...)] attributes that denote an entry-point are only processed when that function is codegen'd. this also means you can probably cause it to be monomorphized more than once if you do weird things with calling it from other functions :/
When setting
#[spirv(fragment)]
on a non-pub function, rust-gpu errors with an obtuse error:This case should be detected and warned or even made an error if it is not supported. Further, the error message should be fixed as suggested in #1139.
The text was updated successfully, but these errors were encountered: