renamed two functions that are CreateArrayInUBO and CreateArrayInSSBO
This commit is contained in:
parent
7f3132236f
commit
58c62ddb59
@ -141,8 +141,8 @@ public: //Buffer相关
|
||||
|
||||
#undef CREATE_BUFFER_OBJECT
|
||||
|
||||
GPUArrayBuffer *CreateUBO(const VkDeviceSize &uint_size);
|
||||
GPUArrayBuffer *CreateSSBO(const VkDeviceSize &uint_size);
|
||||
GPUArrayBuffer *CreateArrayInUBO(const VkDeviceSize &uint_size);
|
||||
GPUArrayBuffer *CreateArrayInSSBO(const VkDeviceSize &uint_size);
|
||||
|
||||
public: //Image
|
||||
|
||||
|
@ -8,7 +8,7 @@ namespace hgl
|
||||
{
|
||||
namespace graph
|
||||
{
|
||||
GPUArrayBuffer *GPUDevice::CreateUBO(const VkDeviceSize &item_length)
|
||||
GPUArrayBuffer *GPUDevice::CreateArrayInUBO(const VkDeviceSize &item_length)
|
||||
{
|
||||
const uint align_size=hgl_align<VkDeviceSize>(item_length,GetUBOAlign());
|
||||
|
||||
@ -17,7 +17,7 @@ namespace hgl
|
||||
return(new GPUArrayBuffer(vk_ma,align_size,GetUBORange()));
|
||||
}
|
||||
|
||||
GPUArrayBuffer *GPUDevice::CreateSSBO(const VkDeviceSize &item_length)
|
||||
GPUArrayBuffer *GPUDevice::CreateArrayInSSBO(const VkDeviceSize &item_length)
|
||||
{
|
||||
const uint align_size=hgl_align<VkDeviceSize>(item_length,GetSSBOAlign());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user