layout VKRenderable.h
This commit is contained in:
parent
e4f7403412
commit
479f001d6c
@ -1,7 +1,6 @@
|
|||||||
#ifndef HGL_GRAPH_VULKAN_RENDERABLE_INCLUDE
|
#ifndef HGL_GRAPH_VULKAN_RENDERABLE_INCLUDE
|
||||||
#define HGL_GRAPH_VULKAN_RENDERABLE_INCLUDE
|
#define HGL_GRAPH_VULKAN_RENDERABLE_INCLUDE
|
||||||
|
|
||||||
#include<hgl/graph/VK.h>
|
|
||||||
#include<hgl/graph/VKIndexBuffer.h>
|
#include<hgl/graph/VKIndexBuffer.h>
|
||||||
#include<hgl/type/Map.h>
|
#include<hgl/type/Map.h>
|
||||||
#include<hgl/type/String.h>
|
#include<hgl/type/String.h>
|
||||||
@ -69,8 +68,8 @@ public:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
void SetDrawCount(const uint32_t dc){draw_count=dc;} ///<设置当前对象绘制需要多少个顶点
|
void SetDrawCount(const uint32_t dc){draw_count=dc;} ///<设置当前对象绘制需要多少个顶点
|
||||||
virtual const uint32_t GetDrawCount()const ///<取得当前对象绘制需要多少个顶点
|
virtual const uint32_t GetDrawCount()const ///<取得当前对象绘制需要多少个顶点
|
||||||
{
|
{
|
||||||
if(indices_buffer)
|
if(indices_buffer)
|
||||||
return indices_buffer->GetCount();
|
return indices_buffer->GetCount();
|
||||||
@ -78,12 +77,12 @@ public:
|
|||||||
return draw_count;
|
return draw_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
VAB * GetVAB(const UTF8String &,VkDeviceSize *);
|
VAB * GetVAB (const UTF8String &,VkDeviceSize *);
|
||||||
VkBuffer GetBuffer(const UTF8String &,VkDeviceSize *);
|
VkBuffer GetBuffer (const UTF8String &,VkDeviceSize *);
|
||||||
const int GetBufferCount()const{return buffer_list.GetCount();}
|
const int GetBufferCount ()const {return buffer_list.GetCount();}
|
||||||
|
|
||||||
IndexBuffer * GetIndexBuffer() {return indices_buffer;}
|
IndexBuffer * GetIndexBuffer () {return indices_buffer;}
|
||||||
const VkDeviceSize GetIndexBufferOffset()const {return indices_offset;}
|
const VkDeviceSize GetIndexBufferOffset()const {return indices_offset;}
|
||||||
};//class Renderable
|
};//class Renderable
|
||||||
VK_NAMESPACE_END
|
VK_NAMESPACE_END
|
||||||
#endif//HGL_GRAPH_VULKAN_RENDERABLE_INCLUDE
|
#endif//HGL_GRAPH_VULKAN_RENDERABLE_INCLUDE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user