OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |