xref: /aosp_15_r20/external/deqp/framework/referencerenderer/rrShadingContext.cpp (revision 35238bce31c2a825756842865a792f8cf7f89930)
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,
30                                                const GenericVec4 *varying2, GenericVec4 *outputArray_,
31                                                GenericVec4 *outputArraySrc1_, float *fragmentDepths_, int primitiveID_,
32                                                int numFragmentOutputs_, int numSamples_, FaceType visibleFace_)
33     : outputArray(outputArray_)
34     , outputArraySrc1(outputArraySrc1_)
35     , primitiveID(primitiveID_)
36     , numFragmentOutputs(numFragmentOutputs_)
37     , numSamples(numSamples_)
38     , fragmentDepths(fragmentDepths_)
39     , visibleFace(visibleFace_)
40 {
41     varyings[0] = varying0;
42     varyings[1] = varying1;
43     varyings[2] = varying2;
44 }
45 
46 } // namespace rr
47