quakeforge/libs/video/renderer/vulkan/vkgen/vkstruct.h
Bill Currie 461bb9f434 [vkgen] Make labeled arrays independent of struct order
It turns out labeled arrays don't work if structs aren't declared in the
right order (no idea what that is, though) as the struct might not have
been processed when the labeled array field is initialized. Thus, do a
pro-processing pass to set up any parse data prior to writing the
tables.
2023-02-26 20:43:52 +09:00

32 lines
592 B
Objective-C

#ifndef __renderer_vulkan_vkgen_vkstruct_h
#define __renderer_vulkan_vkgen_vkstruct_h
#include <Object.h>
#include "vkgen.h"
#include "vktype.h"
@class PLItem;
@interface Struct: Type
{
string outname;
string label_field;
int write_symtab;
int skip;
Array *field_defs;
PLItem *field_dict;
PLItem *only;
}
-(void) queueFieldTypes;
-(qfot_var_t *)findField:(string) fieldName;
-(void) setLabelField:(string) label_field;
-(void) writeForward;
-(void) writeTable;
-(void) writeSymtabInit;
-(void) writeSymtabEntry;
-(string) outname;
@end
#endif//__renderer_vulkan_vkgen_vkstruct_h