remove map/unmap calls
	
		
			
	
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is failing
				
					Details
				
			
		
	
				
					
				
			
				
	
				continuous-integration/drone/push Build is failing
				
					Details
				
			
		
	
							parent
							
								
									61386a27ba
								
							
						
					
					
						commit
						fdb29ade82
					
				|  | @ -1043,28 +1043,6 @@ REFRESHAPI void Refresh_EndComputePass( | |||
| 	Refresh_CommandBuffer *commandBuffer | ||||
| ); | ||||
| 
 | ||||
| /* CpuBuffer Map */ | ||||
| 
 | ||||
| /* Maps a CpuBuffer to host memory. Returns a pointer that can be copied to.
 | ||||
|  * | ||||
|  * NOTE: Mapping a CpuBuffer that is already mapped is an error. | ||||
|  * | ||||
|  * offsetInBytes: The offset of the buffer to map. | ||||
|  * sizeInBytes: The number of bytes of memory to map. | ||||
|  */ | ||||
| REFRESHAPI void* Refresh_MapCpuBuffer( | ||||
| 	Refresh_Device *device, | ||||
| 	Refresh_CpuBuffer *buffer, | ||||
| 	uint32_t offsetInBytes, | ||||
| 	uint32_t sizeInBytes | ||||
| ); | ||||
| 
 | ||||
| /* Unmaps a mapped CpuBuffer. Call this when you are done copying data. */ | ||||
| REFRESHAPI void Refresh_UnmapCpuBuffer( | ||||
| 	Refresh_Device *device, | ||||
| 	Refresh_CpuBuffer *buffer | ||||
| ); | ||||
| 
 | ||||
| /* Copy Pass */ | ||||
| 
 | ||||
| /* Begins a copy pass. */ | ||||
|  |  | |||
|  | @ -730,34 +730,6 @@ void Refresh_EndComputePass( | |||
| 	); | ||||
| } | ||||
| 
 | ||||
| /* CpuBuffer Map */ | ||||
| 
 | ||||
| void* Refresh_MapCpuBuffer( | ||||
| 	Refresh_Device *device, | ||||
| 	Refresh_CpuBuffer *buffer, | ||||
| 	uint32_t offsetInBytes, | ||||
| 	uint32_t sizeInBytes | ||||
| ) { | ||||
| 	NULL_RETURN_NULL(device); | ||||
| 	return device->MapCpuBuffer( | ||||
| 		device->driverData, | ||||
| 		buffer, | ||||
| 		offsetInBytes, | ||||
| 		sizeInBytes | ||||
| 	); | ||||
| } | ||||
| 
 | ||||
| void Refresh_UnmapCpuBuffer( | ||||
| 	Refresh_Device *device, | ||||
| 	Refresh_CpuBuffer *buffer | ||||
| ) { | ||||
| 	NULL_RETURN(device); | ||||
| 	device->UnmapCpuBuffer( | ||||
| 		device->driverData, | ||||
| 		buffer | ||||
| 	); | ||||
| } | ||||
| 
 | ||||
| /* Copy Pass */ | ||||
| 
 | ||||
| void Refresh_BeginCopyPass( | ||||
|  |  | |||
|  | @ -413,20 +413,6 @@ struct Refresh_Device | |||
| 		Refresh_CommandBuffer *commandBuffer | ||||
| 	); | ||||
| 
 | ||||
| 	/* CpuBuffer map/unmap */ | ||||
| 
 | ||||
| 	void* (*MapCpuBuffer)( | ||||
| 		Refresh_Renderer *driverData, | ||||
| 		Refresh_CpuBuffer *buffer, | ||||
| 		uint32_t offsetInBytes, | ||||
| 		uint32_t sizeInBytes | ||||
| 	); | ||||
| 
 | ||||
| 	void (*UnmapCpuBuffer)( | ||||
| 		Refresh_Renderer *driverData, | ||||
| 		Refresh_CpuBuffer *buffer | ||||
| 	); | ||||
| 
 | ||||
| 	/* Copy Pass */ | ||||
| 
 | ||||
| 	void (*BeginCopyPass)( | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue