category

Books

共 3674 篇文章。
全部文章BooksgameJavaIndiegolang客户端开发MinigameSaasrustPythoncgTypescriptengineCocos
books

《OGRE 3D 渲染引擎原理与架构》3.2 参数缓冲 GpuProgramParameters

GPU 程序的常量参数放在一块字节缓冲里:ConstantList 是 std::vector<uchar>,GpuConstantDefinition 记录物理字节偏移与元素/数组尺寸。低层程序用 setConstant 以 float4 逻辑索引写入(经 logical→physical 映射),高层程序用 setNamedConstant 查名称直写物理偏移。lab 复现字节缓冲、双路径写入与数组超界截断。

8 分钟阅读
书稿 OGRE C++