Added WorkObject::CreateRenderable(...)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
#include<hgl/graph/RenderFramework.h>
|
||||
#include<hgl/type/object/TickObject.h>
|
||||
#include<hgl/graph/RenderFramework.h>
|
||||
#include<hgl/Time.h>
|
||||
//#include<iostream>
|
||||
|
||||
@@ -60,6 +60,12 @@ namespace hgl
|
||||
{
|
||||
return render_pass->CreatePipeline(args...);
|
||||
}
|
||||
|
||||
graph::Renderable *CreateRenderable( const AnsiString &name,
|
||||
uint32_t vertices_count,
|
||||
graph::MaterialInstance *mi,
|
||||
graph::Pipeline *pipeline,
|
||||
const std::initializer_list<graph::VertexAttribDataPtr> &vad_list);
|
||||
};//class WorkObject
|
||||
|
||||
/**
|
||||
|
@@ -25,6 +25,13 @@ constexpr size_t VK_DESCRIPTOR_TYPE_END_RANGE=VK_DESCRIPTOR_TYPE_INPUT_ATTACHMEN
|
||||
constexpr size_t VK_DESCRIPTOR_TYPE_RANGE_SIZE=VK_DESCRIPTOR_TYPE_END_RANGE-VK_DESCRIPTOR_TYPE_BEGIN_RANGE+1;
|
||||
#endif//VK_DESCRIPTOR_TYPE_RANGE_SIZE
|
||||
|
||||
struct VertexAttribDataPtr
|
||||
{
|
||||
const char * name;
|
||||
const VkFormat format;
|
||||
const void * data;
|
||||
};
|
||||
|
||||
using BindingMap =Map<AnsiString,int>;
|
||||
using BindingMapArray =BindingMap[VK_DESCRIPTOR_TYPE_RANGE_SIZE];
|
||||
|
||||
|
Reference in New Issue
Block a user