1 /*-------------------------------------------------------------------------
2 * drawElements Quality Program Reference Renderer
3 * -----------------------------------------------
4 *
5 * Copyright 2014 The Android Open Source Project
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 *//*!
20 * \file
21 * \brief Shading context
22 *//*--------------------------------------------------------------------*/
23
24 #include "rrShadingContext.hpp"
25
26 namespace rr
27 {
28
FragmentShadingContext(const GenericVec4 * varying0,const GenericVec4 * varying1,const GenericVec4 * varying2,GenericVec4 * outputArray_,float * fragmentDepths_,int primitiveID_,int numFragmentOutputs_,int numSamples_,FaceType visibleFace_)29 FragmentShadingContext::FragmentShadingContext (const GenericVec4* varying0, const GenericVec4* varying1, const GenericVec4* varying2, GenericVec4* outputArray_, float* fragmentDepths_, int primitiveID_, int numFragmentOutputs_, int numSamples_, FaceType visibleFace_)
30 : outputArray (outputArray_)
31 , primitiveID (primitiveID_)
32 , numFragmentOutputs (numFragmentOutputs_)
33 , numSamples (numSamples_)
34 , fragmentDepths (fragmentDepths_)
35 , visibleFace (visibleFace_)
36 {
37 varyings[0] = varying0;
38 varyings[1] = varying1;
39 varyings[2] = varying2;
40 }
41
42 } // rr
43