From 11dd37c9e05e492955abbd664ffb88285cb5f4a7 Mon Sep 17 00:00:00 2001 From: Caleb Cornett Date: Sat, 5 Mar 2022 09:35:05 -0500 Subject: [PATCH 1/2] 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 -- 2.25.1 From 3fc639d0bac2863304030132de96c1cf7434d70a Mon Sep 17 00:00:00 2001 From: Caleb Cornett Date: Sat, 5 Mar 2022 09:46:08 -0500 Subject: [PATCH 2/2] Removed logic ops and enum values from the template --- src/Refresh_Driver_Template.txt | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/Refresh_Driver_Template.txt b/src/Refresh_Driver_Template.txt index e320919..3066e52 100644 --- a/src/Refresh_Driver_Template.txt +++ b/src/Refresh_Driver_Template.txt @@ -97,7 +97,6 @@ static TEMPLATE_POLYGON_MODE_TYPE RefreshToTEMPLATE_PolygonMode[] = { 0, /* FILL */ 0, /* LINE */ - 0 /* POINT */ }; static TEMPLATE_CULL_MODE_TYPE RefreshToTEMPLATE_CullMode[] = @@ -105,7 +104,6 @@ static TEMPLATE_CULL_MODE_TYPE RefreshToTEMPLATE_CullMode[] = 0, /* NONE */ 0, /* FRONT */ 0, /* BACK */ - 0 /* FRONT_AND_BACK */ }; static TEMPLATE_FRONT_FACE_TYPE RefreshToTEMPLATE_FrontFace[] = @@ -128,8 +126,6 @@ static TEMPLATE_BLEND_FACTOR_TYPE RefreshToTEMPLATE_BlendFactor[] = 0, /* ONE_MINUS_DST_ALPHA */ 0, /* CONSTANT_COLOR */ 0, /* ONE_MINUS_CONSTANT_COLOR */ - 0, /* CONSTANT_ALPHA */ - 0, /* ONE_MINUS_CONSTANT_ALPHA */ 0, /* SRC_ALPHA_SATURATE */ 0, /* SRC1_COLOR */ 0, /* ONE_MINUS_SRC1_COLOR */ @@ -146,26 +142,6 @@ static TEMPLATE_BLEND_OP_TYPE RefreshToTEMPLATE_BlendOp[] = 0 /* MAX */ }; -static TEMPLATE_LOGIC_OP_TYPE RefreshToTEMPLATE_LogicOp[] = -{ - 0, /* CLEAR */ - 0, /* AND */ - 0, /* AND_REVERSE */ - 0, /* COPY */ - 0, /* AND_INVERTED */ - 0, /* NO_OP */ - 0, /* XOR */ - 0, /* OR */ - 0, /* NOR */ - 0, /* EQUIVALENT */ - 0, /* INVERT */ - 0, /* OR_REVERSE */ - 0, /* COPY_INVERTED */ - 0, /* OR_INVERTED */ - 0, /* NAND */ - 0 /* SET */ -}; - static TEMPLATE_COMPARE_OP_TYPE RefreshToTEMPLATE_CompareOp[] = { 0, /* NEVER */ @@ -224,7 +200,6 @@ static TEMPLATE_FILTER_TYPE RefreshToTEMPLATE_Filter[] = { 0, /* NEAREST */ 0, /* LINEAR */ - 0 /* CUBIC */ }; static TEMPLATE_SAMPLER_MIPMAP_MODE_TYPE RefreshToTEMPLATE_SamplerMipmapMode[] = -- 2.25.1