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

Function getGFXBlendOp

Source/Falcor/Core/API/GraphicsStateObject.cpp:79–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79gfx::BlendOp getGFXBlendOp(BlendState::BlendOp op)
80{
81 switch (op)
82 {
83 case Falcor::BlendState::BlendOp::Add:
84 return gfx::BlendOp::Add;
85 case Falcor::BlendState::BlendOp::Subtract:
86 return gfx::BlendOp::Subtract;
87 case Falcor::BlendState::BlendOp::ReverseSubtract:
88 return gfx::BlendOp::ReverseSubtract;
89 case Falcor::BlendState::BlendOp::Min:
90 return gfx::BlendOp::Min;
91 case Falcor::BlendState::BlendOp::Max:
92 return gfx::BlendOp::Max;
93 default:
94 FALCOR_UNREACHABLE();
95 return gfx::BlendOp::Add;
96 }
97}
98
99gfx::StencilOp getGFXStencilOp(DepthStencilState::StencilOp op)
100{

Callers 1

GraphicsStateObjectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected