forked from MoonsideGames/Refresh
remove command buffer from QueueDestroy calls
parent
67e3a8799c
commit
5fe4c8dbf3
|
@ -925,7 +925,6 @@ REFRESHAPI void Refresh_GetBufferData(
|
|||
*/
|
||||
REFRESHAPI void Refresh_QueueDestroyTexture(
|
||||
Refresh_Device *device,
|
||||
Refresh_CommandBuffer *commandBuffer,
|
||||
Refresh_Texture *texture
|
||||
);
|
||||
|
||||
|
@ -938,7 +937,6 @@ REFRESHAPI void Refresh_QueueDestroyTexture(
|
|||
*/
|
||||
REFRESHAPI void Refresh_QueueDestroySampler(
|
||||
Refresh_Device *device,
|
||||
Refresh_CommandBuffer *commandBuffer,
|
||||
Refresh_Sampler *sampler
|
||||
);
|
||||
|
||||
|
@ -951,7 +949,6 @@ REFRESHAPI void Refresh_QueueDestroySampler(
|
|||
*/
|
||||
REFRESHAPI void Refresh_QueueDestroyBuffer(
|
||||
Refresh_Device *device,
|
||||
Refresh_CommandBuffer *commandBuffer,
|
||||
Refresh_Buffer *buffer
|
||||
);
|
||||
|
||||
|
@ -964,7 +961,6 @@ REFRESHAPI void Refresh_QueueDestroyBuffer(
|
|||
*/
|
||||
REFRESHAPI void Refresh_QueueDestroyShaderModule(
|
||||
Refresh_Device *device,
|
||||
Refresh_CommandBuffer *commandBuffer,
|
||||
Refresh_ShaderModule *shaderModule
|
||||
);
|
||||
|
||||
|
@ -977,7 +973,6 @@ REFRESHAPI void Refresh_QueueDestroyShaderModule(
|
|||
*/
|
||||
REFRESHAPI void Refresh_QueueDestroyComputePipeline(
|
||||
Refresh_Device *device,
|
||||
Refresh_CommandBuffer *commandBuffer,
|
||||
Refresh_ComputePipeline *computePipeline
|
||||
);
|
||||
|
||||
|
@ -990,7 +985,6 @@ REFRESHAPI void Refresh_QueueDestroyComputePipeline(
|
|||
*/
|
||||
REFRESHAPI void Refresh_QueueDestroyGraphicsPipeline(
|
||||
Refresh_Device *device,
|
||||
Refresh_CommandBuffer *commandBuffer,
|
||||
Refresh_GraphicsPipeline *graphicsPipeline
|
||||
);
|
||||
|
||||
|
|
|
@ -507,78 +507,66 @@ void Refresh_GetBufferData(
|
|||
|
||||
void Refresh_QueueDestroyTexture(
|
||||
Refresh_Device *device,
|
||||
Refresh_CommandBuffer *commandBuffer,
|
||||
Refresh_Texture *texture
|
||||
) {
|
||||
NULL_RETURN(device);
|
||||
device->QueueDestroyTexture(
|
||||
device->driverData,
|
||||
commandBuffer,
|
||||
texture
|
||||
);
|
||||
}
|
||||
|
||||
void Refresh_QueueDestroySampler(
|
||||
Refresh_Device *device,
|
||||
Refresh_CommandBuffer *commandBuffer,
|
||||
Refresh_Sampler *sampler
|
||||
) {
|
||||
NULL_RETURN(device);
|
||||
device->QueueDestroySampler(
|
||||
device->driverData,
|
||||
commandBuffer,
|
||||
sampler
|
||||
);
|
||||
}
|
||||
|
||||
void Refresh_QueueDestroyBuffer(
|
||||
Refresh_Device *device,
|
||||
Refresh_CommandBuffer *commandBuffer,
|
||||
Refresh_Buffer *buffer
|
||||
) {
|
||||
NULL_RETURN(device);
|
||||
device->QueueDestroyBuffer(
|
||||
device->driverData,
|
||||
commandBuffer,
|
||||
buffer
|
||||
);
|
||||
}
|
||||
|
||||
void Refresh_QueueDestroyShaderModule(
|
||||
Refresh_Device *device,
|
||||
Refresh_CommandBuffer *commandBuffer,
|
||||
Refresh_ShaderModule *shaderModule
|
||||
) {
|
||||
NULL_RETURN(device);
|
||||
device->QueueDestroyShaderModule(
|
||||
device->driverData,
|
||||
commandBuffer,
|
||||
shaderModule
|
||||
);
|
||||
}
|
||||
|
||||
void Refresh_QueueDestroyComputePipeline(
|
||||
Refresh_Device *device,
|
||||
Refresh_CommandBuffer *commandBuffer,
|
||||
Refresh_ComputePipeline *computePipeline
|
||||
) {
|
||||
NULL_RETURN(device);
|
||||
device->QueueDestroyComputePipeline(
|
||||
device->driverData,
|
||||
commandBuffer,
|
||||
computePipeline
|
||||
);
|
||||
}
|
||||
|
||||
void Refresh_QueueDestroyGraphicsPipeline(
|
||||
Refresh_Device *device,
|
||||
Refresh_CommandBuffer *commandBuffer,
|
||||
Refresh_GraphicsPipeline *graphicsPipeline
|
||||
) {
|
||||
NULL_RETURN(device);
|
||||
device->QueueDestroyGraphicsPipeline(
|
||||
device->driverData,
|
||||
commandBuffer,
|
||||
graphicsPipeline
|
||||
);
|
||||
}
|
||||
|
|
|
@ -346,37 +346,31 @@ struct Refresh_Device
|
|||
|
||||
void(*QueueDestroyTexture)(
|
||||
Refresh_Renderer *driverData,
|
||||
Refresh_CommandBuffer *commandBuffer,
|
||||
Refresh_Texture *texture
|
||||
);
|
||||
|
||||
void(*QueueDestroySampler)(
|
||||
Refresh_Renderer *driverData,
|
||||
Refresh_CommandBuffer *commandBuffer,
|
||||
Refresh_Sampler *sampler
|
||||
);
|
||||
|
||||
void(*QueueDestroyBuffer)(
|
||||
Refresh_Renderer *driverData,
|
||||
Refresh_CommandBuffer *commandBuffer,
|
||||
Refresh_Buffer *buffer
|
||||
);
|
||||
|
||||
void(*QueueDestroyShaderModule)(
|
||||
Refresh_Renderer *driverData,
|
||||
Refresh_CommandBuffer *commandBuffer,
|
||||
Refresh_ShaderModule *shaderModule
|
||||
);
|
||||
|
||||
void(*QueueDestroyComputePipeline)(
|
||||
Refresh_Renderer *driverData,
|
||||
Refresh_CommandBuffer *commandBuffer,
|
||||
Refresh_ComputePipeline *computePipeline
|
||||
);
|
||||
|
||||
void(*QueueDestroyGraphicsPipeline)(
|
||||
Refresh_Renderer *driverData,
|
||||
Refresh_CommandBuffer *commandBuffer,
|
||||
Refresh_GraphicsPipeline *graphicsPipeline
|
||||
);
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue