blob: 7150e17bf9e00897f8ca6b3f106b9ebda2aa034e [file] [log] [blame]
Nicolas Capens0bac2852016-05-07 06:09:58 -04001// Copyright 2016 The SwiftShader Authors. All Rights Reserved.
John Bauman66b8ab22014-05-06 15:57:45 -04002//
Nicolas Capens0bac2852016-05-07 06:09:58 -04003// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
John Bauman66b8ab22014-05-06 15:57:45 -04006//
Nicolas Capens0bac2852016-05-07 06:09:58 -04007// http://www.apache.org/licenses/LICENSE-2.0
John Bauman66b8ab22014-05-06 15:57:45 -04008//
Nicolas Capens0bac2852016-05-07 06:09:58 -04009// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
John Bauman66b8ab22014-05-06 15:57:45 -040014
15#ifndef sw_Rasterizer_hpp
16#define sw_Rasterizer_hpp
17
18#include "Context.hpp"
John Bauman66b8ab22014-05-06 15:57:45 -040019#include "PixelProcessor.hpp"
Nicolas Capens708c24b2017-10-26 13:07:10 -040020#include "Main/Config.hpp"
John Bauman66b8ab22014-05-06 15:57:45 -040021
22namespace sw
23{
Nicolas Capens48461502018-08-06 14:20:45 -040024 using namespace rr;
25
Nicolas Capens4f172c72016-01-13 08:34:30 -050026 class Rasterizer : public Function<Void(Pointer<Byte>, Int, Int, Pointer<Byte>)>
John Bauman66b8ab22014-05-06 15:57:45 -040027 {
28 public:
Nicolas Capensba53fbf2016-01-14 13:43:42 -050029 Rasterizer() : primitive(Arg<0>()), count(Arg<1>()), cluster(Arg<2>()), data(Arg<3>()) {}
Nico Weber226e1c62019-02-20 09:23:05 -050030 virtual ~Rasterizer() {}
John Bauman66b8ab22014-05-06 15:57:45 -040031
32 protected:
Nicolas Capens96d4e092016-11-18 14:22:38 -050033 Pointer<Byte> primitive;
34 Int count;
35 Int cluster;
36 Pointer<Byte> data;
John Bauman66b8ab22014-05-06 15:57:45 -040037 };
38}
39
40#endif // sw_Rasterizer_hpp