MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / getGFXReductionMode

Function getGFXReductionMode

Source/Falcor/Core/API/Sampler.cpp:73–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73gfx::TextureReductionOp getGFXReductionMode(TextureReductionMode mode)
74{
75 switch (mode)
76 {
77 case Falcor::TextureReductionMode::Standard:
78 return gfx::TextureReductionOp::Average;
79 case Falcor::TextureReductionMode::Comparison:
80 return gfx::TextureReductionOp::Comparison;
81 case Falcor::TextureReductionMode::Min:
82 return gfx::TextureReductionOp::Minimum;
83 case Falcor::TextureReductionMode::Max:
84 return gfx::TextureReductionOp::Maximum;
85 default:
86 return gfx::TextureReductionOp::Average;
87 break;
88 }
89}
90} // namespace
91
92gfx::ComparisonFunc getGFXComparisonFunc(ComparisonFunc func);

Callers 1

SamplerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected