forked from MoonsideGames/Refresh
rename viewport and scissor set functions
parent
0fbf1b2546
commit
2731d47419
|
@ -1017,14 +1017,14 @@ REFRESHAPI void Refresh_BindGraphicsPipeline(
|
||||||
);
|
);
|
||||||
|
|
||||||
/* Sets the current viewport state. */
|
/* Sets the current viewport state. */
|
||||||
REFRESHAPI void Refresh_SetViewportState(
|
REFRESHAPI void Refresh_SetViewport(
|
||||||
Refresh_Device *device,
|
Refresh_Device *device,
|
||||||
Refresh_CommandBuffer *commandBuffer,
|
Refresh_CommandBuffer *commandBuffer,
|
||||||
Refresh_Viewport *viewport
|
Refresh_Viewport *viewport
|
||||||
);
|
);
|
||||||
|
|
||||||
/* Sets the current scissor state. */
|
/* Sets the current scissor state. */
|
||||||
REFRESHAPI void Refresh_SetScissorState(
|
REFRESHAPI void Refresh_SetScissor(
|
||||||
Refresh_Device *device,
|
Refresh_Device *device,
|
||||||
Refresh_CommandBuffer *commandBuffer,
|
Refresh_CommandBuffer *commandBuffer,
|
||||||
Refresh_Rect *scissor
|
Refresh_Rect *scissor
|
||||||
|
|
|
@ -601,26 +601,26 @@ void Refresh_EndRenderPass(
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Refresh_SetViewportState(
|
void Refresh_SetViewport(
|
||||||
Refresh_Device *device,
|
Refresh_Device *device,
|
||||||
Refresh_CommandBuffer *commandBuffer,
|
Refresh_CommandBuffer *commandBuffer,
|
||||||
Refresh_Viewport *viewport
|
Refresh_Viewport *viewport
|
||||||
) {
|
) {
|
||||||
NULL_RETURN(device)
|
NULL_RETURN(device)
|
||||||
device->SetViewportState(
|
device->SetViewport(
|
||||||
device->driverData,
|
device->driverData,
|
||||||
commandBuffer,
|
commandBuffer,
|
||||||
viewport
|
viewport
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Refresh_SetScissorState(
|
void Refresh_SetScissor(
|
||||||
Refresh_Device *device,
|
Refresh_Device *device,
|
||||||
Refresh_CommandBuffer *commandBuffer,
|
Refresh_CommandBuffer *commandBuffer,
|
||||||
Refresh_Rect *scissor
|
Refresh_Rect *scissor
|
||||||
) {
|
) {
|
||||||
NULL_RETURN(device)
|
NULL_RETURN(device)
|
||||||
device->SetScissorState(
|
device->SetScissor(
|
||||||
device->driverData,
|
device->driverData,
|
||||||
commandBuffer,
|
commandBuffer,
|
||||||
scissor
|
scissor
|
||||||
|
|
|
@ -390,13 +390,13 @@ struct Refresh_Device
|
||||||
Refresh_CommandBuffer *commandBuffer
|
Refresh_CommandBuffer *commandBuffer
|
||||||
);
|
);
|
||||||
|
|
||||||
void(*SetViewportState)(
|
void(*SetViewport)(
|
||||||
Refresh_Renderer *driverData,
|
Refresh_Renderer *driverData,
|
||||||
Refresh_CommandBuffer *commandBuffer,
|
Refresh_CommandBuffer *commandBuffer,
|
||||||
Refresh_Viewport *viewport
|
Refresh_Viewport *viewport
|
||||||
);
|
);
|
||||||
|
|
||||||
void(*SetScissorState)(
|
void(*SetScissor)(
|
||||||
Refresh_Renderer *driverData,
|
Refresh_Renderer *driverData,
|
||||||
Refresh_CommandBuffer *commandBuffer,
|
Refresh_CommandBuffer *commandBuffer,
|
||||||
Refresh_Rect *scissor
|
Refresh_Rect *scissor
|
||||||
|
@ -507,8 +507,8 @@ struct Refresh_Device
|
||||||
ASSIGN_DRIVER_FUNC(QueueDestroyGraphicsPipeline, name) \
|
ASSIGN_DRIVER_FUNC(QueueDestroyGraphicsPipeline, name) \
|
||||||
ASSIGN_DRIVER_FUNC(BeginRenderPass, name) \
|
ASSIGN_DRIVER_FUNC(BeginRenderPass, name) \
|
||||||
ASSIGN_DRIVER_FUNC(EndRenderPass, name) \
|
ASSIGN_DRIVER_FUNC(EndRenderPass, name) \
|
||||||
ASSIGN_DRIVER_FUNC(SetViewportState, name) \
|
ASSIGN_DRIVER_FUNC(SetViewport, name) \
|
||||||
ASSIGN_DRIVER_FUNC(SetScissorState, name) \
|
ASSIGN_DRIVER_FUNC(SetScissor, name) \
|
||||||
ASSIGN_DRIVER_FUNC(BindGraphicsPipeline, name) \
|
ASSIGN_DRIVER_FUNC(BindGraphicsPipeline, name) \
|
||||||
ASSIGN_DRIVER_FUNC(BindVertexBuffers, name) \
|
ASSIGN_DRIVER_FUNC(BindVertexBuffers, name) \
|
||||||
ASSIGN_DRIVER_FUNC(BindIndexBuffer, name) \
|
ASSIGN_DRIVER_FUNC(BindIndexBuffer, name) \
|
||||||
|
|
|
@ -7953,7 +7953,7 @@ static void VULKAN_INTERNAL_SetCurrentViewport(
|
||||||
vulkanCommandBuffer->currentViewport.maxDepth = viewport->maxDepth;
|
vulkanCommandBuffer->currentViewport.maxDepth = viewport->maxDepth;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void VULKAN_SetViewportState(
|
static void VULKAN_SetViewport(
|
||||||
Refresh_Renderer *driverData,
|
Refresh_Renderer *driverData,
|
||||||
Refresh_CommandBuffer *commandBuffer,
|
Refresh_CommandBuffer *commandBuffer,
|
||||||
Refresh_Viewport *viewport
|
Refresh_Viewport *viewport
|
||||||
|
@ -7990,7 +7990,7 @@ static void VULKAN_INTERNAL_SetCurrentScissor(
|
||||||
vulkanCommandBuffer->currentScissor.extent.height = scissor->h;
|
vulkanCommandBuffer->currentScissor.extent.height = scissor->h;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void VULKAN_SetScissorState(
|
static void VULKAN_SetScissor(
|
||||||
Refresh_Renderer *driverData,
|
Refresh_Renderer *driverData,
|
||||||
Refresh_CommandBuffer *commandBuffer,
|
Refresh_CommandBuffer *commandBuffer,
|
||||||
Refresh_Rect *scissor
|
Refresh_Rect *scissor
|
||||||
|
|
Loading…
Reference in New Issue