MCPcopy Create free account
hub / github.com/DiligentGraphics/DiligentFX / UpdateUI

Method UpdateUI

PostProcess/SuperResolution/src/SuperResolution.cpp:134–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134bool SuperResolution::UpdateUI(HLSL::SuperResolutionAttribs& Attribs, FEATURE_FLAGS& FeatureFlags)
135{
136 bool bAttribsChanged = false;
137
138 bAttribsChanged |= ImGui::SliderFloat("Sharpness", &Attribs.Sharpening, 0.0f, 1.0f);
139 bAttribsChanged |= ImGui::SliderFloat("Resolution Scale", &Attribs.ResolutionScale, 0.5f, 1.0f);
140
141 return bAttribsChanged;
142}
143
144ITextureView* SuperResolution::GetUpsampledTextureSRV() const
145{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected