aboutsummaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-04-23 08:10:33 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2022-04-23 08:10:33 +0200
commitbb8882772bd5a00c6dfd4e33ec005d333f277898 (patch)
tree1bac714e9df89aff0ed29c4fea7a82411cb772de
parentd966ae76eeb179e41ba0aeb947a32aaabc3bafcb (diff)
remove static keyword from fixed array params for timeline semaphore 2devel
-rw-r--r--include/vkh.h4
-rw-r--r--src/vkhelpers.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/vkh.h b/include/vkh.h
index 21f7dc6..7e1d8e9 100644
--- a/include/vkh.h
+++ b/include/vkh.h
@@ -270,8 +270,8 @@ vkh_public
void vkh_cmd_submit_timelined (VkhQueue queue, VkCommandBuffer *pCmdBuff, VkSemaphore timeline,
const uint64_t wait, const uint64_t signal);
vkh_public
-void vkh_cmd_submit_timelined2 (VkhQueue queue, VkCommandBuffer *pCmdBuff, VkSemaphore timelines[static 2],
- const uint64_t waits[static 2], const uint64_t signals[static 2]);
+void vkh_cmd_submit_timelined2 (VkhQueue queue, VkCommandBuffer *pCmdBuff, VkSemaphore timelines[2],
+ const uint64_t waits[2], const uint64_t signals[2]);
vkh_public
VkEvent vkh_event_create (VkhDevice dev);
diff --git a/src/vkhelpers.c b/src/vkhelpers.c
index 4f9a170..e110015 100644
--- a/src/vkhelpers.c
+++ b/src/vkhelpers.c
@@ -95,7 +95,7 @@ void vkh_cmd_submit_timelined (VkhQueue queue, VkCommandBuffer *pCmdBuff, VkSema
VK_CHECK_RESULT(vkQueueSubmit(queue->queue, 1, &submitInfo, VK_NULL_HANDLE));
}
-void vkh_cmd_submit_timelined2 (VkhQueue queue, VkCommandBuffer *pCmdBuff, VkSemaphore timelines[static 2], const uint64_t waits[static 2], const uint64_t signals[static 2]) {
+void vkh_cmd_submit_timelined2 (VkhQueue queue, VkCommandBuffer *pCmdBuff, VkSemaphore timelines[2], const uint64_t waits[2], const uint64_t signals[2]) {
static VkPipelineStageFlags stageFlags = VK_PIPELINE_STAGE_ALL_COMMANDS_BIT;
VkTimelineSemaphoreSubmitInfo timelineInfo;
timelineInfo.sType = VK_STRUCTURE_TYPE_TIMELINE_SEMAPHORE_SUBMIT_INFO;