| 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 #include "GrVkPipelineState.h" | 8 #include "GrVkPipelineState.h" |
| 9 | 9 |
| 10 #include "GrPipeline.h" | 10 #include "GrPipeline.h" |
| 11 #include "GrTexturePriv.h" | 11 #include "GrTexturePriv.h" |
| 12 #include "GrVkCommandBuffer.h" | 12 #include "GrVkCommandBuffer.h" |
| 13 #include "GrVkDescriptorPool.h" | 13 #include "GrVkDescriptorPool.h" |
| 14 #include "GrVkGpu.h" | 14 #include "GrVkGpu.h" |
| 15 #include "GrVkImageView.h" | 15 #include "GrVkImageView.h" |
| 16 #include "GrVkMemory.h" | 16 #include "GrVkMemory.h" |
| 17 #include "GrVkPipeline.h" | 17 #include "GrVkPipeline.h" |
| 18 #include "GrVkRenderTarget.h" | 18 #include "GrVkRenderTarget.h" |
| 19 #include "GrVkSampler.h" | 19 #include "GrVkSampler.h" |
| 20 #include "GrVkTexture.h" | 20 #include "GrVkTexture.h" |
| 21 #include "GrVkUniformBuffer.h" | 21 #include "GrVkUniformBuffer.h" |
| 22 #include "glsl/GrGLSLFragmentProcessor.h" | 22 #include "glsl/GrGLSLFragmentProcessor.h" |
| 23 #include "glsl/GrGLSLGeometryProcessor.h" | 23 #include "glsl/GrGLSLGeometryProcessor.h" |
| 24 #include "glsl/GrGLSLXferProcessor.h" | 24 #include "glsl/GrGLSLXferProcessor.h" |
| 25 #include "SkMipmap.h" | 25 #include "SkMipMap.h" |
| 26 | 26 |
| 27 GrVkPipelineState::GrVkPipelineState(GrVkGpu* gpu, | 27 GrVkPipelineState::GrVkPipelineState(GrVkGpu* gpu, |
| 28 const GrVkPipelineState::Desc& desc, | 28 const GrVkPipelineState::Desc& desc, |
| 29 GrVkPipeline* pipeline, | 29 GrVkPipeline* pipeline, |
| 30 VkPipelineLayout layout, | 30 VkPipelineLayout layout, |
| 31 VkDescriptorSetLayout dsLayout[2], | 31 VkDescriptorSetLayout dsLayout[2], |
| 32 const BuiltinUniformHandles& builtinUniform
Handles, | 32 const BuiltinUniformHandles& builtinUniform
Handles, |
| 33 const UniformInfoArray& uniforms, | 33 const UniformInfoArray& uniforms, |
| 34 uint32_t vertexUniformSize, | 34 uint32_t vertexUniformSize, |
| 35 uint32_t fragmentUniformSize, | 35 uint32_t fragmentUniformSize, |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 | 496 |
| 497 b.add32(get_blend_info_key(pipeline)); | 497 b.add32(get_blend_info_key(pipeline)); |
| 498 | 498 |
| 499 b.add32(primitiveType); | 499 b.add32(primitiveType); |
| 500 | 500 |
| 501 // Set key length | 501 // Set key length |
| 502 int keyLength = key->count(); | 502 int keyLength = key->count(); |
| 503 SkASSERT(0 == (keyLength % 4)); | 503 SkASSERT(0 == (keyLength % 4)); |
| 504 *reinterpret_cast<uint32_t*>(key->begin()) = SkToU32(keyLength); | 504 *reinterpret_cast<uint32_t*>(key->begin()) = SkToU32(keyLength); |
| 505 } | 505 } |
| OLD | NEW |