OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 #include "GrCaps.h" | 8 #include "GrCaps.h" |
9 #include "GrContextOptions.h" | 9 #include "GrContextOptions.h" |
10 | 10 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 fTwoSidedStencilSupport = false; | 89 fTwoSidedStencilSupport = false; |
90 fStencilWrapOpsSupport = false; | 90 fStencilWrapOpsSupport = false; |
91 fDiscardRenderTargetSupport = false; | 91 fDiscardRenderTargetSupport = false; |
92 fReuseScratchTextures = true; | 92 fReuseScratchTextures = true; |
93 fReuseScratchBuffers = true; | 93 fReuseScratchBuffers = true; |
94 fGpuTracingSupport = false; | 94 fGpuTracingSupport = false; |
95 fCompressedTexSubImageSupport = false; | 95 fCompressedTexSubImageSupport = false; |
96 fOversizedStencilSupport = false; | 96 fOversizedStencilSupport = false; |
97 fTextureBarrierSupport = false; | 97 fTextureBarrierSupport = false; |
98 fSampleLocationsSupport = false; | 98 fSampleLocationsSupport = false; |
| 99 fMultisampleDisableSupport = false; |
99 fUsesMixedSamples = false; | 100 fUsesMixedSamples = false; |
100 fSupportsInstancedDraws = false; | 101 fSupportsInstancedDraws = false; |
101 fFullClearIsFree = false; | 102 fFullClearIsFree = false; |
102 fMustClearUploadedBufferData = false; | 103 fMustClearUploadedBufferData = false; |
103 fSampleShadingSupport = false; | 104 fSampleShadingSupport = false; |
104 | 105 |
105 fUseDrawInsteadOfClear = false; | 106 fUseDrawInsteadOfClear = false; |
106 | 107 |
107 fBlendEquationSupport = kBasic_BlendEquationSupport; | 108 fBlendEquationSupport = kBasic_BlendEquationSupport; |
108 fAdvBlendEqBlacklist = 0; | 109 fAdvBlendEqBlacklist = 0; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 r.appendf("Two Sided Stencil Support : %s\n", gNY[fTwoSidedStencilS
upport]); | 167 r.appendf("Two Sided Stencil Support : %s\n", gNY[fTwoSidedStencilS
upport]); |
167 r.appendf("Stencil Wrap Ops Support : %s\n", gNY[fStencilWrapOpsSu
pport]); | 168 r.appendf("Stencil Wrap Ops Support : %s\n", gNY[fStencilWrapOpsSu
pport]); |
168 r.appendf("Discard Render Target Support : %s\n", gNY[fDiscardRenderTar
getSupport]); | 169 r.appendf("Discard Render Target Support : %s\n", gNY[fDiscardRenderTar
getSupport]); |
169 r.appendf("Reuse Scratch Textures : %s\n", gNY[fReuseScratchText
ures]); | 170 r.appendf("Reuse Scratch Textures : %s\n", gNY[fReuseScratchText
ures]); |
170 r.appendf("Reuse Scratch Buffers : %s\n", gNY[fReuseScratchBuff
ers]); | 171 r.appendf("Reuse Scratch Buffers : %s\n", gNY[fReuseScratchBuff
ers]); |
171 r.appendf("Gpu Tracing Support : %s\n", gNY[fGpuTracingSuppor
t]); | 172 r.appendf("Gpu Tracing Support : %s\n", gNY[fGpuTracingSuppor
t]); |
172 r.appendf("Compressed Update Support : %s\n", gNY[fCompressedTexSub
ImageSupport]); | 173 r.appendf("Compressed Update Support : %s\n", gNY[fCompressedTexSub
ImageSupport]); |
173 r.appendf("Oversized Stencil Support : %s\n", gNY[fOversizedStencil
Support]); | 174 r.appendf("Oversized Stencil Support : %s\n", gNY[fOversizedStencil
Support]); |
174 r.appendf("Texture Barrier Support : %s\n", gNY[fTextureBarrierSu
pport]); | 175 r.appendf("Texture Barrier Support : %s\n", gNY[fTextureBarrierSu
pport]); |
175 r.appendf("Sample Locations Support : %s\n", gNY[fSampleLocationsS
upport]); | 176 r.appendf("Sample Locations Support : %s\n", gNY[fSampleLocationsS
upport]); |
| 177 r.appendf("Multisample disable support : %s\n", gNY[fMultisampleDisab
leSupport]); |
176 r.appendf("Uses Mixed Samples : %s\n", gNY[fUsesMixedSamples
]); | 178 r.appendf("Uses Mixed Samples : %s\n", gNY[fUsesMixedSamples
]); |
177 r.appendf("Supports instanced draws : %s\n", gNY[fSupportsInstance
dDraws]); | 179 r.appendf("Supports instanced draws : %s\n", gNY[fSupportsInstance
dDraws]); |
178 r.appendf("Full screen clear is free : %s\n", gNY[fFullClearIsFree]
); | 180 r.appendf("Full screen clear is free : %s\n", gNY[fFullClearIsFree]
); |
179 r.appendf("Must clear buffer memory : %s\n", gNY[fMustClearUploade
dBufferData]); | 181 r.appendf("Must clear buffer memory : %s\n", gNY[fMustClearUploade
dBufferData]); |
180 r.appendf("Draw Instead of Clear [workaround] : %s\n", gNY[fUseDrawInsteadOf
Clear]); | 182 r.appendf("Draw Instead of Clear [workaround] : %s\n", gNY[fUseDrawInsteadOf
Clear]); |
181 r.appendf("Draw Instead of TexSubImage [workaround] : %s\n", | 183 r.appendf("Draw Instead of TexSubImage [workaround] : %s\n", |
182 gNY[fUseDrawInsteadOfPartialRenderTargetWrite]); | 184 gNY[fUseDrawInsteadOfPartialRenderTargetWrite]); |
183 r.appendf("Prefer VRAM Use over flushes [workaround] : %s\n", gNY[fPreferVRA
MUseOverFlushes]); | 185 r.appendf("Prefer VRAM Use over flushes [workaround] : %s\n", gNY[fPreferVRA
MUseOverFlushes]); |
184 | 186 |
185 if (this->advancedBlendEquationSupport()) { | 187 if (this->advancedBlendEquationSupport()) { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 | 261 |
260 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) { | 262 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) { |
261 GrPixelConfig config = static_cast<GrPixelConfig>(i); | 263 GrPixelConfig config = static_cast<GrPixelConfig>(i); |
262 r.appendf("%s is uploadable to a texture: %s\n", | 264 r.appendf("%s is uploadable to a texture: %s\n", |
263 kConfigNames[i], | 265 kConfigNames[i], |
264 gNY[this->isConfigTexturable(config)]); | 266 gNY[this->isConfigTexturable(config)]); |
265 } | 267 } |
266 | 268 |
267 return r; | 269 return r; |
268 } | 270 } |
OLD | NEW |