save code

This commit is contained in:
xsl
2025-12-20 22:34:23 +08:00
parent b6ac86a134
commit 7b07e7fbc1
15 changed files with 265 additions and 194 deletions
+13 -9
View File
@@ -94,7 +94,7 @@ private:
void setup_descriptor_pool();
void setup_descriptor_set_layout();
void setup_descriptor_set();
void update_descriptor_set(vector<Texture>& texs);
void update_descriptor_set(vector<Texture>& texs, vector<VkDescriptorSet>& descriptSet);
const bool kThick = false;
void copyBuffer(VkBuffer srcBuffer, VkBuffer dstBuffer, VkDeviceSize size);
@@ -115,12 +115,18 @@ private:
VkPipeline m_graphicsPipeline = VK_NULL_HANDLE;
VkPipelineLayout m_pipelineLayout = VK_NULL_HANDLE;
VkDescriptorSetLayout m_descriptorSetLayout = VK_NULL_HANDLE;
vector<VkDescriptorSet> m_descriptor_sets;
const uint32_t kMaxTexture = 10;
vector<Texture> m_texs;
vector<Texture> m_texs_next;
vector<Texture> m_texs_ex;
vector<VkDescriptorSet> m_descriptor_sets_left;
vector<VkDescriptorSet> m_descriptor_sets_right;
const uint32_t kTextureInit = 1;
const uint32_t kTextureMax = 10;
vector<Texture> m_texs_left;
vector<Texture> m_texs_right;
bool cur_left = true;
//vector<Texture>* _cur_texs;
vector<Texture> m_texs_thick;
std::vector<unsigned char> dummy_data;
unsigned dummy_w = 2880;
unsigned dummy_h = 2880;
std::vector<TextureLoadingVertexStructure> obj_vertices;
std::vector<uint32_t> obj_indices;
@@ -155,8 +161,6 @@ public:
void loadMotionThread();
std::thread worker_;
bool _isLoadMotion = false;
bool _needChangeMotion = false;
void doChangeMotion();
Callback _callback_loadfinish;
AnimationFinishedCallback _animationFinishedCallback;
bool _animationLoop = true;