top of page
搜尋


C++ Programming #9 C++11 New Features
#ComputerScience #GameProgramming 本文主要有关 C++11 的一些新特性。 自动类型推导 —— auto 关键字 auto 关键字允许编译器根据初始化表达式自动推导变量的类型,这使得代码更简洁,减少了重复的类型声明。 例如, auto x...

Lingheng Tao
2024年8月25日讀畢需時 2 分鐘


C++ Programming #5 Functions
#GameProgramming #ComputerScience 这篇笔记主要是关于 C++ 中常见的函数以及相关的知识点。 基本知识 要使用一个 C++ 函数,必须完成以下三个工作: 提供函数的 定义 (Definition) 提供函数的 原型 (Prototype)...

Lingheng Tao
2024年8月23日讀畢需時 10 分鐘
![Metal #21 [Appendix] Compute Shaders](https://static.wixstatic.com/media/ab2a53_4a5d51bd11104748933b3ed6afb4bfb0~mv2.jpg/v1/fill/w_333,h_250,fp_0.50_0.50,q_30,blur_30,enc_avif,quality_auto/ab2a53_4a5d51bd11104748933b3ed6afb4bfb0~mv2.webp)
![Metal #21 [Appendix] Compute Shaders](https://static.wixstatic.com/media/ab2a53_4a5d51bd11104748933b3ed6afb4bfb0~mv2.jpg/v1/fill/w_454,h_341,fp_0.50_0.50,q_90,enc_avif,quality_auto/ab2a53_4a5d51bd11104748933b3ed6afb4bfb0~mv2.webp)
Metal #21 [Appendix] Compute Shaders
#GameEngine, #ComputerGraphics, #TechnicalArt 这篇笔记主要写一下关于Metal中的Compute Shader有关的部分。 使用显卡进行计算 并行计算 显卡的优势在于并行计算(parallelism)。对于线程安全的循环,我们就...

Lingheng Tao
2024年6月8日讀畢需時 3 分鐘
bottom of page