aboutsummaryrefslogtreecommitdiff
path: root/src/vulkan/graphics_pipeline.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vulkan/graphics_pipeline.h')
-rw-r--r--src/vulkan/graphics_pipeline.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/vulkan/graphics_pipeline.h b/src/vulkan/graphics_pipeline.h
index e08bdc3..7076231 100644
--- a/src/vulkan/graphics_pipeline.h
+++ b/src/vulkan/graphics_pipeline.h
@@ -42,7 +42,7 @@ class GraphicsPipeline : public Pipeline {
GraphicsPipeline(
Device* device,
const std::vector<amber::Pipeline::BufferInfo>& color_buffers,
- Format* depth_stencil_format,
+ amber::Pipeline::BufferInfo depth_stencil_buffer,
uint32_t fence_timeout_ms,
const std::vector<VkPipelineShaderStageCreateInfo>&);
~GraphicsPipeline() override;
@@ -52,8 +52,6 @@ class GraphicsPipeline : public Pipeline {
Result SetIndexBuffer(Buffer* buffer);
Result Clear();
- Result ClearBuffer(const VkClearValue& clear_value,
- VkImageAspectFlags aspect);
Result SetClearColor(float r, float g, float b, float a);
Result SetClearStencil(uint32_t stencil);
@@ -90,7 +88,7 @@ class GraphicsPipeline : public Pipeline {
// color buffers are owned by the amber::Pipeline.
std::vector<const amber::Pipeline::BufferInfo*> color_buffers_;
- Format* depth_stencil_format_;
+ amber::Pipeline::BufferInfo depth_stencil_buffer_;
std::unique_ptr<IndexBuffer> index_buffer_;
uint32_t frame_width_ = 0;