Commit Graph

4 Commits

Author SHA1 Message Date
daiqingshuang
358162415b feat: Add post-processing effects and canvas widget
- Implemented a fullscreen quad vertex shader for post-processing effects.
- Added a noise fragment shader to apply noise effects to textures.
- Created a vignette fragment shader for darkening corners of the screen.
- Developed a canvas widget to manage child widgets with anchor points and flexible sizing.
- Introduced an effect chain widget to apply multiple post-processing effects in sequence.
- Added overlay widget to position child widgets with alignment and padding options.
- Implemented a post effect widget to apply effects like blur, vignette, and color adjustments to child widgets.
- Provided convenience functions for easily applying common effects to widgets.
2025-11-27 09:52:00 +08:00
daiqingshuang
51ded97e48 feat: Refactor code generation tool to use Jinja2 templates
- Replaced string concatenation with Jinja2 templates for improved maintainability and readability.
- Added new template files for struct definitions, buffer helpers, and buffer manager.
- Introduced a template loader to manage Jinja2 rendering and custom filters.
- Updated the README and documentation to reflect the new template system.
- Added comprehensive tests to ensure output consistency with the previous implementation.
- Maintained full API compatibility with existing functions.
2025-11-22 15:39:08 +08:00
daiqingshuang
00eaad2d42 功能:添加 buffer 数据设置便捷功能,生成辅助函数、类型安全包装器和管理器类 2025-11-22 14:55:14 +08:00
daiqingshuang
a635b0464f 功能:实现着色器编译与反射信息提取
- 新增ShaderCompiler类,通过glslc工具实现GLSL到SPIR-V的编译。
- 实现构建glslc命令、运行编译器及从SPIR-V二进制文件提取反射数据的功能。
- 为SPIR-V指令集、装饰符、执行模型及存储类创建常量。
- 开发SPIR-V解析器以提取类型信息、变量细节及反射数据
- 引入类型映射函数实现SPIR-V类型到C++类型的转换,并计算std430内存布局
- 定义着色器元数据、编译结果及SPIR-V反射信息的数据类
- 添加着色器发现、分组及元数据加载的实用函数
2025-11-22 11:51:31 +08:00