Buffer and Submission Rework #1

Merged
cosmonaut merged 5 commits from ubo_rework into main 2022-01-12 22:41:12 +00:00
4 changed files with 1747 additions and 1332 deletions

View File

@ -983,7 +983,7 @@ REFRESHAPI void Refresh_SetBufferData(
*/
REFRESHAPI uint32_t Refresh_PushVertexShaderUniforms(
Refresh_Device *device,
Refresh_GraphicsPipeline *pipeline,
Refresh_CommandBuffer * commandBuffer,
void *data,
uint32_t dataLengthInBytes
);
@ -1000,7 +1000,7 @@ REFRESHAPI uint32_t Refresh_PushVertexShaderUniforms(
*/
REFRESHAPI uint32_t Refresh_PushFragmentShaderUniforms(
Refresh_Device *device,
Refresh_GraphicsPipeline *pipeline,
Refresh_CommandBuffer *commandBuffer,
void *data,
uint32_t dataLengthInBytes
);
@ -1017,7 +1017,7 @@ REFRESHAPI uint32_t Refresh_PushFragmentShaderUniforms(
*/
REFRESHAPI uint32_t Refresh_PushComputeShaderUniforms(
Refresh_Device *device,
Refresh_ComputePipeline *pipeline,
Refresh_CommandBuffer * commandBuffer,
void *data,
uint32_t dataLengthInBytes
);

View File

@ -470,14 +470,14 @@ void Refresh_SetBufferData(
uint32_t Refresh_PushVertexShaderUniforms(
Refresh_Device *device,
Refresh_GraphicsPipeline *pipeline,
Refresh_CommandBuffer *commandBuffer,
void *data,
uint32_t dataLengthInBytes
) {
if (device == NULL) { return 0; }
return device->PushVertexShaderUniforms(
device->driverData,
pipeline,
commandBuffer,
data,
dataLengthInBytes
);
@ -485,14 +485,14 @@ uint32_t Refresh_PushVertexShaderUniforms(
uint32_t Refresh_PushFragmentShaderUniforms(
Refresh_Device *device,
Refresh_GraphicsPipeline * pipeline,
Refresh_CommandBuffer *commandBuffer,
void *data,
uint32_t dataLengthInBytes
) {
if (device == NULL) { return 0; }
return device->PushFragmentShaderUniforms(
device->driverData,
pipeline,
commandBuffer,
data,
dataLengthInBytes
);
@ -500,14 +500,14 @@ uint32_t Refresh_PushFragmentShaderUniforms(
uint32_t Refresh_PushComputeShaderUniforms(
Refresh_Device *device,
Refresh_ComputePipeline *pipeline,
Refresh_CommandBuffer *commandBuffer,
void *data,
uint32_t dataLengthInBytes
) {
if (device == NULL) { return 0; }
return device->PushComputeShaderUniforms(
device->driverData,
pipeline,
commandBuffer,
data,
dataLengthInBytes
);

View File

@ -314,21 +314,21 @@ struct Refresh_Device
uint32_t(*PushVertexShaderUniforms)(
Refresh_Renderer *driverData,
Refresh_GraphicsPipeline* pipeline,
Refresh_CommandBuffer *commandBuffer,
void *data,
uint32_t dataLengthInBytes
);
uint32_t(*PushFragmentShaderUniforms)(
Refresh_Renderer *driverData,
Refresh_GraphicsPipeline *pipeline,
Refresh_CommandBuffer *commandBuffer,
void *data,
uint32_t dataLengthInBytes
);
uint32_t (*PushComputeShaderUniforms)(
Refresh_Renderer *driverData,
Refresh_ComputePipeline *pipeline,
Refresh_CommandBuffer *commandBuffer,
void *data,
uint32_t dataLengthInBytes
);

File diff suppressed because it is too large Load Diff