Vulkanator icon indicating copy to clipboard operation
Vulkanator copied to clipboard

Refactor vulkan structures to aggregate initialization

Open Wunkolo opened this issue 1 year ago • 0 comments

Inline definitions of these structures do not make it easy to determine what argument is going where. With aggregate initialization, each struct member is being assigned explicitly. This also allows many structures to be const or static. This also allows many structures to document themselves now that member names are visible at the site of creation.

This uses VULKAN_HPP_NO_STRUCT_CONSTRUCTORS to disable the custom constructor from structs.

Wunkolo avatar Apr 20 '24 16:04 Wunkolo