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