OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #ifndef GrDrawTargetCaps_DEFINED | 8 #ifndef GrDrawTargetCaps_DEFINED |
9 #define GrDrawTargetCaps_DEFINED | 9 #define GrDrawTargetCaps_DEFINED |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } | 34 bool stencilWrapOpsSupport() const { return fStencilWrapOpsSupport; } |
35 bool hwAALineSupport() const { return fHWAALineSupport; } | 35 bool hwAALineSupport() const { return fHWAALineSupport; } |
36 bool shaderDerivativeSupport() const { return fShaderDerivativeSupport; } | 36 bool shaderDerivativeSupport() const { return fShaderDerivativeSupport; } |
37 bool geometryShaderSupport() const { return fGeometryShaderSupport; } | 37 bool geometryShaderSupport() const { return fGeometryShaderSupport; } |
38 bool dualSourceBlendingSupport() const { return fDualSourceBlendingSupport;
} | 38 bool dualSourceBlendingSupport() const { return fDualSourceBlendingSupport;
} |
39 bool pathRenderingSupport() const { return fPathRenderingSupport; } | 39 bool pathRenderingSupport() const { return fPathRenderingSupport; } |
40 bool dstReadInShaderSupport() const { return fDstReadInShaderSupport; } | 40 bool dstReadInShaderSupport() const { return fDstReadInShaderSupport; } |
41 bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport
; } | 41 bool discardRenderTargetSupport() const { return fDiscardRenderTargetSupport
; } |
42 bool gpuTracingSupport() const { return fGpuTracingSupport; } | 42 bool gpuTracingSupport() const { return fGpuTracingSupport; } |
43 bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSup
port; } | 43 bool compressedTexSubImageSupport() const { return fCompressedTexSubImageSup
port; } |
| 44 bool has3DTexImageSupport() const { return f3DTexImageSupport; } |
44 | 45 |
45 /** | 46 /** |
46 * Indicates whether GPU->CPU memory mapping for GPU resources such as verte
x buffers and | 47 * Indicates whether GPU->CPU memory mapping for GPU resources such as verte
x buffers and |
47 * textures allows partial mappings or full mappings. | 48 * textures allows partial mappings or full mappings. |
48 */ | 49 */ |
49 enum MapFlags { | 50 enum MapFlags { |
50 kNone_MapFlags = 0x0, //<! Cannot map the resource. | 51 kNone_MapFlags = 0x0, //<! Cannot map the resource. |
51 | 52 |
52 kCanMap_MapFlag = 0x1, //<! The resource can be mapped. Must be s
et for any of | 53 kCanMap_MapFlag = 0x1, //<! The resource can be mapped. Must be s
et for any of |
53 // the other flags to have meaning.k | 54 // the other flags to have meaning.k |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 bool fHWAALineSupport : 1; | 86 bool fHWAALineSupport : 1; |
86 bool fShaderDerivativeSupport : 1; | 87 bool fShaderDerivativeSupport : 1; |
87 bool fGeometryShaderSupport : 1; | 88 bool fGeometryShaderSupport : 1; |
88 bool fDualSourceBlendingSupport : 1; | 89 bool fDualSourceBlendingSupport : 1; |
89 bool fPathRenderingSupport : 1; | 90 bool fPathRenderingSupport : 1; |
90 bool fDstReadInShaderSupport : 1; | 91 bool fDstReadInShaderSupport : 1; |
91 bool fDiscardRenderTargetSupport: 1; | 92 bool fDiscardRenderTargetSupport: 1; |
92 bool fReuseScratchTextures : 1; | 93 bool fReuseScratchTextures : 1; |
93 bool fGpuTracingSupport : 1; | 94 bool fGpuTracingSupport : 1; |
94 bool fCompressedTexSubImageSupport : 1; | 95 bool fCompressedTexSubImageSupport : 1; |
| 96 bool f3DTexImageSupport : 1; |
95 | 97 |
96 uint32_t fMapBufferFlags; | 98 uint32_t fMapBufferFlags; |
97 | 99 |
98 int fMaxRenderTargetSize; | 100 int fMaxRenderTargetSize; |
99 int fMaxTextureSize; | 101 int fMaxTextureSize; |
100 int fMaxSampleCount; | 102 int fMaxSampleCount; |
101 | 103 |
102 // The first entry for each config is without msaa and the second is with. | 104 // The first entry for each config is without msaa and the second is with. |
103 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; | 105 bool fConfigRenderSupport[kGrPixelConfigCnt][2]; |
104 bool fConfigTextureSupport[kGrPixelConfigCnt]; | 106 bool fConfigTextureSupport[kGrPixelConfigCnt]; |
105 | 107 |
106 typedef SkRefCnt INHERITED; | 108 typedef SkRefCnt INHERITED; |
107 }; | 109 }; |
108 | 110 |
109 #endif | 111 #endif |
OLD | NEW |