OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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 GrVkPipelineState_DEFINED | 9 #ifndef GrVkPipelineState_DEFINED |
10 #define GrVkPipelineState_DEFINED | 10 #define GrVkPipelineState_DEFINED |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 GrVkDescriptorPool* fPool; | 193 GrVkDescriptorPool* fPool; |
194 | 194 |
195 private: | 195 private: |
196 static const uint32_t kMaxDescLimit = 1 << 10; | 196 static const uint32_t kMaxDescLimit = 1 << 10; |
197 | 197 |
198 void getNewPool(GrVkGpu* gpu); | 198 void getNewPool(GrVkGpu* gpu); |
199 }; | 199 }; |
200 | 200 |
201 void writeUniformBuffers(const GrVkGpu* gpu); | 201 void writeUniformBuffers(const GrVkGpu* gpu); |
202 | 202 |
203 void writeSamplers(GrVkGpu* gpu, const SkTArray<const GrTextureAccess*>& tex
tureBindings); | 203 void writeSamplers(GrVkGpu* gpu, const SkTArray<const GrTextureAccess*>& tex
tureBindings, |
| 204 bool allowSRGBInputs); |
204 | 205 |
205 /** | 206 /** |
206 * We use the RT's size and origin to adjust from Skia device space to vulkan
normalized device | 207 * We use the RT's size and origin to adjust from Skia device space to vulkan
normalized device |
207 * space and to make device space positions have the correct origin for proce
ssors that require | 208 * space and to make device space positions have the correct origin for proce
ssors that require |
208 * them. | 209 * them. |
209 */ | 210 */ |
210 struct RenderTargetState { | 211 struct RenderTargetState { |
211 SkISize fRenderTargetSize; | 212 SkISize fRenderTargetSize; |
212 GrSurfaceOrigin fRenderTargetOrigin; | 213 GrSurfaceOrigin fRenderTargetOrigin; |
213 | 214 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 | 283 |
283 DescriptorPoolManager fSamplerPoolManager; | 284 DescriptorPoolManager fSamplerPoolManager; |
284 const GrVkDescriptorPool* fCurrentUniformDescPool; | 285 const GrVkDescriptorPool* fCurrentUniformDescPool; |
285 | 286 |
286 int fNumSamplers; | 287 int fNumSamplers; |
287 | 288 |
288 friend class GrVkPipelineStateBuilder; | 289 friend class GrVkPipelineStateBuilder; |
289 }; | 290 }; |
290 | 291 |
291 #endif | 292 #endif |
OLD | NEW |