Lines Matching refs:src
77 void translateStencilState (const StencilState& src, rr::StencilState& dst)
79 dst.func = sglr::rr_util::mapGLTestFunc(src.function);
80 dst.ref = src.reference;
81 dst.compMask = src.compareMask;
82 dst.sFail = sglr::rr_util::mapGLStencilOp(src.stencilFailOp);
83 dst.dpFail = sglr::rr_util::mapGLStencilOp(src.depthFailOp);
84 dst.dpPass = sglr::rr_util::mapGLStencilOp(src.depthPassOp);
85 dst.writeMask = src.writeMask;
88 void translateBlendState (const BlendState& src, rr::BlendState& dst)
90 dst.equation = sglr::rr_util::mapGLBlendEquation(src.equation);
91 dst.srcFunc = sglr::rr_util::mapGLBlendFunc(src.srcFunc);
92 dst.dstFunc = sglr::rr_util::mapGLBlendFunc(src.dstFunc);
95 void translateState (const RenderState& src, rr::FragmentOperationState& dst, const tcu::RenderTarget& renderTarget)
100 dst.scissorTestEnabled = src.scissorTestEnabled;
101 dst.scissorRectangle = src.scissorRectangle;
102 dst.stencilTestEnabled = hasStencil && src.stencilTestEnabled;
103 dst.depthTestEnabled = hasDepth && src.depthTestEnabled;
104 dst.blendMode = src.blendEnabled ? rr::BLENDMODE_STANDARD : rr::BLENDMODE_NONE;
107 dst.colorMask = src.colorMask;
111 dst.depthFunc = sglr::rr_util::mapGLTestFunc(src.depthFunc);
112 dst.depthMask = src.depthWriteMask;
117 translateStencilState(src.stencil[rr::FACETYPE_BACK], dst.stencilStates[rr::FACETYPE_BACK]);
118 translateStencilState(src.stencil[rr::FACETYPE_FRONT], dst.stencilStates[rr::FACETYPE_FRONT]);
121 if (src.blendEnabled)
123 translateBlendState(src.blendRGBState, dst.blendRGBState);
124 translateBlendState(src.blendAState, dst.blendAState);
125 dst.blendColor = tcu::clamp(src.blendColor, Vec4(0.0f), Vec4(1.0f));