From 11dd37c9e05e492955abbd664ffb88285cb5f4a7 Mon Sep 17 00:00:00 2001 From: Caleb Cornett Date: Sat, 5 Mar 2022 09:35:05 -0500 Subject: [PATCH] Update template for latest ABI breaks --- src/Refresh_Driver_Template.txt | 55 ++++++++++++++++----------------- 1 file changed, 26 insertions(+), 29 deletions(-) diff --git a/src/Refresh_Driver_Template.txt b/src/Refresh_Driver_Template.txt index 0a01725..e320919 100644 --- a/src/Refresh_Driver_Template.txt +++ b/src/Refresh_Driver_Template.txt @@ -37,6 +37,7 @@ static TEMPLATE_SURFACE_FORMAT_TYPE RefreshToTEMPLATE_SurfaceFormat[] = { 0, /* R8G8B8A8 */ + 0, /* B8G8R8A8 */ 0, /* R5G6B5 */ 0, /* A1R5G5B5 */ 0, /* B4G4R4A4 */ @@ -324,7 +325,7 @@ static void TEMPLATE_DispatchCompute( static Refresh_ComputePipeline* TEMPLATE_CreateComputePipeline( Refresh_Renderer *driverData, - Refresh_ComputePipelineCreateInfo *pipelineCreateInfo + Refresh_ComputeShaderInfo *computeShaderInfo ) { NOT_IMPLEMENTED } @@ -357,14 +358,6 @@ static Refresh_Texture* TEMPLATE_CreateTexture( NOT_IMPLEMENTED } -static Refresh_RenderTarget* TEMPLATE_CreateRenderTarget( - Refresh_Renderer *driverData, - Refresh_TextureSlice *textureSlice, - Refresh_SampleCount multisampleCount -) { - NOT_IMPLEMENTED -} - static Refresh_Buffer* TEMPLATE_CreateBuffer( Refresh_Renderer *driverData, Refresh_BufferUsageFlags usageFlags, @@ -491,7 +484,6 @@ static void TEMPLATE_GetBufferData( static void TEMPLATE_QueueDestroyTexture( Refresh_Renderer *driverData, - Refresh_CommandBuffer *commandBuffer, Refresh_Texture *texture ) { NOT_IMPLEMENTED @@ -499,7 +491,6 @@ static void TEMPLATE_QueueDestroyTexture( static void TEMPLATE_QueueDestroySampler( Refresh_Renderer *driverData, - Refresh_CommandBuffer *commandBuffer, Refresh_Sampler *sampler ) { NOT_IMPLEMENTED @@ -507,33 +498,20 @@ static void TEMPLATE_QueueDestroySampler( static void TEMPLATE_QueueDestroyBuffer( Refresh_Renderer *driverData, - Refresh_CommandBuffer *commandBuffer, Refresh_Buffer *buffer ) { NOT_IMPLEMENTED } -static void TEMPLATE_QueueDestroyRenderTarget( - Refresh_Renderer *driverData, - Refresh_CommandBuffer *commandBuffer, - Refresh_RenderTarget *renderTarget -) { - NOT_IMPLEMENTED -} - static void TEMPLATE_QueueDestroyShaderModule( Refresh_Renderer *driverData, - Refresh_CommandBuffer *commandBuffer, - Refresh_ShaderModule *shaderModule ) { NOT_IMPLEMENTED } - static void TEMPLATE_QueueDestroyComputePipeline( Refresh_Renderer *driverData, - Refresh_CommandBuffer *commandBuffer, Refresh_ComputePipeline *computePipeline ) { NOT_IMPLEMENTED @@ -541,7 +519,6 @@ static void TEMPLATE_QueueDestroyComputePipeline( static void TEMPLATE_QueueDestroyGraphicsPipeline( Refresh_Renderer *driverData, - Refresh_CommandBuffer *commandBuffer, Refresh_GraphicsPipeline *graphicsPipeline ) { NOT_IMPLEMENTED @@ -575,6 +552,22 @@ static void TEMPLATE_BindGraphicsPipeline( NOT_IMPLEMENTED } +static void TEMPLATE_SetViewport( + Refresh_Renderer *driverData, + Refresh_CommandBuffer *commandBuffer, + Refresh_Viewport *viewport +) { + NOT_IMPLEMENTED +} + +static void TEMPLATE_SetScissor( + Refresh_Renderer *driverData, + Refresh_CommandBuffer *commandBuffer, + Refresh_Rect *scissor +) { + NOT_IMPLEMENTED +} + static void TEMPLATE_BindVertexBuffers( Refresh_Renderer *driverData, Refresh_CommandBuffer *commandBuffer, @@ -627,12 +620,16 @@ static Refresh_CommandBuffer* TEMPLATE_AcquireCommandBuffer( NOT_IMPLEMENTED } -static void TEMPLATE_QueuePresent( +Refresh_Texture* TEMPLATE_AcquireSwapchainTexture( Refresh_Renderer *driverData, Refresh_CommandBuffer *commandBuffer, - Refresh_TextureSlice *textureSlice, - Refresh_Rect *destinationRectangle, - Refresh_Filter filter, + void *windowHandle +) { + NOT_IMPLEMENTED +} + +Refresh_TextureFormat TEMPLATE_GetSwapchainFormat( + Refresh_Renderer *driverData, void *windowHandle ) { NOT_IMPLEMENTED