mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
GPU: Shader Tool: Add error on invalid resource_table usage
This commit is contained in:
parent
cdccdfcd4d
commit
cb7770b1aa
1 changed files with 3 additions and 0 deletions
|
|
@ -53,6 +53,9 @@ void SourceProcessor::lower_srt_accessor_templates(Parser &parser)
|
|||
if (array.is_valid()) {
|
||||
report_error_(ERROR_TOK(name), "[[resource_table]] members cannot be arrays.");
|
||||
}
|
||||
if (name.prev() == '&') {
|
||||
report_error_(ERROR_TOK(name.prev()), "[[resource_table]] members cannot be references.");
|
||||
}
|
||||
|
||||
/* Remove the template but not the wrapped type. */
|
||||
parser.erase(type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue