added comment at RenderList2D

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2023-03-29 21:19:06 +08:00
parent f280068d50
commit 49f37447d0
3 changed files with 17 additions and 2 deletions

View File

@ -10,6 +10,18 @@ namespace hgl
{
namespace graph
{
using RenderableList=List<Renderable *>;
struct RenderableList
{
Material *mtl;
RenderableList ri_list;
GPUArrayBuffer *.........array;
};
/**
* <br>
* mvp用UBO/SSBO等数据RenderCommandBuffer
@ -32,7 +44,9 @@ namespace hgl
private:
List<Renderable *> ri_list;
RenderableList ri_list;
*ri_list_by_mtl;
VkDescriptorSet ds_list[DESCRIPTOR_SET_TYPE_COUNT];
DescriptorSet *renderable_desc_sets;

View File

@ -34,4 +34,3 @@ public:
};//class MaterialInstance
VK_NAMESPACE_END
#endif//HGL_GRAPH_VULKAN_MATERIAL_INSTANCE_INCLUDE

View File

@ -35,6 +35,8 @@ public:
operator VkPipeline(){return pipeline;}
const PipelineData *GetData()const{return data;}
const bool IsAlphaTest()const{return data->alpha_test>0;}
const bool IsAlphaBlend()const{return data->alpha_blend;}
};//class GraphicsPipeline