• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_,GenericVec4 * outputArraySrc1_,float * fragmentDepths_,int primitiveID_,int numFragmentOutputs_,int numSamples_,FaceType visibleFace_)29 FragmentShadingContext::FragmentShadingContext (const GenericVec4* varying0, const GenericVec4* varying1, const GenericVec4* varying2, GenericVec4* outputArray_, GenericVec4* outputArraySrc1_, float* fragmentDepths_, int primitiveID_, int numFragmentOutputs_, int numSamples_, FaceType visibleFace_)
30 	: outputArray			(outputArray_)
31 	, outputArraySrc1		(outputArraySrc1_)
32 	, primitiveID			(primitiveID_)
33 	, numFragmentOutputs	(numFragmentOutputs_)
34 	, numSamples			(numSamples_)
35 	, fragmentDepths		(fragmentDepths_)
36 	, visibleFace			(visibleFace_)
37 {
38 	varyings[0] = varying0;
39 	varyings[1] = varying1;
40 	varyings[2] = varying2;
41 }
42 
43 } // rr
44