mirror of
https://github.com/ocornut/imgui.git
synced 2025-02-20 04:21:01 +01:00
.
This commit is contained in:
parent
6bd997d2bf
commit
b2b1940e2a
@ -54,7 +54,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// TODO: Pass in configuration parameter in ImGui standard manner.
|
// TODO: Pass in configuration parameter in ImGui standard manner.
|
||||||
bool ImGuiConfigFlags_OutputDegamma = false; // TODO: Enable to degamma into linear target as required.
|
bool ImGuiConfigFlags_ConvertSRGBToLinear = false; // TODO: Enable to degamma into linear target as required.
|
||||||
|
|
||||||
// DirectX data
|
// DirectX data
|
||||||
struct ImGui_ImplDX12_RenderBuffers;
|
struct ImGui_ImplDX12_RenderBuffers;
|
||||||
@ -643,7 +643,7 @@ float3 RemoveSRGBCurve (float3 x)\
|
|||||||
return out_col; \
|
return out_col; \
|
||||||
}";
|
}";
|
||||||
|
|
||||||
auto pixelShader = ImGuiConfigFlags_OutputDegamma ? pixelShader_linear_target : pixelShader_straight;
|
auto pixelShader = ImGuiConfigFlags_ConvertSRGBToLinear ? pixelShader_linear_target : pixelShader_straight;
|
||||||
if (FAILED(D3DCompile(pixelShader, strlen(pixelShader), nullptr, nullptr, nullptr, "main", "ps_5_0", 0, 0, &pixelShaderBlob, nullptr)))
|
if (FAILED(D3DCompile(pixelShader, strlen(pixelShader), nullptr, nullptr, nullptr, "main", "ps_5_0", 0, 0, &pixelShaderBlob, nullptr)))
|
||||||
{
|
{
|
||||||
vertexShaderBlob->Release();
|
vertexShaderBlob->Release();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user