|
|
|
@ -76,7 +76,7 @@ typedef struct SymbolInfoStruct {
|
|
|
|
|
uint32_t advance;
|
|
|
|
|
} SymbolInfo;
|
|
|
|
|
|
|
|
|
|
typedef struct FontDescriptorStruct {
|
|
|
|
|
typedef struct FontStruct {
|
|
|
|
|
VmaAllocation symbol_memory;
|
|
|
|
|
VmaAllocation uniform_memory;
|
|
|
|
|
VmaAllocation image_memory;
|
|
|
|
@ -86,7 +86,7 @@ typedef struct FontDescriptorStruct {
|
|
|
|
|
VkImageView view;
|
|
|
|
|
VkSampler sampler;
|
|
|
|
|
VkDescriptorSet set;
|
|
|
|
|
} FontDescriptor;
|
|
|
|
|
} Font;
|
|
|
|
|
|
|
|
|
|
typedef struct TextPointersMemoryStruct {
|
|
|
|
|
VmaAllocation pointers_memory;
|
|
|
|
@ -111,7 +111,7 @@ typedef struct UILayerStruct {
|
|
|
|
|
VkDeviceAddress string_pointers;
|
|
|
|
|
uint32_t string_count;
|
|
|
|
|
uint32_t chars_count;
|
|
|
|
|
FontDescriptor font;
|
|
|
|
|
Font font;
|
|
|
|
|
} UILayer;
|
|
|
|
|
|
|
|
|
|
typedef struct UIContextStruct {
|
|
|
|
@ -129,28 +129,6 @@ typedef struct UIContextStruct {
|
|
|
|
|
ComputePipeline ui_compute_text;
|
|
|
|
|
} UIContext;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct UIFontStruct {
|
|
|
|
|
} UIFont;
|
|
|
|
|
|
|
|
|
|
typedef struct UITextStruct {
|
|
|
|
|
} UIText;
|
|
|
|
|
|
|
|
|
|
typedef struct UICharacterStruct {
|
|
|
|
|
} UICharacter;
|
|
|
|
|
|
|
|
|
|
typedef struct UIElementStruct {
|
|
|
|
|
uint32_t type;
|
|
|
|
|
uint32_t offset;
|
|
|
|
|
} UIElement;
|
|
|
|
|
|
|
|
|
|
typedef struct UIContainerStruct {
|
|
|
|
|
VkDeviceAddress elements;
|
|
|
|
|
} UIContainer;
|
|
|
|
|
|
|
|
|
|
typedef struct UIStruct {
|
|
|
|
|
} UI;
|
|
|
|
|
|
|
|
|
|
VkResult init_pipelines(
|
|
|
|
|
VkDevice device,
|
|
|
|
|
VmaAllocator allocator,
|
|
|
|
@ -171,7 +149,7 @@ VkResult load_font(
|
|
|
|
|
uint32_t size,
|
|
|
|
|
VkBool32 antialias,
|
|
|
|
|
uint32_t** charmap,
|
|
|
|
|
FontDescriptor* descriptor);
|
|
|
|
|
Font* descriptor);
|
|
|
|
|
|
|
|
|
|
VkResult create_text_pointers(
|
|
|
|
|
uint32_t max_strings,
|
|
|
|
|