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

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

Issue 2336763002: Lots of little cleanup improvements to Vulkan (Closed)
Patch Set: [ Created 4 years, 3 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 | « no previous file | src/gpu/vk/GrVkGpu.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 #include "GrVkCommandBuffer.h" 8 #include "GrVkCommandBuffer.h"
9 9
10 #include "GrVkFramebuffer.h" 10 #include "GrVkFramebuffer.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 dynamicOffsetCount, 179 dynamicOffsetCount,
180 dynamicOffsets)); 180 dynamicOffsets));
181 pipelineState->addUniformResources(*this); 181 pipelineState->addUniformResources(*this);
182 } 182 }
183 183
184 void GrVkCommandBuffer::bindPipeline(const GrVkGpu* gpu, const GrVkPipeline* pip eline) { 184 void GrVkCommandBuffer::bindPipeline(const GrVkGpu* gpu, const GrVkPipeline* pip eline) {
185 SkASSERT(fIsActive); 185 SkASSERT(fIsActive);
186 GR_VK_CALL(gpu->vkInterface(), CmdBindPipeline(fCmdBuffer, 186 GR_VK_CALL(gpu->vkInterface(), CmdBindPipeline(fCmdBuffer,
187 VK_PIPELINE_BIND_POINT_GRAPHI CS, 187 VK_PIPELINE_BIND_POINT_GRAPHI CS,
188 pipeline->pipeline())); 188 pipeline->pipeline()));
189 addResource(pipeline); 189 this->addResource(pipeline);
190 } 190 }
191 191
192 void GrVkCommandBuffer::drawIndexed(const GrVkGpu* gpu, 192 void GrVkCommandBuffer::drawIndexed(const GrVkGpu* gpu,
193 uint32_t indexCount, 193 uint32_t indexCount,
194 uint32_t instanceCount, 194 uint32_t instanceCount,
195 uint32_t firstIndex, 195 uint32_t firstIndex,
196 int32_t vertexOffset, 196 int32_t vertexOffset,
197 uint32_t firstInstance) const { 197 uint32_t firstInstance) const {
198 SkASSERT(fIsActive); 198 SkASSERT(fIsActive);
199 SkASSERT(fActiveRenderPass); 199 SkASSERT(fActiveRenderPass);
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 fIsActive = true; 651 fIsActive = true;
652 } 652 }
653 653
654 void GrVkSecondaryCommandBuffer::end(const GrVkGpu* gpu) { 654 void GrVkSecondaryCommandBuffer::end(const GrVkGpu* gpu) {
655 SkASSERT(fIsActive); 655 SkASSERT(fIsActive);
656 GR_VK_CALL_ERRCHECK(gpu->vkInterface(), EndCommandBuffer(fCmdBuffer)); 656 GR_VK_CALL_ERRCHECK(gpu->vkInterface(), EndCommandBuffer(fCmdBuffer));
657 this->invalidateState(); 657 this->invalidateState();
658 fIsActive = false; 658 fIsActive = false;
659 } 659 }
660 660
OLDNEW
« no previous file with comments | « no previous file | src/gpu/vk/GrVkGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698