forked from MoonsideGames/Refresh
				
			rename Gen_ functions to Create_
							parent
							
								
									06b805cf93
								
							
						
					
					
						commit
						7de212c322
					
				|  | @ -789,7 +789,7 @@ REFRESHAPI REFRESH_Texture* REFRESH_CreateTextureCube( | ||||||
|  * multisampleCount:	The MSAA value for the color target. |  * multisampleCount:	The MSAA value for the color target. | ||||||
|  * textureSlice: 		The texture slice that the color target will resolve to. |  * textureSlice: 		The texture slice that the color target will resolve to. | ||||||
|  */ |  */ | ||||||
| REFRESHAPI REFRESH_ColorTarget* REFRESH_GenColorTarget( | REFRESHAPI REFRESH_ColorTarget* REFRESH_CreateColorTarget( | ||||||
| 	REFRESH_Device *device, | 	REFRESH_Device *device, | ||||||
| 	REFRESH_SampleCount multisampleCount, | 	REFRESH_SampleCount multisampleCount, | ||||||
| 	REFRESH_TextureSlice textureSlice | 	REFRESH_TextureSlice textureSlice | ||||||
|  | @ -801,7 +801,7 @@ REFRESHAPI REFRESH_ColorTarget* REFRESH_GenColorTarget( | ||||||
|  * height: 	The height of the depth/stencil target. |  * height: 	The height of the depth/stencil target. | ||||||
|  * format:	The storage format of the depth/stencil target. |  * format:	The storage format of the depth/stencil target. | ||||||
|  */ |  */ | ||||||
| REFRESHAPI REFRESH_DepthStencilTarget* REFRESH_GenDepthStencilTarget( | REFRESHAPI REFRESH_DepthStencilTarget* REFRESH_CreateDepthStencilTarget( | ||||||
| 	REFRESH_Device *device, | 	REFRESH_Device *device, | ||||||
| 	uint32_t width, | 	uint32_t width, | ||||||
| 	uint32_t height, | 	uint32_t height, | ||||||
|  | @ -812,7 +812,7 @@ REFRESHAPI REFRESH_DepthStencilTarget* REFRESH_GenDepthStencilTarget( | ||||||
|  * |  * | ||||||
|  * sizeInBytes: The length of the vertex buffer. |  * sizeInBytes: The length of the vertex buffer. | ||||||
|  */ |  */ | ||||||
| REFRESHAPI REFRESH_Buffer* REFRESH_GenVertexBuffer( | REFRESHAPI REFRESH_Buffer* REFRESH_CreateVertexBuffer( | ||||||
| 	REFRESH_Device *device, | 	REFRESH_Device *device, | ||||||
| 	uint32_t sizeInBytes | 	uint32_t sizeInBytes | ||||||
| ); | ); | ||||||
|  | @ -821,7 +821,7 @@ REFRESHAPI REFRESH_Buffer* REFRESH_GenVertexBuffer( | ||||||
|  * |  * | ||||||
|  * sizeInBytes: The length of the index buffer. |  * sizeInBytes: The length of the index buffer. | ||||||
|  */ |  */ | ||||||
| REFRESHAPI REFRESH_Buffer* REFRESH_GenIndexBuffer( | REFRESHAPI REFRESH_Buffer* REFRESH_CreateIndexBuffer( | ||||||
| 	REFRESH_Device *device, | 	REFRESH_Device *device, | ||||||
| 	uint32_t sizeInBytes | 	uint32_t sizeInBytes | ||||||
| ); | ); | ||||||
|  |  | ||||||
|  | @ -344,27 +344,27 @@ REFRESH_Texture* REFRESH_CreateTextureCube( | ||||||
|     ); |     ); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| REFRESH_ColorTarget* REFRESH_GenColorTarget( | REFRESH_ColorTarget* REFRESH_CreateColorTarget( | ||||||
| 	REFRESH_Device *device, | 	REFRESH_Device *device, | ||||||
|     REFRESH_SampleCount multisampleCount, |     REFRESH_SampleCount multisampleCount, | ||||||
| 	REFRESH_TextureSlice textureSlice | 	REFRESH_TextureSlice textureSlice | ||||||
| ) { | ) { | ||||||
|     NULL_RETURN_NULL(device); |     NULL_RETURN_NULL(device); | ||||||
|     return device->GenColorTarget( |     return device->CreateColorTarget( | ||||||
|         device->driverData, |         device->driverData, | ||||||
|         multisampleCount, |         multisampleCount, | ||||||
|         textureSlice |         textureSlice | ||||||
|     ); |     ); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| REFRESH_DepthStencilTarget* REFRESH_GenDepthStencilTarget( | REFRESH_DepthStencilTarget* REFRESH_CreateDepthStencilTarget( | ||||||
| 	REFRESH_Device *device, | 	REFRESH_Device *device, | ||||||
| 	uint32_t width, | 	uint32_t width, | ||||||
| 	uint32_t height, | 	uint32_t height, | ||||||
| 	REFRESH_DepthFormat format | 	REFRESH_DepthFormat format | ||||||
| ) { | ) { | ||||||
|     NULL_RETURN_NULL(device); |     NULL_RETURN_NULL(device); | ||||||
|     return device->GenDepthStencilTarget( |     return device->CreateDepthStencilTarget( | ||||||
|         device->driverData, |         device->driverData, | ||||||
|         width, |         width, | ||||||
|         height, |         height, | ||||||
|  | @ -372,23 +372,23 @@ REFRESH_DepthStencilTarget* REFRESH_GenDepthStencilTarget( | ||||||
|     ); |     ); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| REFRESH_Buffer* REFRESH_GenVertexBuffer( | REFRESH_Buffer* REFRESH_CreateVertexBuffer( | ||||||
| 	REFRESH_Device *device, | 	REFRESH_Device *device, | ||||||
| 	uint32_t sizeInBytes | 	uint32_t sizeInBytes | ||||||
| ) { | ) { | ||||||
|     NULL_RETURN_NULL(device); |     NULL_RETURN_NULL(device); | ||||||
|     return device->GenVertexBuffer( |     return device->CreateVertexBuffer( | ||||||
|         device->driverData, |         device->driverData, | ||||||
|         sizeInBytes |         sizeInBytes | ||||||
|     ); |     ); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| REFRESH_Buffer* REFRESH_GenIndexBuffer( | REFRESH_Buffer* REFRESH_CreateIndexBuffer( | ||||||
| 	REFRESH_Device *device, | 	REFRESH_Device *device, | ||||||
| 	uint32_t sizeInBytes | 	uint32_t sizeInBytes | ||||||
| ) { | ) { | ||||||
|     NULL_RETURN_NULL(device); |     NULL_RETURN_NULL(device); | ||||||
|     return device->GenIndexBuffer( |     return device->CreateIndexBuffer( | ||||||
|         device->driverData, |         device->driverData, | ||||||
|         sizeInBytes |         sizeInBytes | ||||||
|     ); |     ); | ||||||
|  |  | ||||||
|  | @ -266,25 +266,25 @@ struct REFRESH_Device | ||||||
|         uint8_t canBeRenderTarget |         uint8_t canBeRenderTarget | ||||||
|     ); |     ); | ||||||
| 
 | 
 | ||||||
|     REFRESH_ColorTarget* (*GenColorTarget)( |     REFRESH_ColorTarget* (*CreateColorTarget)( | ||||||
|         REFRESH_Renderer *driverData, |         REFRESH_Renderer *driverData, | ||||||
|         REFRESH_SampleCount multisampleCount, |         REFRESH_SampleCount multisampleCount, | ||||||
|         REFRESH_TextureSlice textureSlice |         REFRESH_TextureSlice textureSlice | ||||||
|     ); |     ); | ||||||
| 
 | 
 | ||||||
|     REFRESH_DepthStencilTarget* (*GenDepthStencilTarget)( |     REFRESH_DepthStencilTarget* (*CreateDepthStencilTarget)( | ||||||
|         REFRESH_Renderer *driverData, |         REFRESH_Renderer *driverData, | ||||||
|         uint32_t width, |         uint32_t width, | ||||||
|         uint32_t height, |         uint32_t height, | ||||||
|         REFRESH_DepthFormat format |         REFRESH_DepthFormat format | ||||||
|     ); |     ); | ||||||
| 
 | 
 | ||||||
|     REFRESH_Buffer* (*GenVertexBuffer)( |     REFRESH_Buffer* (*CreateVertexBuffer)( | ||||||
|         REFRESH_Renderer *driverData, |         REFRESH_Renderer *driverData, | ||||||
|         uint32_t sizeInBytes |         uint32_t sizeInBytes | ||||||
|     ); |     ); | ||||||
| 
 | 
 | ||||||
|     REFRESH_Buffer* (*GenIndexBuffer)( |     REFRESH_Buffer* (*CreateIndexBuffer)( | ||||||
|         REFRESH_Renderer *driverData, |         REFRESH_Renderer *driverData, | ||||||
|         uint32_t sizeInBytes |         uint32_t sizeInBytes | ||||||
|     ); |     ); | ||||||
|  | @ -536,10 +536,10 @@ struct REFRESH_Device | ||||||
|     ASSIGN_DRIVER_FUNC(CreateTexture2D, name) \ |     ASSIGN_DRIVER_FUNC(CreateTexture2D, name) \ | ||||||
|     ASSIGN_DRIVER_FUNC(CreateTexture3D, name) \ |     ASSIGN_DRIVER_FUNC(CreateTexture3D, name) \ | ||||||
|     ASSIGN_DRIVER_FUNC(CreateTextureCube, name) \ |     ASSIGN_DRIVER_FUNC(CreateTextureCube, name) \ | ||||||
|     ASSIGN_DRIVER_FUNC(GenColorTarget, name) \ |     ASSIGN_DRIVER_FUNC(CreateColorTarget, name) \ | ||||||
|     ASSIGN_DRIVER_FUNC(GenDepthStencilTarget, name) \ |     ASSIGN_DRIVER_FUNC(CreateDepthStencilTarget, name) \ | ||||||
|     ASSIGN_DRIVER_FUNC(GenVertexBuffer, name) \ |     ASSIGN_DRIVER_FUNC(CreateVertexBuffer, name) \ | ||||||
|     ASSIGN_DRIVER_FUNC(GenIndexBuffer, name) \ |     ASSIGN_DRIVER_FUNC(CreateIndexBuffer, name) \ | ||||||
|     ASSIGN_DRIVER_FUNC(SetTextureData2D, name) \ |     ASSIGN_DRIVER_FUNC(SetTextureData2D, name) \ | ||||||
|     ASSIGN_DRIVER_FUNC(SetTextureData3D, name) \ |     ASSIGN_DRIVER_FUNC(SetTextureData3D, name) \ | ||||||
|     ASSIGN_DRIVER_FUNC(SetTextureDataCube, name) \ |     ASSIGN_DRIVER_FUNC(SetTextureDataCube, name) \ | ||||||
|  |  | ||||||
|  | @ -3583,7 +3583,7 @@ static REFRESH_Texture* VULKAN_CreateTextureCube( | ||||||
| 	return (REFRESH_Texture*) result; | 	return (REFRESH_Texture*) result; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| static REFRESH_ColorTarget* VULKAN_GenColorTarget( | static REFRESH_ColorTarget* VULKAN_CreateColorTarget( | ||||||
| 	REFRESH_Renderer *driverData, | 	REFRESH_Renderer *driverData, | ||||||
| 	REFRESH_SampleCount multisampleCount, | 	REFRESH_SampleCount multisampleCount, | ||||||
| 	REFRESH_TextureSlice textureSlice | 	REFRESH_TextureSlice textureSlice | ||||||
|  | @ -3669,7 +3669,7 @@ static REFRESH_ColorTarget* VULKAN_GenColorTarget( | ||||||
| 	return (REFRESH_ColorTarget*) colorTarget; | 	return (REFRESH_ColorTarget*) colorTarget; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| static REFRESH_DepthStencilTarget* VULKAN_GenDepthStencilTarget( | static REFRESH_DepthStencilTarget* VULKAN_CreateDepthStencilTarget( | ||||||
| 	REFRESH_Renderer *driverData, | 	REFRESH_Renderer *driverData, | ||||||
| 	uint32_t width, | 	uint32_t width, | ||||||
| 	uint32_t height, | 	uint32_t height, | ||||||
|  | @ -3700,7 +3700,7 @@ static REFRESH_DepthStencilTarget* VULKAN_GenDepthStencilTarget( | ||||||
|     return (REFRESH_DepthStencilTarget*) depthStencilTarget; |     return (REFRESH_DepthStencilTarget*) depthStencilTarget; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| static REFRESH_Buffer* VULKAN_GenVertexBuffer( | static REFRESH_Buffer* VULKAN_CreateVertexBuffer( | ||||||
| 	REFRESH_Renderer *driverData, | 	REFRESH_Renderer *driverData, | ||||||
| 	uint32_t sizeInBytes | 	uint32_t sizeInBytes | ||||||
| ) { | ) { | ||||||
|  | @ -3721,7 +3721,7 @@ static REFRESH_Buffer* VULKAN_GenVertexBuffer( | ||||||
| 	return (REFRESH_Buffer*) buffer; | 	return (REFRESH_Buffer*) buffer; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| static REFRESH_Buffer* VULKAN_GenIndexBuffer( | static REFRESH_Buffer* VULKAN_CreateIndexBuffer( | ||||||
| 	REFRESH_Renderer *driverData, | 	REFRESH_Renderer *driverData, | ||||||
| 	uint32_t sizeInBytes | 	uint32_t sizeInBytes | ||||||
| ) { | ) { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue