move count param on REFRESH_Submit

submit_rewrite
cosmonaut 2021-01-03 14:57:46 -08:00
parent 788c63f3ac
commit 5a92fdf984
4 changed files with 11 additions and 11 deletions

View File

@ -1333,8 +1333,8 @@ REFRESHAPI void REFRESH_QueuePresent(
/* Submits all of the enqueued commands. */ /* Submits all of the enqueued commands. */
REFRESHAPI void REFRESH_Submit( REFRESHAPI void REFRESH_Submit(
REFRESH_Device* device, REFRESH_Device* device,
REFRESH_CommandBuffer **pCommandBuffers, uint32_t commandBufferCount,
uint32_t commandBufferCount REFRESH_CommandBuffer **pCommandBuffers
); );
/* Waits for the previous submission to complete. */ /* Waits for the previous submission to complete. */

View File

@ -875,14 +875,14 @@ void REFRESH_QueuePresent(
void REFRESH_Submit( void REFRESH_Submit(
REFRESH_Device *device, REFRESH_Device *device,
REFRESH_CommandBuffer **pCommandBuffers, uint32_t commandBufferCount,
uint32_t commandBufferCount REFRESH_CommandBuffer **pCommandBuffers
) { ) {
NULL_RETURN(device); NULL_RETURN(device);
device->Submit( device->Submit(
device->driverData, device->driverData,
pCommandBuffers, commandBufferCount,
commandBufferCount pCommandBuffers
); );
} }

View File

@ -518,8 +518,8 @@ struct REFRESH_Device
void(*Submit)( void(*Submit)(
REFRESH_Renderer *driverData, REFRESH_Renderer *driverData,
REFRESH_CommandBuffer **pCommandBuffers, uint32_t commandBufferCount,
uint32_t commandBufferCount REFRESH_CommandBuffer **pCommandBuffers
); );
void(*Wait)( void(*Wait)(

View File

@ -1456,7 +1456,7 @@ typedef struct VulkanRenderer
/* Forward declarations */ /* Forward declarations */
static void VULKAN_INTERNAL_BeginCommandBuffer(VulkanRenderer *renderer, VulkanCommandBuffer *commandBuffer); static void VULKAN_INTERNAL_BeginCommandBuffer(VulkanRenderer *renderer, VulkanCommandBuffer *commandBuffer);
static void VULKAN_Submit(REFRESH_Renderer *driverData, REFRESH_CommandBuffer **pCommandBuffers, uint32_t commandBufferCount); static void VULKAN_Submit(REFRESH_Renderer *driverData, uint32_t commandBufferCount, REFRESH_CommandBuffer **pCommandBuffers);
static void VULKAN_INTERNAL_FlushTransfers(VulkanRenderer *renderer); static void VULKAN_INTERNAL_FlushTransfers(VulkanRenderer *renderer);
/* Error Handling */ /* Error Handling */
@ -8156,8 +8156,8 @@ static void VULKAN_INTERNAL_ResetCommandBuffer(
static void VULKAN_Submit( static void VULKAN_Submit(
REFRESH_Renderer *driverData, REFRESH_Renderer *driverData,
REFRESH_CommandBuffer **pCommandBuffers, uint32_t commandBufferCount,
uint32_t commandBufferCount REFRESH_CommandBuffer **pCommandBuffers
) { ) {
VulkanRenderer* renderer = (VulkanRenderer*)driverData; VulkanRenderer* renderer = (VulkanRenderer*)driverData;
VkSubmitInfo transferSubmitInfo, submitInfo; VkSubmitInfo transferSubmitInfo, submitInfo;