代码排版
This commit is contained in:
parent
c56827a348
commit
73a6c22b64
@ -26,11 +26,6 @@ public:
|
|||||||
|
|
||||||
operator VkCommandBuffer(){return cmd_buf;}
|
operator VkCommandBuffer(){return cmd_buf;}
|
||||||
|
|
||||||
bool Begin(RenderPass *rp,Framebuffer *fb);
|
|
||||||
bool Bind(Pipeline *p);
|
|
||||||
bool Bind(PipelineLayout *pl);
|
|
||||||
bool Bind(VertexInput *vi);
|
|
||||||
|
|
||||||
void SetRenderArea(const VkRect2D &ra){render_area=ra;}
|
void SetRenderArea(const VkRect2D &ra){render_area=ra;}
|
||||||
void SetClearColor(float r,float g,float b,float a=1.0f)
|
void SetClearColor(float r,float g,float b,float a=1.0f)
|
||||||
{
|
{
|
||||||
@ -46,6 +41,14 @@ public:
|
|||||||
clear_values[1].depthStencil.stencil=s;
|
clear_values[1].depthStencil.stencil=s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Begin(RenderPass *rp,Framebuffer *fb);
|
||||||
|
bool Bind(Pipeline *p);
|
||||||
|
bool Bind(PipelineLayout *pl);
|
||||||
|
bool Bind(VertexInput *vi);
|
||||||
|
bool End();
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
void SetDepthBias(float constant_factor,float clamp,float slope_factor);
|
void SetDepthBias(float constant_factor,float clamp,float slope_factor);
|
||||||
void SetDepthBounds(float min_db,float max_db);
|
void SetDepthBounds(float min_db,float max_db);
|
||||||
void SetStencilCompareMask(VkStencilFaceFlags faceMask,uint32_t compareMask);
|
void SetStencilCompareMask(VkStencilFaceFlags faceMask,uint32_t compareMask);
|
||||||
@ -56,9 +59,10 @@ public:
|
|||||||
|
|
||||||
void SetLineWidth(float);
|
void SetLineWidth(float);
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
void Draw(const uint32_t vertex_count);
|
void Draw(const uint32_t vertex_count);
|
||||||
void Draw(const uint32_t vertex_count,const uint32_t instance_count,const uint32_t first_vertex=0,const uint32_t first_instance=0);
|
void Draw(const uint32_t vertex_count,const uint32_t instance_count,const uint32_t first_vertex=0,const uint32_t first_instance=0);
|
||||||
bool End();
|
|
||||||
};//class CommandBuffer
|
};//class CommandBuffer
|
||||||
VK_NAMESPACE_END
|
VK_NAMESPACE_END
|
||||||
#endif//HGL_GRAPH_VULKAN_COMMAND_BUFFER_INCLUDE
|
#endif//HGL_GRAPH_VULKAN_COMMAND_BUFFER_INCLUDE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user