update command buffer and default theme engine
This commit is contained in:
parent
db20794b7f
commit
fd49c76b53
@ -99,12 +99,18 @@ public:
|
|||||||
return(true);
|
return(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool PushDescriptorSet(VkPipelineLayout pipeline_layout,uint32_t set,uint32_t count,const VkWriteDescriptorSet *write_desc_set)
|
||||||
|
{
|
||||||
|
vkCmdPushDescriptorSetKHR(cmd_buf,VK_PIPELINE_BIND_POINT_GRAPHICS,pipeline_layout,set,count,write_desc_set);
|
||||||
|
}
|
||||||
|
|
||||||
void PushConstants(ShaderStageBit shader_stage_bit,uint32_t offset,uint32_t size,const void *pValues)
|
void PushConstants(ShaderStageBit shader_stage_bit,uint32_t offset,uint32_t size,const void *pValues)
|
||||||
{
|
{
|
||||||
vkCmdPushConstants(cmd_buf,pipeline_layout,(VkShaderStageFlagBits)shader_stage_bit,offset,size,pValues);
|
vkCmdPushConstants(cmd_buf,pipeline_layout,(VkShaderStageFlagBits)shader_stage_bit,offset,size,pValues);
|
||||||
}
|
}
|
||||||
|
|
||||||
void PushConstants(const void *data,const uint32_t size){vkCmdPushConstants(cmd_buf,pipeline_layout,VK_SHADER_STAGE_VERTEX_BIT,0,size,data);}
|
void PushConstants(const void *data,const uint32_t size) {vkCmdPushConstants(cmd_buf,pipeline_layout,VK_SHADER_STAGE_VERTEX_BIT,0, size,data);}
|
||||||
|
void PushConstants(const void *data,const uint32_t offset,const uint32_t size) {vkCmdPushConstants(cmd_buf,pipeline_layout,VK_SHADER_STAGE_VERTEX_BIT,offset, size,data);}
|
||||||
|
|
||||||
bool BindVAB(RenderableInstance *);
|
bool BindVAB(RenderableInstance *);
|
||||||
|
|
||||||
|
@ -23,4 +23,4 @@ namespace hgl
|
|||||||
return(new DefaultThemeForm(f,rt,rc));
|
return(new DefaultThemeForm(f,rt,rc));
|
||||||
}
|
}
|
||||||
}//namespace gui
|
}//namespace gui
|
||||||
}//namespace hgl
|
}//namespace hgl
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#include<hgl/gui/ThemeEngine.h>
|
#include<hgl/gui/ThemeEngine.h>
|
||||||
#include<hgl/graph/VKMaterialInstance.h>
|
#include<hgl/graph/VKMaterialInstance.h>
|
||||||
#include<hgl/type/Map.h>
|
#include<hgl/type/Map.h>
|
||||||
#include"DTForm.h"
|
#include"DefaultThemeForm.h"
|
||||||
|
|
||||||
namespace hgl
|
namespace hgl
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,7 @@ namespace hgl
|
|||||||
if(!cmd_buf->BeginRenderPass())
|
if(!cmd_buf->BeginRenderPass())
|
||||||
return(false);
|
return(false);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cmd_buf->EndRenderPass();
|
cmd_buf->EndRenderPass();
|
||||||
return(true);
|
return(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user