optimized codes of ShaderCreateInfo::ProcDefine
This commit is contained in:
@@ -183,7 +183,7 @@ public: //draw
|
||||
void DrawIndexed (const uint32_t index_count ) {vkCmdDrawIndexed(cmd_buf,index_count,1,0,0,0);}
|
||||
void Draw (const uint32_t vertex_count,const uint32_t instance_count) {vkCmdDraw(cmd_buf,vertex_count,instance_count,0,0);}
|
||||
void DrawIndexed (const uint32_t index_count ,const uint32_t instance_count) {vkCmdDrawIndexed(cmd_buf,index_count,instance_count,0,0,0);}
|
||||
|
||||
|
||||
template<typename ...ARGS> void Draw (ARGS...args) {vkCmdDraw(cmd_buf,args...);}
|
||||
template<typename ...ARGS> void DrawIndexed (ARGS...args) {vkCmdDrawIndexed(cmd_buf,args...);}
|
||||
|
||||
|
@@ -67,9 +67,5 @@ public:
|
||||
bool AddSubpassInput(const AnsiString name,uint8_t index);
|
||||
|
||||
void SetPushConstant(const AnsiString name,uint8_t offset,uint8_t size);
|
||||
|
||||
#ifdef _DEBUG
|
||||
void DebugOutput(int);
|
||||
#endif//_DEBUG
|
||||
};//class ShaderDescriptorInfo
|
||||
}}//namespace hgl::graph
|
||||
|
Reference in New Issue
Block a user