diff --git a/src/SceneGraph/Vulkan/VKDeviceRenderPassManage.cpp b/src/SceneGraph/Vulkan/VKDeviceRenderPassManage.cpp index fcc06a4f..b2a44524 100644 --- a/src/SceneGraph/Vulkan/VKDeviceRenderPassManage.cpp +++ b/src/SceneGraph/Vulkan/VKDeviceRenderPassManage.cpp @@ -86,11 +86,11 @@ bool CreateAttachmentDescription(List &desc_list,const { desc->flags = 0; desc->samples = VK_SAMPLE_COUNT_1_BIT; - desc->loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR; //LOAD_OP_CLEAR代表LOAD时清空内容 - desc->storeOp = VK_ATTACHMENT_STORE_OP_STORE; //STORE_OP_STROE代表SOTRE时储存内容 - desc->stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE; //DONT CARE表示不在意 + desc->loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR; //LOAD_OP_CLEAR浠h〃LOAD鏃舵竻绌哄唴瀹 + desc->storeOp = VK_ATTACHMENT_STORE_OP_STORE; //STORE_OP_STROE浠h〃SOTRE鏃跺偍瀛樺唴瀹 + desc->stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE; //DONT CARE琛ㄧず涓嶅湪鎰 desc->stencilStoreOp= VK_ATTACHMENT_STORE_OP_DONT_CARE; - desc->initialLayout = VK_IMAGE_LAYOUT_UNDEFINED; //代表不关心初始布局 + desc->initialLayout = VK_IMAGE_LAYOUT_UNDEFINED; //浠h〃涓嶅叧蹇冨垵濮嬪竷灞 ++desc; } @@ -138,11 +138,11 @@ bool CreateColorAttachment( List &ref_list,Listflags = 0; desc->samples = VK_SAMPLE_COUNT_1_BIT; - desc->loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR; //LOAD_OP_CLEAR代表LOAD时清空内容 - desc->storeOp = VK_ATTACHMENT_STORE_OP_STORE; //STORE_OP_STROE代表SOTRE时储存内容 - desc->stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE; //DONT CARE表示不在意 + desc->loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR; //LOAD_OP_CLEAR浠h〃LOAD鏃舵竻绌哄唴瀹 + desc->storeOp = VK_ATTACHMENT_STORE_OP_STORE; //STORE_OP_STROE浠h〃SOTRE鏃跺偍瀛樺唴瀹 + desc->stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE; //DONT CARE琛ㄧず涓嶅湪鎰 desc->stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE; - desc->initialLayout = VK_IMAGE_LAYOUT_UNDEFINED; //代表不关心初始布局 + desc->initialLayout = VK_IMAGE_LAYOUT_UNDEFINED; //浠h〃涓嶅叧蹇冨垵濮嬪竷灞 desc->finalLayout = color_final_layout; ++desc; @@ -173,11 +173,11 @@ bool CreateDepthAttachment( List &ref_list,Listflags = 0; desc->samples = VK_SAMPLE_COUNT_1_BIT; - desc->loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR; //LOAD_OP_CLEAR代表LOAD时清空内容 - desc->storeOp = VK_ATTACHMENT_STORE_OP_DONT_CARE; //DONT CARE表示不在意 + desc->loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR; //LOAD_OP_CLEAR浠h〃LOAD鏃舵竻绌哄唴瀹 + desc->storeOp = VK_ATTACHMENT_STORE_OP_DONT_CARE; //DONT CARE琛ㄧず涓嶅湪鎰 desc->stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE; desc->stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE; - desc->initialLayout = VK_IMAGE_LAYOUT_UNDEFINED; //代表不关心初始布局 + desc->initialLayout = VK_IMAGE_LAYOUT_UNDEFINED; //浠h〃涓嶅叧蹇冨垵濮嬪竷灞 desc->finalLayout = depth_final_layout; } diff --git a/src/ShaderGen/ShaderLibrary.cpp b/src/ShaderGen/ShaderLibrary.cpp index 6a61d42f..75422dfa 100644 --- a/src/ShaderGen/ShaderLibrary.cpp +++ b/src/ShaderGen/ShaderLibrary.cpp @@ -12,7 +12,7 @@ namespace ObjectMap shader_library; } -// 因为是Debug阶段,所以现在直接从文件系统加载 +// 鍥犱负鏄疍ebug闃舵锛屾墍浠ョ幇鍦ㄧ洿鎺ヤ粠鏂囦欢绯荤粺鍔犺浇 const AnsiString *LoadShader(const AnsiString &shader_name) {