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_)29 FragmentShadingContext::FragmentShadingContext (const GenericVec4* varying0, const GenericVec4* varying1, const GenericVec4* varying2, GenericVec4* outputArray_, float* fragmentDepths_, int primitiveID_, int numFragmentOutputs_, int numSamples_)
30 	: outputArray			(outputArray_)
31 	, primitiveID			(primitiveID_)
32 	, numFragmentOutputs	(numFragmentOutputs_)
33 	, numSamples			(numSamples_)
34 	, fragmentDepths		(fragmentDepths_)
35 {
36 	varyings[0] = varying0;
37 	varyings[1] = varying1;
38 	varyings[2] = varying2;
39 }
40 
41 } // rr
42