quakeforge/libs/video/renderer/vulkan/vkgen/vkstruct.h
Bill Currie 3498d8b2ae [vkgen] Add support for labeled array elements
This treats dictionary items as arrays ordered by key creation (ie, the
order of the key/value pairs in the dictionary is preserved). The label
is written to the specified field when parsing the struct. Both actual
arrays and single element "arrays" are supported.
2023-02-14 15:22:09 +09:00

27 lines
524 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;
}
-(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