some changes
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
Nishi 2026-04-17 01:03:14 +09:00
commit 5220f742be
Signed by: nishi
GPG key ID: 27EF69B208EB9343
3 changed files with 23 additions and 4 deletions

View file

@ -68,7 +68,7 @@ typedef struct _MwVulkanConfig {
* @warning This must be called before MwCreateWidget.
* @warning The configuration provided will be used for future initializations of the Vulkan widget (unless it's changed)
*/
MWDECL void MwVulkanConfigure(MwVulkanConfig cfg);
MWDECL void MwVulkanConfigure(MwVulkanConfig* cfg);
/*!
* @brief Field that can be gotten from Vulkan.

View file

@ -38,6 +38,11 @@
<short name="green" unsigned="yes" />
<short name="blue" unsigned="yes" />
</struct>
<struct name="MwVulkanConfig">
<integer name="api_version" unsigned="yes" />
<integer name="vk_version" unsigned="yes" />
<integer name="validation_layers" />
</struct>
</structs>
<!--
All widgets have properties that are common="yes".
@ -511,6 +516,20 @@
</function>
</functions>
</header>
<!-- They are not alphabetically sorted for reasons -->
<header name="Widget/Vulkan.h">
<functions>
<function name="MwVulkanConfigure">
<return>
<pointer />
</return>
<arguments>
<struct defname="MwVulkanConfig" name="cfg" pointer="yes" />
</arguments>
</function>
</functions>
</header>
</headers>
<!-- Widget functions are prefixed with mw<widget name> -->

View file

@ -489,8 +489,8 @@ static int vulkan_devices_setup(MwWidget handle, vulkan_t* o) {
return 0;
}
void MwVulkanConfigure(MwVulkanConfig cfg) {
vulkan_config = cfg;
void MwVulkanConfigure(MwVulkanConfig* cfg) {
vulkan_config = *cfg;
}
void MwVulkanEnableExtension(const char* name) {
@ -595,7 +595,7 @@ void MwVulkanEnableLayer(const char* ext_name) {
(void)ext_name;
}
void MwVulkanConfigure(MwVulkanConfig cfg) {
void MwVulkanConfigure(MwVulkanConfig* cfg) {
(void)cfg;
}