Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: src/gpu/gl/GrGLCaps.h

Issue 2095183002: Add a GL cap for instanced rendering to floating point (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/gpu/GrTypes.h ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 8
9 #ifndef GrGLCaps_DEFINED 9 #ifndef GrGLCaps_DEFINED
10 #define GrGLCaps_DEFINED 10 #define GrGLCaps_DEFINED
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 /// commands cannot be used unless we have base instance support. 300 /// commands cannot be used unless we have base instance support.
301 bool drawIndirectSupport() const { return fDrawIndirectSupport; } 301 bool drawIndirectSupport() const { return fDrawIndirectSupport; }
302 302
303 /// Is there support for glMultiDraw*Indirect? Note that the baseInstance fi elds of indirect 303 /// Is there support for glMultiDraw*Indirect? Note that the baseInstance fi elds of indirect
304 /// draw commands cannot be used unless we have base instance support. 304 /// draw commands cannot be used unless we have base instance support.
305 bool multiDrawIndirectSupport() const { return fMultiDrawIndirectSupport; } 305 bool multiDrawIndirectSupport() const { return fMultiDrawIndirectSupport; }
306 306
307 /// Are the baseInstance fields supported in indirect draw commands? 307 /// Are the baseInstance fields supported in indirect draw commands?
308 bool baseInstanceSupport() const { return fBaseInstanceSupport; } 308 bool baseInstanceSupport() const { return fBaseInstanceSupport; }
309 309
310 /// Does the platform have known issuses rendering to floating point when us ing glDraw*Indirect?
311 bool canDrawIndirectToFloat() const { return fCanDrawIndirectToFloat; }
312
310 /// Use indices or vertices in CPU arrays rather than VBOs for dynamic conte nt. 313 /// Use indices or vertices in CPU arrays rather than VBOs for dynamic conte nt.
311 bool useNonVBOVertexAndIndexDynamicData() const { return fUseNonVBOVertexAnd IndexDynamicData; } 314 bool useNonVBOVertexAndIndexDynamicData() const { return fUseNonVBOVertexAnd IndexDynamicData; }
312 315
313 /// Does ReadPixels support reading readConfig pixels from a FBO that is ren derTargetConfig? 316 /// Does ReadPixels support reading readConfig pixels from a FBO that is ren derTargetConfig?
314 bool readPixelsSupported(GrPixelConfig renderTargetConfig, 317 bool readPixelsSupported(GrPixelConfig renderTargetConfig,
315 GrPixelConfig readConfig, 318 GrPixelConfig readConfig,
316 std::function<void (GrGLenum, GrGLint*)> getInteger v, 319 std::function<void (GrGLenum, GrGLint*)> getInteger v,
317 std::function<bool ()> bindRenderTarget) const; 320 std::function<bool ()> bindRenderTarget) const;
318 321
319 bool isCoreProfile() const { return fIsCoreProfile; } 322 bool isCoreProfile() const { return fIsCoreProfile; }
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 bool fTextureUsageSupport : 1; 394 bool fTextureUsageSupport : 1;
392 bool fTextureRedSupport : 1; 395 bool fTextureRedSupport : 1;
393 bool fImagingSupport : 1; 396 bool fImagingSupport : 1;
394 bool fVertexArrayObjectSupport : 1; 397 bool fVertexArrayObjectSupport : 1;
395 bool fDirectStateAccessSupport : 1; 398 bool fDirectStateAccessSupport : 1;
396 bool fDebugSupport : 1; 399 bool fDebugSupport : 1;
397 bool fES2CompatibilitySupport : 1; 400 bool fES2CompatibilitySupport : 1;
398 bool fDrawIndirectSupport : 1; 401 bool fDrawIndirectSupport : 1;
399 bool fMultiDrawIndirectSupport : 1; 402 bool fMultiDrawIndirectSupport : 1;
400 bool fBaseInstanceSupport : 1; 403 bool fBaseInstanceSupport : 1;
404 bool fCanDrawIndirectToFloat : 1;
401 bool fUseNonVBOVertexAndIndexDynamicData : 1; 405 bool fUseNonVBOVertexAndIndexDynamicData : 1;
402 bool fIsCoreProfile : 1; 406 bool fIsCoreProfile : 1;
403 bool fBindFragDataLocationSupport : 1; 407 bool fBindFragDataLocationSupport : 1;
404 bool fRGBA8888PixelsOpsAreSlow : 1; 408 bool fRGBA8888PixelsOpsAreSlow : 1;
405 bool fPartialFBOReadIsSlow : 1; 409 bool fPartialFBOReadIsSlow : 1;
406 bool fBindUniformLocationSupport : 1; 410 bool fBindUniformLocationSupport : 1;
407 bool fRectangleTextureSupport : 1; 411 bool fRectangleTextureSupport : 1;
408 bool fTextureSwizzleSupport : 1; 412 bool fTextureSwizzleSupport : 1;
409 bool fMipMapLevelAndLodControlSupport : 1; 413 bool fMipMapLevelAndLodControlSupport : 1;
410 bool fRGBAToBGRAReadbackConversionsAreSlow : 1; 414 bool fRGBAToBGRAReadbackConversionsAreSlow : 1;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 485
482 GrSwizzle fSwizzle; 486 GrSwizzle fSwizzle;
483 }; 487 };
484 488
485 ConfigInfo fConfigTable[kGrPixelConfigCnt]; 489 ConfigInfo fConfigTable[kGrPixelConfigCnt];
486 490
487 typedef GrCaps INHERITED; 491 typedef GrCaps INHERITED;
488 }; 492 };
489 493
490 #endif 494 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrTypes.h ('k') | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698