| Index: src/gpu/vk/GrVkCommandBuffer.h
|
| diff --git a/src/gpu/vk/GrVkCommandBuffer.h b/src/gpu/vk/GrVkCommandBuffer.h
|
| index 5cdb2c0b2f7cd6b4173c56416d0fd6b9632f1ba6..eba25ed17c42408f0fe15e910cc731e838937739 100644
|
| --- a/src/gpu/vk/GrVkCommandBuffer.h
|
| +++ b/src/gpu/vk/GrVkCommandBuffer.h
|
| @@ -91,13 +91,6 @@ public:
|
| }
|
| }
|
|
|
| - void bindPipeline(const GrVkGpu* gpu, const GrVkPipeline* pipeline) {
|
| - GR_VK_CALL(gpu->vkInterface(), CmdBindPipeline(fCmdBuffer,
|
| - VK_PIPELINE_BIND_POINT_GRAPHICS,
|
| - pipeline->pipeline()));
|
| - addResource(pipeline);
|
| - }
|
| -
|
| void bindDescriptorSets(const GrVkGpu* gpu,
|
| GrVkProgram*,
|
| VkPipelineLayout layout,
|
| @@ -106,6 +99,18 @@ public:
|
| const VkDescriptorSet* descriptorSets,
|
| uint32_t dynamicOffsetCount,
|
| const uint32_t* dynamicOffsets);
|
| +
|
| + void setViewport(const GrVkGpu* gpu,
|
| + uint32_t firstViewport,
|
| + uint32_t viewportCount,
|
| + const VkViewport* viewports);
|
| +
|
| + void setScissor(const GrVkGpu* gpu,
|
| + uint32_t firstScissor,
|
| + uint32_t scissorCount,
|
| + const VkRect2D* scissors);
|
| +
|
| + void setBlendConstants(const GrVkGpu* gpu, const float blendConstants[4]);
|
|
|
| // Commands that only work outside of a render pass
|
| void clearColorImage(const GrVkGpu* gpu,
|
| @@ -149,6 +154,9 @@ public:
|
| int numRects,
|
| const VkClearRect* clearRects) const;
|
|
|
| + void bindPipeline(const GrVkGpu* gpu, const GrVkPipeline* pipeline);
|
| +
|
| +
|
| void drawIndexed(const GrVkGpu* gpu,
|
| uint32_t indexCount,
|
| uint32_t instanceCount,
|
|
|