add command buffer to Pass functions
	
		
			
	
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is failing
				
					Details
				
			
		
	
				
					
				
			
				
	
				continuous-integration/drone/push Build is failing
				
					Details
				
			
		
	
							parent
							
								
									342a7f9ef6
								
							
						
					
					
						commit
						80914e9c38
					
				|  | @ -980,7 +980,10 @@ REFRESHAPI void Refresh_EndRenderPass( | |||
| /* Compute Pass */ | ||||
| 
 | ||||
| /* Begins a compute pass. */ | ||||
| REFRESHAPI void Refresh_BeginComputePass(Refresh_Device *device); | ||||
| REFRESHAPI void Refresh_BeginComputePass( | ||||
| 	Refresh_Device *device, | ||||
| 	Refresh_CommandBuffer *commandBuffer | ||||
| ); | ||||
| 
 | ||||
| /* Binds a compute pipeline to the compute bind point. */ | ||||
| REFRESHAPI void Refresh_BindComputePipeline( | ||||
|  | @ -1053,7 +1056,10 @@ REFRESHAPI void Refresh_DispatchCompute( | |||
| ); | ||||
| 
 | ||||
| /* Ends the current compute pass. */ | ||||
| REFRESHAPI void Refresh_EndComputePass(Refresh_Device *device); | ||||
| REFRESHAPI void Refresh_EndComputePass( | ||||
| 	Refresh_Device *device, | ||||
| 	Refresh_CommandBuffer *commandBuffer | ||||
| ); | ||||
| 
 | ||||
| /* CpuBuffer Map */ | ||||
| 
 | ||||
|  | @ -1078,7 +1084,10 @@ REFRESHAPI void Refresh_UnmapCpuBuffer( | |||
| /* Copy Pass */ | ||||
| 
 | ||||
| /* Begins a copy pass. */ | ||||
| REFRESHAPI void Refresh_BeginCopyPass(Refresh_Device *device); | ||||
| REFRESHAPI void Refresh_BeginCopyPass( | ||||
| 	Refresh_Device *device, | ||||
| 	Refresh_CommandBuffer *commandBuffer | ||||
| ); | ||||
| 
 | ||||
| /* CPU-to-GPU copies occur on the GPU timeline.
 | ||||
|  * | ||||
|  | @ -1176,7 +1185,10 @@ REFRESHAPI void Refresh_GenerateMipmaps( | |||
| 	Refresh_Texture *texture | ||||
| ); | ||||
| 
 | ||||
| REFRESHAPI void Refresh_EndCopyPass(Refresh_Device *device); | ||||
| REFRESHAPI void Refresh_EndCopyPass( | ||||
| 	Refresh_Device *device, | ||||
| 	Refresh_CommandBuffer *commandBuffer | ||||
| ); | ||||
| 
 | ||||
| /* Ends a copy pass. */ | ||||
| 
 | ||||
|  |  | |||
|  | @ -652,11 +652,13 @@ void Refresh_EndRenderPass( | |||
| /* Compute Pass */ | ||||
| 
 | ||||
| void Refresh_BeginComputePass( | ||||
| 	Refresh_Device *device | ||||
| 	Refresh_Device *device, | ||||
| 	Refresh_CommandBuffer *commandBuffer | ||||
| ) { | ||||
| 	NULL_RETURN(device); | ||||
| 	device->BeginComputePass( | ||||
| 		device->driverData | ||||
| 		device->driverData, | ||||
| 		commandBuffer | ||||
| 	); | ||||
| } | ||||
| 
 | ||||
|  | @ -736,11 +738,13 @@ void Refresh_DispatchCompute( | |||
| } | ||||
| 
 | ||||
| void Refresh_EndComputePass( | ||||
| 	Refresh_Device *device | ||||
| 	Refresh_Device *device, | ||||
| 	Refresh_CommandBuffer *commandBuffer | ||||
| ) { | ||||
| 	NULL_RETURN(device); | ||||
| 	device->EndComputePass( | ||||
| 		device->driverData | ||||
| 		device->driverData, | ||||
| 		commandBuffer | ||||
| 	); | ||||
| } | ||||
| 
 | ||||
|  | @ -775,11 +779,13 @@ void Refresh_UnmapCpuBuffer( | |||
| /* Copy Pass */ | ||||
| 
 | ||||
| void Refresh_BeginCopyPass( | ||||
| 	Refresh_Device *device | ||||
| 	Refresh_Device *device, | ||||
| 	Refresh_CommandBuffer *commandBuffer | ||||
| ) { | ||||
| 	NULL_RETURN(device); | ||||
| 	device->BeginCopyPass( | ||||
| 		device->driverData | ||||
| 		device->driverData, | ||||
| 		commandBuffer | ||||
| 	); | ||||
| } | ||||
| 
 | ||||
|  | @ -931,11 +937,13 @@ void Refresh_GenerateMipmaps( | |||
| } | ||||
| 
 | ||||
| void Refresh_EndCopyPass( | ||||
| 	Refresh_Device *device | ||||
| 	Refresh_Device *device, | ||||
| 	Refresh_CommandBuffer *commandBuffer | ||||
| ) { | ||||
| 	NULL_RETURN(device); | ||||
| 	device->EndCopyPass( | ||||
| 		device->driverData | ||||
| 		device->driverData, | ||||
| 		commandBuffer | ||||
| 	); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -378,7 +378,8 @@ struct Refresh_Device | |||
| 	/* Compute Pass */ | ||||
| 
 | ||||
| 	void (*BeginComputePass)( | ||||
| 		Refresh_Renderer *driverData | ||||
| 		Refresh_Renderer *driverData, | ||||
| 		Refresh_CommandBuffer *commandBuffer | ||||
| 	); | ||||
| 
 | ||||
| 	void (*BindComputePipeline)( | ||||
|  | @ -417,7 +418,8 @@ struct Refresh_Device | |||
| 	); | ||||
| 
 | ||||
| 	void (*EndComputePass)( | ||||
| 		Refresh_Renderer *driverData | ||||
| 		Refresh_Renderer *driverData, | ||||
| 		Refresh_CommandBuffer *commandBuffer | ||||
| 	); | ||||
| 
 | ||||
| 	/* CpuBuffer map/unmap */ | ||||
|  | @ -437,7 +439,8 @@ struct Refresh_Device | |||
| 	/* Copy Pass */ | ||||
| 
 | ||||
| 	void (*BeginCopyPass)( | ||||
| 		Refresh_Renderer *driverData | ||||
| 		Refresh_Renderer *driverData, | ||||
| 		Refresh_CommandBuffer *commandBuffer | ||||
| 	); | ||||
| 
 | ||||
| 	void (*UploadToTexture)( | ||||
|  | @ -510,7 +513,8 @@ struct Refresh_Device | |||
| 	); | ||||
| 
 | ||||
| 	void (*EndCopyPass)( | ||||
| 		Refresh_Renderer *driverData | ||||
| 		Refresh_Renderer *driverData, | ||||
| 		Refresh_CommandBuffer *commandBuffer | ||||
| 	); | ||||
| 
 | ||||
| 	/* Submission/Presentation */ | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue