OK???? 3rd_draw_triangle_use_RenderList run OK!.
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
namespace hgl{namespace graph
|
||||
{
|
||||
struct GPUDeviceAttribute;
|
||||
struct UBODescriptor;
|
||||
|
||||
namespace mtl
|
||||
{
|
||||
@@ -21,13 +22,20 @@ namespace hgl{namespace graph
|
||||
protected:
|
||||
|
||||
const MaterialCreateConfig *config;
|
||||
uint32_t ubo_range;
|
||||
uint32_t ssbo_range;
|
||||
|
||||
MaterialDescriptorInfo mdi; ///<材质描述符管理器
|
||||
|
||||
AnsiString mi_codes; ///<MaterialInstance代码
|
||||
uint32_t mi_data_bytes; ///<MaterialInstance数据长度
|
||||
uint32_t mi_shader_stage; ///<MaterialInstance着色器阶段
|
||||
uint32_t mi_max_count; ///<MaterialInstance最大数量
|
||||
uint32_t mi_max_count;
|
||||
UBODescriptor *mi_ubo;
|
||||
|
||||
uint32_t l2w_shader_stage;
|
||||
uint32_t l2w_max_count;
|
||||
UBODescriptor *l2w_ubo;
|
||||
|
||||
ShaderCreateInfoMap shader_map; ///<着色器列表
|
||||
|
||||
@@ -68,7 +76,9 @@ namespace hgl{namespace graph
|
||||
MaterialCreateInfo(const MaterialCreateConfig *);
|
||||
~MaterialCreateInfo()=default;
|
||||
|
||||
bool SetMaterialInstance(const AnsiString &mi_glsl_codes,const uint32_t mi_struct_bytes,const uint32_t shader_stage_flag_bit);
|
||||
bool SetMaterialInstance(const AnsiString &mi_glsl_codes,const uint32_t mi_struct_bytes,const uint32_t shader_stage_flag_bits);
|
||||
|
||||
bool SetLocalToWorld(const uint32_t shader_stage_flag_bits);
|
||||
|
||||
bool AddStruct(const AnsiString &ubo_typename,const AnsiString &codes);
|
||||
bool AddStruct(const ShaderBufferSource &ss){return AddStruct(ss.struct_name,ss.codes);}
|
||||
@@ -78,7 +88,7 @@ namespace hgl{namespace graph
|
||||
|
||||
bool AddUBO(const uint32_t flag_bits,const DescriptorSetType &set_type,const ShaderBufferSource &ss);
|
||||
|
||||
bool CreateShader(const GPUDeviceAttribute *);
|
||||
bool CreateShader();
|
||||
};//class MaterialCreateInfo
|
||||
}//namespace mtl
|
||||
}//namespace graph
|
||||
|
Reference in New Issue
Block a user