a lot of rename

This commit is contained in:
2020-10-21 12:39:22 +08:00
parent a20afeba9e
commit 0e56a6b00c
69 changed files with 304 additions and 304 deletions

View File

@@ -4,27 +4,27 @@
#include<hgl/graph/VK.h>
#include<hgl/graph/VKMemory.h>
VK_NAMESPACE_BEGIN
struct BufferData
struct GPUBufferData
{
VkBuffer buffer;
GPUMemory * memory=nullptr;
GPUMemory * memory=nullptr;
VkDescriptorBufferInfo info;
};//struct BufferData
};//struct GPUBufferData
class GPUBuffer
{
protected:
VkDevice device;
BufferData buf;
GPUBufferData buf;
private:
friend class RenderDevice;
friend class GPUDevice;
friend class VertexAttribBuffer;
friend class IndexBuffer;
GPUBuffer(VkDevice d,const BufferData &b)
GPUBuffer(VkDevice d,const GPUBufferData &b)
{
device=d;
buf=b;
@@ -55,9 +55,9 @@ class VertexAttribBuffer:public GPUBuffer
private:
friend class RenderDevice;
friend class GPUDevice;
VertexAttribBuffer(VkDevice d,const BufferData &vb,VkFormat fmt,uint32_t _stride,uint32_t _count):GPUBuffer(d,vb)
VertexAttribBuffer(VkDevice d,const GPUBufferData &vb,VkFormat fmt,uint32_t _stride,uint32_t _count):GPUBuffer(d,vb)
{
format=fmt;
stride=_stride;
@@ -87,9 +87,9 @@ class IndexBuffer:public GPUBuffer
private:
friend class RenderDevice;
friend class GPUDevice;
IndexBuffer(VkDevice d,const BufferData &vb,IndexType it,uint32_t _count):GPUBuffer(d,vb)
IndexBuffer(VkDevice d,const GPUBufferData &vb,IndexType it,uint32_t _count):GPUBuffer(d,vb)
{
index_type=it;
count=_count;