Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(553)

Side by Side Diff: src/gpu/vk/GrVkCommandBuffer.h

Issue 1816153002: Set up cache in vulkan to reuse GrVkPrograms (aka VkPipelines) (Closed) Base URL: https://skia.googlesource.com/skia.git@progSamplers
Patch Set: rebase Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/glsl/GrGLSLShaderBuilder.h ('k') | src/gpu/vk/GrVkCommandBuffer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef GrVkCommandBuffer_DEFINED 8 #ifndef GrVkCommandBuffer_DEFINED
9 #define GrVkCommandBuffer_DEFINED 9 #define GrVkCommandBuffer_DEFINED
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 vkBuffer, 76 vkBuffer,
77 0, 77 0,
78 VK_INDEX_TYPE_UINT 16)); 78 VK_INDEX_TYPE_UINT 16));
79 fBoundIndexBufferIsValid = true; 79 fBoundIndexBufferIsValid = true;
80 fBoundIndexBuffer = vkBuffer; 80 fBoundIndexBuffer = vkBuffer;
81 addResource(ibuffer->resource()); 81 addResource(ibuffer->resource());
82 } 82 }
83 } 83 }
84 84
85 void bindDescriptorSets(const GrVkGpu* gpu, 85 void bindDescriptorSets(const GrVkGpu* gpu,
86 GrVkProgram*, 86 GrVkPipelineState*,
87 VkPipelineLayout layout, 87 VkPipelineLayout layout,
88 uint32_t firstSet, 88 uint32_t firstSet,
89 uint32_t setCount, 89 uint32_t setCount,
90 const VkDescriptorSet* descriptorSets, 90 const VkDescriptorSet* descriptorSets,
91 uint32_t dynamicOffsetCount, 91 uint32_t dynamicOffsetCount,
92 const uint32_t* dynamicOffsets); 92 const uint32_t* dynamicOffsets);
93 93
94 void setViewport(const GrVkGpu* gpu, 94 void setViewport(const GrVkGpu* gpu,
95 uint32_t firstViewport, 95 uint32_t firstViewport,
96 uint32_t viewportCount, 96 uint32_t viewportCount,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 207
208 // Cached values used for dynamic state updates 208 // Cached values used for dynamic state updates
209 VkViewport fCachedViewport; 209 VkViewport fCachedViewport;
210 VkRect2D fCachedScissor; 210 VkRect2D fCachedScissor;
211 float fCachedBlendConstant[4]; 211 float fCachedBlendConstant[4];
212 }; 212 };
213 213
214 214
215 #endif 215 #endif
216 216
OLDNEW
« no previous file with comments | « src/gpu/glsl/GrGLSLShaderBuilder.h ('k') | src/gpu/vk/GrVkCommandBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698