blob: 467acae64c11069cdc0f51ee451e062cab0aec40 [file] [log] [blame]
joshualitt8072caa2015-02-12 14:20:52 -08001/*
2 * Copyright 2013 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef GrPrimitiveProcessor_DEFINED
9#define GrPrimitiveProcessor_DEFINED
10
Greg Danielf91aeb22019-06-18 09:58:02 -040011#include "src/gpu/GrColor.h"
Mike Kleinc0bd9f92019-04-23 12:05:21 -050012#include "src/gpu/GrNonAtomicRef.h"
13#include "src/gpu/GrProcessor.h"
14#include "src/gpu/GrShaderVar.h"
Brian Salomondf1bd6d2020-03-26 20:37:01 -040015#include "src/gpu/GrSwizzle.h"
joshualitt8072caa2015-02-12 14:20:52 -080016
17/*
18 * The GrPrimitiveProcessor represents some kind of geometric primitive. This includes the shape
19 * of the primitive and the inherent color of the primitive. The GrPrimitiveProcessor is
20 * responsible for providing a color and coverage input into the Ganesh rendering pipeline. Through
21 * optimization, Ganesh may decide a different color, no color, and / or no coverage are required
22 * from the GrPrimitiveProcessor, so the GrPrimitiveProcessor must be able to support this
Brian Salomon09d994e2016-12-21 11:14:46 -050023 * functionality.
joshualitt8072caa2015-02-12 14:20:52 -080024 *
25 * There are two feedback loops between the GrFragmentProcessors, the GrXferProcessor, and the
Brian Salomoncb30bb22017-02-12 09:28:54 -050026 * GrPrimitiveProcessor. These loops run on the CPU and to determine known properties of the final
27 * color and coverage inputs to the GrXferProcessor in order to perform optimizations that preserve
28 * correctness. The GrDrawOp seeds these loops with initial color and coverage, in its
Brian Salomona811b122017-03-30 08:21:32 -040029 * getProcessorAnalysisInputs implementation. These seed values are processed by the
Brian Salomon5298dc82017-02-22 11:52:03 -050030 * subsequent
Brian Salomon92aee3d2016-12-21 09:20:25 -050031 * stages of the rendering pipeline and the output is then fed back into the GrDrawOp in
32 * the applyPipelineOptimizations call, where the op can use the information to inform decisions
33 * about GrPrimitiveProcessor creation.
joshualitt8072caa2015-02-12 14:20:52 -080034 */
35
egdaniele659a582015-11-13 09:55:43 -080036class GrGLSLPrimitiveProcessor;
Chris Dalton54c90932020-06-24 10:51:52 -060037class GrGLSLUniformHandler;
joshualitt8072caa2015-02-12 14:20:52 -080038
Brian Salomon7eae3e02018-08-07 14:02:38 +000039/**
joshualitt8072caa2015-02-12 14:20:52 -080040 * GrPrimitiveProcessor defines an interface which all subclasses must implement. All
41 * GrPrimitiveProcessors must proivide seed color and coverage for the Ganesh color / coverage
42 * pipelines, and they must provide some notion of equality
Brian Salomon7eae3e02018-08-07 14:02:38 +000043 *
44 * TODO: This class does not really need to be ref counted. Instances should be allocated using
45 * GrOpFlushState's arena and destroyed when the arena is torn down.
joshualitt8072caa2015-02-12 14:20:52 -080046 */
Brian Salomon7eae3e02018-08-07 14:02:38 +000047class GrPrimitiveProcessor : public GrProcessor, public GrNonAtomicRef<GrPrimitiveProcessor> {
joshualitt8072caa2015-02-12 14:20:52 -080048public:
Brian Salomone782f842018-07-31 13:53:11 -040049 class TextureSampler;
50
Brian Salomon92be2f72018-06-19 14:33:47 -040051 /** Describes a vertex or instance attribute. */
Brian Salomon70132d02018-05-29 15:33:06 -040052 class Attribute {
53 public:
Brian Salomon70132d02018-05-29 15:33:06 -040054 constexpr Attribute() = default;
Brian Osmand4c29702018-09-14 16:16:55 -040055 constexpr Attribute(const char* name,
56 GrVertexAttribType cpuType,
57 GrSLType gpuType)
Michael Ludwig553db622020-06-19 10:47:30 -040058 : fName(name), fCPUType(cpuType), fGPUType(gpuType) {
59 SkASSERT(name && gpuType != kVoid_GrSLType);
60 }
Brian Salomon92be2f72018-06-19 14:33:47 -040061 constexpr Attribute(const Attribute&) = default;
Brian Salomon70132d02018-05-29 15:33:06 -040062
Brian Salomon92be2f72018-06-19 14:33:47 -040063 Attribute& operator=(const Attribute&) = default;
Brian Salomon70132d02018-05-29 15:33:06 -040064
Michael Ludwig553db622020-06-19 10:47:30 -040065 constexpr bool isInitialized() const { return fGPUType != kVoid_GrSLType; }
Brian Salomon92be2f72018-06-19 14:33:47 -040066
67 constexpr const char* name() const { return fName; }
Brian Osmand4c29702018-09-14 16:16:55 -040068 constexpr GrVertexAttribType cpuType() const { return fCPUType; }
69 constexpr GrSLType gpuType() const { return fGPUType; }
Brian Salomon92be2f72018-06-19 14:33:47 -040070
71 inline constexpr size_t size() const;
72 constexpr size_t sizeAlign4() const { return SkAlign4(this->size()); }
Brian Salomon70132d02018-05-29 15:33:06 -040073
74 GrShaderVar asShaderVar() const {
Ben Wagnerdabd98c2020-03-25 15:17:18 -040075 return {fName, fGPUType, GrShaderVar::TypeModifier::In};
Brian Salomon70132d02018-05-29 15:33:06 -040076 }
77
78 private:
79 const char* fName = nullptr;
Brian Osmand4c29702018-09-14 16:16:55 -040080 GrVertexAttribType fCPUType = kFloat_GrVertexAttribType;
Michael Ludwig553db622020-06-19 10:47:30 -040081 GrSLType fGPUType = kVoid_GrSLType;
joshualitt8072caa2015-02-12 14:20:52 -080082 };
83
Brian Osmanf04fb3c2018-11-12 15:34:00 -050084 class Iter {
85 public:
86 Iter() : fCurr(nullptr), fRemaining(0) {}
87 Iter(const Iter& iter) : fCurr(iter.fCurr), fRemaining(iter.fRemaining) {}
88 Iter& operator= (const Iter& iter) {
89 fCurr = iter.fCurr;
90 fRemaining = iter.fRemaining;
91 return *this;
92 }
93 Iter(const Attribute* attrs, int count) : fCurr(attrs), fRemaining(count) {
94 this->skipUninitialized();
95 }
96
97 bool operator!=(const Iter& that) const { return fCurr != that.fCurr; }
98 const Attribute& operator*() const { return *fCurr; }
99 void operator++() {
100 if (fRemaining) {
101 fRemaining--;
102 fCurr++;
103 this->skipUninitialized();
104 }
105 }
106
107 private:
108 void skipUninitialized() {
109 if (!fRemaining) {
110 fCurr = nullptr;
111 } else {
112 while (!fCurr->isInitialized()) {
113 ++fCurr;
114 }
115 }
116 }
117
118 const Attribute* fCurr;
119 int fRemaining;
120 };
121
122 class AttributeSet {
123 public:
124 Iter begin() const { return Iter(fAttributes, fCount); }
125 Iter end() const { return Iter(); }
126
Greg Danielb39d0762020-12-30 15:02:34 -0500127 int count() const { return fCount; }
128 size_t stride() const { return fStride; }
129
Brian Osmanf04fb3c2018-11-12 15:34:00 -0500130 private:
131 friend class GrPrimitiveProcessor;
132
133 void init(const Attribute* attrs, int count) {
134 fAttributes = attrs;
Brian Osmand3e71302018-12-06 11:17:35 -0500135 fRawCount = count;
Brian Osmanf04fb3c2018-11-12 15:34:00 -0500136 fCount = 0;
137 fStride = 0;
138 for (int i = 0; i < count; ++i) {
139 if (attrs[i].isInitialized()) {
140 fCount++;
141 fStride += attrs[i].sizeAlign4();
142 }
143 }
144 }
145
146 const Attribute* fAttributes = nullptr;
Brian Osmand3e71302018-12-06 11:17:35 -0500147 int fRawCount = 0;
Brian Osmanf04fb3c2018-11-12 15:34:00 -0500148 int fCount = 0;
149 size_t fStride = 0;
150 };
151
Brian Salomon92be2f72018-06-19 14:33:47 -0400152 GrPrimitiveProcessor(ClassID);
Ethan Nicholasabff9562017-10-09 10:54:08 -0400153
Brian Salomone782f842018-07-31 13:53:11 -0400154 int numTextureSamplers() const { return fTextureSamplerCnt; }
155 const TextureSampler& textureSampler(int index) const;
Brian Osmanf04fb3c2018-11-12 15:34:00 -0500156 int numVertexAttributes() const { return fVertexAttributes.fCount; }
157 const AttributeSet& vertexAttributes() const { return fVertexAttributes; }
158 int numInstanceAttributes() const { return fInstanceAttributes.fCount; }
159 const AttributeSet& instanceAttributes() const { return fInstanceAttributes; }
joshualitt8072caa2015-02-12 14:20:52 -0800160
Brian Osmanf04fb3c2018-11-12 15:34:00 -0500161 bool hasVertexAttributes() const { return SkToBool(fVertexAttributes.fCount); }
162 bool hasInstanceAttributes() const { return SkToBool(fInstanceAttributes.fCount); }
Chris Dalton1d616352017-05-31 12:51:23 -0600163
164 /**
Brian Salomon92be2f72018-06-19 14:33:47 -0400165 * A common practice is to populate the the vertex/instance's memory using an implicit array of
166 * structs. In this case, it is best to assert that:
Brian Osmanf04fb3c2018-11-12 15:34:00 -0500167 * stride == sizeof(struct)
Chris Dalton1d616352017-05-31 12:51:23 -0600168 */
Brian Osmanf04fb3c2018-11-12 15:34:00 -0500169 size_t vertexStride() const { return fVertexAttributes.fStride; }
170 size_t instanceStride() const { return fInstanceAttributes.fStride; }
Chris Dalton1d616352017-05-31 12:51:23 -0600171
Chris Dalton5a2f9622019-12-27 14:56:38 -0700172 bool willUseTessellationShaders() const {
173 return fShaders & (kTessControl_GrShaderFlag | kTessEvaluation_GrShaderFlag);
174 }
175
176 bool willUseGeoShader() const {
177 return fShaders & kGeometry_GrShaderFlag;
178 }
joshualitt8072caa2015-02-12 14:20:52 -0800179
180 /**
Brian Salomon7eabfe82019-12-02 14:20:20 -0500181 * Computes a key for the transforms owned by an FP based on the shader code that will be
182 * emitted by the primitive processor to implement them.
joshualitt8072caa2015-02-12 14:20:52 -0800183 */
Brian Osmanf0de96f2021-02-26 13:54:11 -0500184 static uint32_t ComputeCoordTransformsKey(const GrFragmentProcessor& fp);
joshualitt8072caa2015-02-12 14:20:52 -0800185
Brian Osman48d7f7c2021-03-03 13:38:08 -0500186 static constexpr int kCoordTransformKeyBits = 4;
187
joshualitt8072caa2015-02-12 14:20:52 -0800188 /**
189 * Sets a unique key on the GrProcessorKeyBuilder that is directly associated with this geometry
190 * processor's GL backend implementation.
wangyixa7f4c432015-08-20 07:25:02 -0700191 *
192 * TODO: A better name for this function would be "compute" instead of "get".
joshualitt8072caa2015-02-12 14:20:52 -0800193 */
Brian Salomon94efbf52016-11-29 13:43:05 -0500194 virtual void getGLSLProcessorKey(const GrShaderCaps&, GrProcessorKeyBuilder*) const = 0;
joshualitt8072caa2015-02-12 14:20:52 -0800195
196
Brian Osmand3e71302018-12-06 11:17:35 -0500197 void getAttributeKey(GrProcessorKeyBuilder* b) const {
198 // Ensure that our CPU and GPU type fields fit together in a 32-bit value, and we never
199 // collide with the "uninitialized" value.
200 static_assert(kGrVertexAttribTypeCount < (1 << 8), "");
201 static_assert(kGrSLTypeCount < (1 << 8), "");
202
203 auto add_attributes = [=](const Attribute* attrs, int attrCount) {
204 for (int i = 0; i < attrCount; ++i) {
Brian Osman48d7f7c2021-03-03 13:38:08 -0500205 const Attribute& attr = attrs[i];
Brian Osmanc8d836f2021-03-04 16:24:35 -0500206 b->appendComment(
207 [&attr]() { return attr.isInitialized() ? attr.name() : "unusedAttr"; });
Brian Osman48d7f7c2021-03-03 13:38:08 -0500208 b->addBits(8, attr.isInitialized() ? attr.cpuType() : 0xff, "attrType");
209 b->addBits(8, attr.isInitialized() ? attr.gpuType() : 0xff, "attrGpuType");
Brian Osmand3e71302018-12-06 11:17:35 -0500210 }
211 };
Brian Osman33167962021-03-04 13:05:49 -0500212 b->add32(fVertexAttributes.fRawCount, "numVertexAttributes");
Brian Osmand3e71302018-12-06 11:17:35 -0500213 add_attributes(fVertexAttributes.fAttributes, fVertexAttributes.fRawCount);
Brian Osmanc8d836f2021-03-04 16:24:35 -0500214 b->add32(fInstanceAttributes.fRawCount, "numInstanceAttributes");
Brian Osmand3e71302018-12-06 11:17:35 -0500215 add_attributes(fInstanceAttributes.fAttributes, fInstanceAttributes.fRawCount);
216 }
217
joshualitt8072caa2015-02-12 14:20:52 -0800218 /** Returns a new instance of the appropriate *GL* implementation class
219 for the given GrProcessor; caller is responsible for deleting
220 the object. */
Brian Salomon94efbf52016-11-29 13:43:05 -0500221 virtual GrGLSLPrimitiveProcessor* createGLSLInstance(const GrShaderCaps&) const = 0;
joshualitt8072caa2015-02-12 14:20:52 -0800222
ethannicholas22793252016-01-30 09:59:10 -0800223 virtual bool isPathRendering() const { return false; }
joshualitt8072caa2015-02-12 14:20:52 -0800224
Chris Dalton5a2f9622019-12-27 14:56:38 -0700225 // We use these methods as a temporary back door to inject OpenGL tessellation code. Once
226 // tessellation is supported by SkSL we can remove these.
Chris Dalton54c90932020-06-24 10:51:52 -0600227 virtual SkString getTessControlShaderGLSL(const GrGLSLPrimitiveProcessor*,
228 const char* versionAndExtensionDecls,
229 const GrGLSLUniformHandler&,
Chris Dalton5a2f9622019-12-27 14:56:38 -0700230 const GrShaderCaps&) const {
231 SK_ABORT("Not implemented.");
232 }
Chris Dalton54c90932020-06-24 10:51:52 -0600233 virtual SkString getTessEvaluationShaderGLSL(const GrGLSLPrimitiveProcessor*,
234 const char* versionAndExtensionDecls,
235 const GrGLSLUniformHandler&,
Chris Dalton5a2f9622019-12-27 14:56:38 -0700236 const GrShaderCaps&) const {
237 SK_ABORT("Not implemented.");
238 }
239
joshualitt8072caa2015-02-12 14:20:52 -0800240protected:
Brian Osmanf04fb3c2018-11-12 15:34:00 -0500241 void setVertexAttributes(const Attribute* attrs, int attrCount) {
242 fVertexAttributes.init(attrs, attrCount);
Brian Salomone782f842018-07-31 13:53:11 -0400243 }
Brian Osmanf04fb3c2018-11-12 15:34:00 -0500244 void setInstanceAttributes(const Attribute* attrs, int attrCount) {
245 SkASSERT(attrCount >= 0);
246 fInstanceAttributes.init(attrs, attrCount);
Brian Salomone782f842018-07-31 13:53:11 -0400247 }
Chris Dalton5a2f9622019-12-27 14:56:38 -0700248 void setWillUseTessellationShaders() {
249 fShaders |= kTessControl_GrShaderFlag | kTessEvaluation_GrShaderFlag;
250 }
251 void setWillUseGeoShader() { fShaders |= kGeometry_GrShaderFlag; }
Brian Salomone782f842018-07-31 13:53:11 -0400252 void setTextureSamplerCnt(int cnt) {
253 SkASSERT(cnt >= 0);
254 fTextureSamplerCnt = cnt;
255 }
256
257 /**
258 * Helper for implementing onTextureSampler(). E.g.:
259 * return IthTexureSampler(i, fMyFirstSampler, fMySecondSampler, fMyThirdSampler);
260 */
261 template <typename... Args>
262 static const TextureSampler& IthTextureSampler(int i, const TextureSampler& samp0,
263 const Args&... samps) {
264 return (0 == i) ? samp0 : IthTextureSampler(i - 1, samps...);
265 }
266 inline static const TextureSampler& IthTextureSampler(int i);
joshualitt8072caa2015-02-12 14:20:52 -0800267
268private:
Brian Salomone782f842018-07-31 13:53:11 -0400269 virtual const TextureSampler& onTextureSampler(int) const { return IthTextureSampler(0); }
Chris Dalton1d616352017-05-31 12:51:23 -0600270
Chris Dalton5a2f9622019-12-27 14:56:38 -0700271 GrShaderFlags fShaders = kVertex_GrShaderFlag | kFragment_GrShaderFlag;
272
Brian Osmanf04fb3c2018-11-12 15:34:00 -0500273 AttributeSet fVertexAttributes;
274 AttributeSet fInstanceAttributes;
275
Brian Salomone782f842018-07-31 13:53:11 -0400276 int fTextureSamplerCnt = 0;
John Stiles7571f9e2020-09-02 22:42:33 -0400277 using INHERITED = GrProcessor;
joshualitt8072caa2015-02-12 14:20:52 -0800278};
279
Brian Salomon92be2f72018-06-19 14:33:47 -0400280//////////////////////////////////////////////////////////////////////////////
281
282/**
Robert Phillips7d7aaf42019-10-14 11:34:16 -0400283 * Used to capture the properties of the GrTextureProxies required/expected by a primitiveProcessor
284 * along with an associated GrSamplerState. The actual proxies used are stored in either the
285 * fixed or dynamic state arrays. TextureSamplers don't perform any coord manipulation to account
286 * for texture origin.
Brian Salomone782f842018-07-31 13:53:11 -0400287 */
288class GrPrimitiveProcessor::TextureSampler {
289public:
290 TextureSampler() = default;
291
Brian Salomonccb61422020-01-09 10:46:36 -0500292 TextureSampler(GrSamplerState, const GrBackendFormat&, const GrSwizzle&);
Brian Salomone782f842018-07-31 13:53:11 -0400293
294 TextureSampler(const TextureSampler&) = delete;
295 TextureSampler& operator=(const TextureSampler&) = delete;
296
Brian Salomonccb61422020-01-09 10:46:36 -0500297 void reset(GrSamplerState, const GrBackendFormat&, const GrSwizzle&);
Brian Salomone782f842018-07-31 13:53:11 -0400298
Robert Phillipsf272bea2019-10-17 08:56:16 -0400299 const GrBackendFormat& backendFormat() const { return fBackendFormat; }
300 GrTextureType textureType() const { return fBackendFormat.textureType(); }
Brian Salomone782f842018-07-31 13:53:11 -0400301
Brian Salomonccb61422020-01-09 10:46:36 -0500302 GrSamplerState samplerState() const { return fSamplerState; }
Greg Daniel2c3398d2019-06-19 11:58:01 -0400303 const GrSwizzle& swizzle() const { return fSwizzle; }
Brian Salomone782f842018-07-31 13:53:11 -0400304
Brian Salomon67529b22019-08-13 15:31:04 -0400305 bool isInitialized() const { return fIsInitialized; }
Brian Salomone782f842018-07-31 13:53:11 -0400306
307private:
Robert Phillipsf272bea2019-10-17 08:56:16 -0400308 GrSamplerState fSamplerState;
309 GrBackendFormat fBackendFormat;
310 GrSwizzle fSwizzle;
Robert Phillipsf272bea2019-10-17 08:56:16 -0400311 bool fIsInitialized = false;
Brian Salomone782f842018-07-31 13:53:11 -0400312};
313
314const GrPrimitiveProcessor::TextureSampler& GrPrimitiveProcessor::IthTextureSampler(int i) {
315 SK_ABORT("Illegal texture sampler index");
316 static const TextureSampler kBogus;
317 return kBogus;
318}
319
320//////////////////////////////////////////////////////////////////////////////
321
322/**
Brian Salomon92be2f72018-06-19 14:33:47 -0400323 * Returns the size of the attrib type in bytes.
324 * This was moved from include/private/GrTypesPriv.h in service of Skia dependents that build
325 * with C++11.
326 */
327static constexpr inline size_t GrVertexAttribTypeSize(GrVertexAttribType type) {
328 switch (type) {
329 case kFloat_GrVertexAttribType:
330 return sizeof(float);
331 case kFloat2_GrVertexAttribType:
332 return 2 * sizeof(float);
333 case kFloat3_GrVertexAttribType:
334 return 3 * sizeof(float);
335 case kFloat4_GrVertexAttribType:
336 return 4 * sizeof(float);
337 case kHalf_GrVertexAttribType:
Brian Osmand4c29702018-09-14 16:16:55 -0400338 return sizeof(uint16_t);
Brian Salomon92be2f72018-06-19 14:33:47 -0400339 case kHalf2_GrVertexAttribType:
Brian Osmand4c29702018-09-14 16:16:55 -0400340 return 2 * sizeof(uint16_t);
Brian Salomon92be2f72018-06-19 14:33:47 -0400341 case kHalf4_GrVertexAttribType:
Brian Osmand4c29702018-09-14 16:16:55 -0400342 return 4 * sizeof(uint16_t);
Brian Salomon92be2f72018-06-19 14:33:47 -0400343 case kInt2_GrVertexAttribType:
344 return 2 * sizeof(int32_t);
345 case kInt3_GrVertexAttribType:
346 return 3 * sizeof(int32_t);
347 case kInt4_GrVertexAttribType:
348 return 4 * sizeof(int32_t);
Ruiqi Maob609e6d2018-07-17 10:19:38 -0400349 case kByte_GrVertexAttribType:
350 return 1 * sizeof(char);
351 case kByte2_GrVertexAttribType:
352 return 2 * sizeof(char);
Ruiqi Maob609e6d2018-07-17 10:19:38 -0400353 case kByte4_GrVertexAttribType:
354 return 4 * sizeof(char);
355 case kUByte_GrVertexAttribType:
356 return 1 * sizeof(char);
357 case kUByte2_GrVertexAttribType:
358 return 2 * sizeof(char);
Ruiqi Maob609e6d2018-07-17 10:19:38 -0400359 case kUByte4_GrVertexAttribType:
360 return 4 * sizeof(char);
Brian Salomon92be2f72018-06-19 14:33:47 -0400361 case kUByte_norm_GrVertexAttribType:
362 return 1 * sizeof(char);
363 case kUByte4_norm_GrVertexAttribType:
364 return 4 * sizeof(char);
365 case kShort2_GrVertexAttribType:
366 return 2 * sizeof(int16_t);
Brian Osmana5c578f2018-09-19 14:19:02 -0400367 case kShort4_GrVertexAttribType:
368 return 4 * sizeof(int16_t);
Brian Salomon92be2f72018-06-19 14:33:47 -0400369 case kUShort2_GrVertexAttribType: // fall through
370 case kUShort2_norm_GrVertexAttribType:
371 return 2 * sizeof(uint16_t);
372 case kInt_GrVertexAttribType:
373 return sizeof(int32_t);
374 case kUint_GrVertexAttribType:
375 return sizeof(uint32_t);
Robert Phillipsfe18de52019-06-06 17:21:50 -0400376 case kUShort_norm_GrVertexAttribType:
377 return sizeof(uint16_t);
Robert Phillips66a46032019-06-18 08:00:42 -0400378 case kUShort4_norm_GrVertexAttribType:
379 return 4 * sizeof(uint16_t);
Brian Salomon92be2f72018-06-19 14:33:47 -0400380 }
381 // GCC fails because SK_ABORT evaluates to non constexpr. clang and cl.exe think this is
382 // unreachable and don't complain.
383#if defined(__clang__) || !defined(__GNUC__)
384 SK_ABORT("Unsupported type conversion");
385#endif
386 return 0;
387}
388
389constexpr size_t GrPrimitiveProcessor::Attribute::size() const {
Brian Osmand4c29702018-09-14 16:16:55 -0400390 return GrVertexAttribTypeSize(fCPUType);
Brian Salomon92be2f72018-06-19 14:33:47 -0400391}
392
joshualitt8072caa2015-02-12 14:20:52 -0800393#endif