forked from MoonsideGames/Refresh
rename PushShaderParams to PushShaderUniforms
parent
254d209a48
commit
76c845cbb4
|
@ -464,14 +464,14 @@ void Refresh_SetBufferData(
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t Refresh_PushVertexShaderParams(
|
uint32_t Refresh_PushVertexShaderUniforms(
|
||||||
Refresh_Device *device,
|
Refresh_Device *device,
|
||||||
Refresh_CommandBuffer *commandBuffer,
|
Refresh_CommandBuffer *commandBuffer,
|
||||||
void *data,
|
void *data,
|
||||||
uint32_t elementCount
|
uint32_t elementCount
|
||||||
) {
|
) {
|
||||||
if (device == NULL) { return 0; }
|
if (device == NULL) { return 0; }
|
||||||
return device->PushVertexShaderParams(
|
return device->PushVertexShaderUniforms(
|
||||||
device->driverData,
|
device->driverData,
|
||||||
commandBuffer,
|
commandBuffer,
|
||||||
data,
|
data,
|
||||||
|
@ -479,14 +479,14 @@ uint32_t Refresh_PushVertexShaderParams(
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t Refresh_PushFragmentShaderParams(
|
uint32_t Refresh_PushFragmentShaderUniforms(
|
||||||
Refresh_Device *device,
|
Refresh_Device *device,
|
||||||
Refresh_CommandBuffer *commandBuffer,
|
Refresh_CommandBuffer *commandBuffer,
|
||||||
void *data,
|
void *data,
|
||||||
uint32_t elementCount
|
uint32_t elementCount
|
||||||
) {
|
) {
|
||||||
if (device == NULL) { return 0; }
|
if (device == NULL) { return 0; }
|
||||||
return device->PushFragmentShaderParams(
|
return device->PushFragmentShaderUniforms(
|
||||||
device->driverData,
|
device->driverData,
|
||||||
commandBuffer,
|
commandBuffer,
|
||||||
data,
|
data,
|
||||||
|
|
|
@ -310,14 +310,14 @@ struct Refresh_Device
|
||||||
uint32_t dataLength
|
uint32_t dataLength
|
||||||
);
|
);
|
||||||
|
|
||||||
uint32_t(*PushVertexShaderParams)(
|
uint32_t(*PushVertexShaderUniforms)(
|
||||||
Refresh_Renderer *driverData,
|
Refresh_Renderer *driverData,
|
||||||
Refresh_CommandBuffer *commandBuffer,
|
Refresh_CommandBuffer *commandBuffer,
|
||||||
void *data,
|
void *data,
|
||||||
uint32_t elementCount
|
uint32_t elementCount
|
||||||
);
|
);
|
||||||
|
|
||||||
uint32_t(*PushFragmentShaderParams)(
|
uint32_t(*PushFragmentShaderUniforms)(
|
||||||
Refresh_Renderer *driverData,
|
Refresh_Renderer *driverData,
|
||||||
Refresh_CommandBuffer *commandBuffer,
|
Refresh_CommandBuffer *commandBuffer,
|
||||||
void *data,
|
void *data,
|
||||||
|
@ -516,8 +516,8 @@ struct Refresh_Device
|
||||||
ASSIGN_DRIVER_FUNC(CopyTextureToTexture, name) \
|
ASSIGN_DRIVER_FUNC(CopyTextureToTexture, name) \
|
||||||
ASSIGN_DRIVER_FUNC(CopyTextureToBuffer, name) \
|
ASSIGN_DRIVER_FUNC(CopyTextureToBuffer, name) \
|
||||||
ASSIGN_DRIVER_FUNC(SetBufferData, name) \
|
ASSIGN_DRIVER_FUNC(SetBufferData, name) \
|
||||||
ASSIGN_DRIVER_FUNC(PushVertexShaderParams, name) \
|
ASSIGN_DRIVER_FUNC(PushVertexShaderUniforms, name) \
|
||||||
ASSIGN_DRIVER_FUNC(PushFragmentShaderParams, name) \
|
ASSIGN_DRIVER_FUNC(PushFragmentShaderUniforms, name) \
|
||||||
ASSIGN_DRIVER_FUNC(PushComputeShaderParams, name) \
|
ASSIGN_DRIVER_FUNC(PushComputeShaderParams, name) \
|
||||||
ASSIGN_DRIVER_FUNC(BindVertexSamplers, name) \
|
ASSIGN_DRIVER_FUNC(BindVertexSamplers, name) \
|
||||||
ASSIGN_DRIVER_FUNC(BindFragmentSamplers, name) \
|
ASSIGN_DRIVER_FUNC(BindFragmentSamplers, name) \
|
||||||
|
|
|
@ -5907,7 +5907,7 @@ static void VULKAN_INTERNAL_MaybeExpandStagingBuffer(
|
||||||
Refresh_LogError("Failed to expand texture staging buffer!");
|
Refresh_LogError("Failed to expand texture staging buffer!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void VULKAN_INTERNAL_MaybeBeginTransferCommandBuffer(
|
static void VULKAN_INTERNAL_MaybeBeginTransferCommandBuffer(
|
||||||
|
@ -6476,7 +6476,7 @@ static void VULKAN_SetBufferData(
|
||||||
#undef SUBBUF
|
#undef SUBBUF
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint32_t VULKAN_PushVertexShaderParams(
|
static uint32_t VULKAN_PushVertexShaderUniforms(
|
||||||
Refresh_Renderer *driverData,
|
Refresh_Renderer *driverData,
|
||||||
Refresh_CommandBuffer *commandBuffer,
|
Refresh_CommandBuffer *commandBuffer,
|
||||||
void *data,
|
void *data,
|
||||||
|
@ -6512,7 +6512,7 @@ static uint32_t VULKAN_PushVertexShaderParams(
|
||||||
return renderer->vertexUBOOffset;
|
return renderer->vertexUBOOffset;
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint32_t VULKAN_PushFragmentShaderParams(
|
static uint32_t VULKAN_PushFragmentShaderUniforms(
|
||||||
Refresh_Renderer *driverData,
|
Refresh_Renderer *driverData,
|
||||||
Refresh_CommandBuffer *commandBuffer,
|
Refresh_CommandBuffer *commandBuffer,
|
||||||
void *data,
|
void *data,
|
||||||
|
|
Loading…
Reference in New Issue