mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-07-09 02:39:42 +00:00
Fixed formatting
This commit is contained in:
@@ -3847,11 +3847,10 @@ static bool VULKAN_SetDrawState(SDL_Renderer *renderer, const SDL_RenderCommand
|
||||
// First time, grab offset 0
|
||||
rendererData->currentConstantBufferOffset = 0;
|
||||
constantBufferOffset = 0;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
// Align the next address to the minUniformBufferOffsetAlignment
|
||||
VkDeviceSize alignment = rendererData->physicalDeviceProperties.limits.minUniformBufferOffsetAlignment;
|
||||
SDL_assert(rendererData->currentConstantBufferOffset >= 0 );
|
||||
SDL_assert(rendererData->currentConstantBufferOffset >= 0);
|
||||
rendererData->currentConstantBufferOffset += (int32_t)(sizeof(VULKAN_PixelShaderConstants) + alignment - 1) & ~(alignment - 1);
|
||||
constantBufferOffset = rendererData->currentConstantBufferOffset;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user