- Fix link resolution with proper relative/absolute path handling - Improve link styling with underline decoration - Hide leaf nodes from tree, only show directories - Fix log file path for packaged app
600 B
600 B
OpenGLShader::CompileCompute
bool CompileCompute(const char* computeSource);
从源代码编译计算着色器。
参数:
computeSource- 计算着色器源代码
返回: 成功返回 true,失败返回 false
线程安全: ❌
示例:
const char* cs = R"(
#version 430 core
layout(local_size_x = 16, local_size_y = 16) in;
void main() { /* compute logic */ }
)";
shader->CompileCompute(cs);
相关文档
- OpenGLShader 总览 - 返回类总览
- Compile (VS+FS) - 图形着色器版本