renamed to DynamicBufferAccess instead of UBODynamicAccess
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#define HGL_GRAPH_VULKAN_ARRAY_BUFFER_INCLUDE
|
||||
|
||||
#include<hgl/graph/VK.h>
|
||||
#include<hgl/graph/VKUBODynamic.h>
|
||||
#include<hgl/graph/VKDynamicBufferAccess.h>
|
||||
namespace hgl
|
||||
{
|
||||
class Collection;
|
||||
@@ -50,26 +50,26 @@ namespace hgl
|
||||
void Clear();
|
||||
|
||||
template<typename T>
|
||||
bool Start(UBODynamicAccess<T> *ubo_access,const uint32 start,const uint32 count)
|
||||
bool Start(DynamicBufferAccess<T> *dba,const uint32 start,const uint32 count)
|
||||
{
|
||||
if(!ubo_access)return(false);
|
||||
if(!dba)return(false);
|
||||
|
||||
void *ptr=Map(start,count);
|
||||
|
||||
if(!ptr)return(false);
|
||||
|
||||
ubo_access->Start((uchar *)ptr,align_size,count);
|
||||
dba->Start((uchar *)ptr,align_size,count);
|
||||
return(true);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void End(UBODynamicAccess<T> *ubo_access)
|
||||
void End(DynamicBufferAccess<T> *dba)
|
||||
{
|
||||
if(!ubo_access)return;
|
||||
if(!dba)return;
|
||||
|
||||
Flush(ubo_access->GetCount());
|
||||
Flush(dba->GetCount());
|
||||
|
||||
ubo_access->Restart();
|
||||
dba->Restart();
|
||||
}
|
||||
};//class GPUArrayBuffer
|
||||
}//namespace graph
|
||||
|
Reference in New Issue
Block a user