Version: Unity 6.3 LTS (6000.3)
LanguageEnglish
  • C#

PlayerSettings.vulkanEnableSetSRGBWrite

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual
public static bool vulkanEnableSetSRGBWrite;

Description

Enables the ability to toggle sRGB write mode on Vulkan framebuffers.

In a Linear Color Space workflow, enabling sRGB write mode allows the GPU to automatically perform linear-to-sRGB conversion and ensures that blending operations are mathematically correct. This setting is always enabled in Editor mode.
This is particularly useful for projects that require parity with OpenGL's GL_FRAMEBUFFER_SRGB behavior or for custom rendering pipelines that need to precisely control when gamma correction is applied (e.g., bypassing it for UI overlays or specific post-processing passes).

Note: Enabling this setting requires an extra blit operation when presenting the back buffer, which can lead to performance degradation, particularly on mobile/tile-based GPUs. It should remain disabled unless your shaders or workflow explicitly require the ability to toggle the sRGB write state.

Additional resources: Linear Color Space in Unity