开始写,脸的点云了。
This commit is contained in:
@@ -60,6 +60,7 @@ TextureLoading::~TextureLoading()
|
|||||||
vertex_buffer.reset();
|
vertex_buffer.reset();
|
||||||
index_buffer.reset();
|
index_buffer.reset();
|
||||||
uniform_buffer_vs.reset();
|
uniform_buffer_vs.reset();
|
||||||
|
point_uniform_vs.reset();
|
||||||
|
|
||||||
|
|
||||||
point_vertex_buffer.reset(); // BufferC 会自动清理
|
point_vertex_buffer.reset(); // BufferC 会自动清理
|
||||||
@@ -1454,7 +1455,7 @@ void TextureLoading::setup_point_descriptor_set()
|
|||||||
// --- 新增:更新点云描述符集以指向 uniform_buffer_vs 的辅助函数 ---
|
// --- 新增:更新点云描述符集以指向 uniform_buffer_vs 的辅助函数 ---
|
||||||
void TextureLoading::update_point_descriptor_set()
|
void TextureLoading::update_point_descriptor_set()
|
||||||
{
|
{
|
||||||
if (!uniform_buffer_vs) { // 检查主 UBO 缓冲区是否存在
|
if (!point_uniform_vs) { // 检查主 UBO 缓冲区是否存在
|
||||||
LOGW("Main uniform buffer (uniform_buffer_vs) not created yet, cannot update point descriptor set.");
|
LOGW("Main uniform buffer (uniform_buffer_vs) not created yet, cannot update point descriptor set.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,6 +88,14 @@ public:
|
|||||||
float lod_bias = 0.0f;
|
float lod_bias = 0.0f;
|
||||||
} ubo_vs;
|
} ubo_vs;
|
||||||
|
|
||||||
|
std::unique_ptr<vkb::core::BufferC> point_uniform_vs;
|
||||||
|
struct
|
||||||
|
{
|
||||||
|
glm::mat4 projection;
|
||||||
|
glm::mat4 model;
|
||||||
|
glm::mat4 view;
|
||||||
|
} point_ubo;
|
||||||
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
VkPipeline solid;
|
VkPipeline solid;
|
||||||
|
|||||||
Reference in New Issue
Block a user