added comment at RenderList2D
This commit is contained in:
parent
f280068d50
commit
49f37447d0
@ -10,6 +10,18 @@ namespace hgl
|
|||||||
{
|
{
|
||||||
namespace graph
|
namespace graph
|
||||||
{
|
{
|
||||||
|
using RenderableList=List<Renderable *>;
|
||||||
|
|
||||||
|
struct RenderableList
|
||||||
|
{
|
||||||
|
Material *mtl;
|
||||||
|
|
||||||
|
RenderableList ri_list;
|
||||||
|
|
||||||
|
GPUArrayBuffer *.........array;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 渲染对象列表<br>
|
* 渲染对象列表<br>
|
||||||
* 已经展开的渲染对象列表,产生mvp用UBO/SSBO等数据,最终创建RenderCommandBuffer
|
* 已经展开的渲染对象列表,产生mvp用UBO/SSBO等数据,最终创建RenderCommandBuffer
|
||||||
@ -32,7 +44,9 @@ namespace hgl
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
List<Renderable *> ri_list;
|
RenderableList ri_list;
|
||||||
|
|
||||||
|
*ri_list_by_mtl; 按材质区分的渲染列表
|
||||||
|
|
||||||
VkDescriptorSet ds_list[DESCRIPTOR_SET_TYPE_COUNT];
|
VkDescriptorSet ds_list[DESCRIPTOR_SET_TYPE_COUNT];
|
||||||
DescriptorSet *renderable_desc_sets;
|
DescriptorSet *renderable_desc_sets;
|
||||||
|
@ -34,4 +34,3 @@ public:
|
|||||||
};//class MaterialInstance
|
};//class MaterialInstance
|
||||||
VK_NAMESPACE_END
|
VK_NAMESPACE_END
|
||||||
#endif//HGL_GRAPH_VULKAN_MATERIAL_INSTANCE_INCLUDE
|
#endif//HGL_GRAPH_VULKAN_MATERIAL_INSTANCE_INCLUDE
|
||||||
|
|
||||||
|
@ -35,6 +35,8 @@ public:
|
|||||||
|
|
||||||
operator VkPipeline(){return pipeline;}
|
operator VkPipeline(){return pipeline;}
|
||||||
|
|
||||||
|
const PipelineData *GetData()const{return data;}
|
||||||
|
|
||||||
const bool IsAlphaTest()const{return data->alpha_test>0;}
|
const bool IsAlphaTest()const{return data->alpha_test>0;}
|
||||||
const bool IsAlphaBlend()const{return data->alpha_blend;}
|
const bool IsAlphaBlend()const{return data->alpha_blend;}
|
||||||
};//class GraphicsPipeline
|
};//class GraphicsPipeline
|
||||||
|
Loading…
x
Reference in New Issue
Block a user