added RayPicking example

This commit is contained in:
2022-02-10 18:56:00 +08:00
parent e6282b31d0
commit 9acfa5edd0
8 changed files with 208 additions and 15 deletions

View File

@@ -31,11 +31,6 @@ namespace hgl
const VkFormat GetFormat()const { return format; }
const uint32_t GetStride()const { return stride; }
const uint32_t GetCount ()const { return count; }
void *Map(VkDeviceSize start=0,VkDeviceSize size=0) override
{
return GPUBuffer::Map(start*stride,size*stride);
}
};//class VertexAttribBuffer:public GPUBuffer
using VBO=VertexAttribBuffer;