forked from pyrite-dev/milsko
some changes
This commit is contained in:
parent
7a2ca3aa2d
commit
5220f742be
3 changed files with 23 additions and 4 deletions
|
|
@ -68,7 +68,7 @@ typedef struct _MwVulkanConfig {
|
||||||
* @warning This must be called before MwCreateWidget.
|
* @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)
|
* @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.
|
* @brief Field that can be gotten from Vulkan.
|
||||||
|
|
|
||||||
19
milsko.xml
19
milsko.xml
|
|
@ -38,6 +38,11 @@
|
||||||
<short name="green" unsigned="yes" />
|
<short name="green" unsigned="yes" />
|
||||||
<short name="blue" unsigned="yes" />
|
<short name="blue" unsigned="yes" />
|
||||||
</struct>
|
</struct>
|
||||||
|
<struct name="MwVulkanConfig">
|
||||||
|
<integer name="api_version" unsigned="yes" />
|
||||||
|
<integer name="vk_version" unsigned="yes" />
|
||||||
|
<integer name="validation_layers" />
|
||||||
|
</struct>
|
||||||
</structs>
|
</structs>
|
||||||
<!--
|
<!--
|
||||||
All widgets have properties that are common="yes".
|
All widgets have properties that are common="yes".
|
||||||
|
|
@ -511,6 +516,20 @@
|
||||||
</function>
|
</function>
|
||||||
</functions>
|
</functions>
|
||||||
</header>
|
</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>
|
</headers>
|
||||||
|
|
||||||
<!-- Widget functions are prefixed with mw<widget name> -->
|
<!-- Widget functions are prefixed with mw<widget name> -->
|
||||||
|
|
|
||||||
|
|
@ -489,8 +489,8 @@ static int vulkan_devices_setup(MwWidget handle, vulkan_t* o) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwVulkanConfigure(MwVulkanConfig cfg) {
|
void MwVulkanConfigure(MwVulkanConfig* cfg) {
|
||||||
vulkan_config = cfg;
|
vulkan_config = *cfg;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwVulkanEnableExtension(const char* name) {
|
void MwVulkanEnableExtension(const char* name) {
|
||||||
|
|
@ -595,7 +595,7 @@ void MwVulkanEnableLayer(const char* ext_name) {
|
||||||
(void)ext_name;
|
(void)ext_name;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwVulkanConfigure(MwVulkanConfig cfg) {
|
void MwVulkanConfigure(MwVulkanConfig* cfg) {
|
||||||
(void)cfg;
|
(void)cfg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue