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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 // Meta data so we know which descriptor sets we are using and need to bind. | 259 // Meta data so we know which descriptor sets we are using and need to bind. |
260 int fStartDS; | 260 int fStartDS; |
261 int fDSCount; | 261 int fDSCount; |
262 | 262 |
263 SkAutoTDelete<GrVkUniformBuffer> fVertexUniformBuffer; | 263 SkAutoTDelete<GrVkUniformBuffer> fVertexUniformBuffer; |
264 SkAutoTDelete<GrVkUniformBuffer> fFragmentUniformBuffer; | 264 SkAutoTDelete<GrVkUniformBuffer> fFragmentUniformBuffer; |
265 | 265 |
266 // GrVkResources used for sampling textures | 266 // GrVkResources used for sampling textures |
267 SkTDArray<GrVkSampler*> fSamplers; | 267 SkTDArray<GrVkSampler*> fSamplers; |
268 SkTDArray<const GrVkImageView*> fTextureViews; | 268 SkTDArray<const GrVkImageView*> fTextureViews; |
269 SkTDArray<const GrVkImage::Resource*> fTextures; | 269 SkTDArray<const GrVkResource*> fTextures; |
270 | 270 |
271 // Tracks the current render target uniforms stored in the vertex buffer. | 271 // Tracks the current render target uniforms stored in the vertex buffer. |
272 RenderTargetState fRenderTargetState; | 272 RenderTargetState fRenderTargetState; |
273 BuiltinUniformHandles fBuiltinUniformHandles; | 273 BuiltinUniformHandles fBuiltinUniformHandles; |
274 | 274 |
275 // Processors in the GrVkPipelineState | 275 // Processors in the GrVkPipelineState |
276 SkAutoTDelete<GrGLSLPrimitiveProcessor> fGeometryProcessor; | 276 SkAutoTDelete<GrGLSLPrimitiveProcessor> fGeometryProcessor; |
277 SkAutoTDelete<GrGLSLXferProcessor> fXferProcessor; | 277 SkAutoTDelete<GrGLSLXferProcessor> fXferProcessor; |
278 GrGLSLFragProcs fFragmentProcessors; | 278 GrGLSLFragProcs fFragmentProcessors; |
279 | 279 |
280 Desc fDesc; | 280 Desc fDesc; |
281 | 281 |
282 GrVkPipelineStateDataManager fDataManager; | 282 GrVkPipelineStateDataManager fDataManager; |
283 | 283 |
284 DescriptorPoolManager fSamplerPoolManager; | 284 DescriptorPoolManager fSamplerPoolManager; |
285 const GrVkDescriptorPool* fCurrentUniformDescPool; | 285 const GrVkDescriptorPool* fCurrentUniformDescPool; |
286 | 286 |
287 int fNumSamplers; | 287 int fNumSamplers; |
288 | 288 |
289 friend class GrVkPipelineStateBuilder; | 289 friend class GrVkPipelineStateBuilder; |
290 }; | 290 }; |
291 | 291 |
292 #endif | 292 #endif |
OLD | NEW |