Files
XCEngine/docs/api/d3d12/d3d12-device-compile-shader.md

18 lines
321 B
Markdown
Raw Normal View History

2026-03-20 19:43:28 +08:00
# D3D12Device::CompileShader
编译着色器。
```cpp
RHIShader* CompileShader(const ShaderCompileDesc& desc) override;
```
**参数:**
- `desc` - 着色器编译描述
**返回:** `RHIShader*` - 创建的着色器指针
## 相关文档
- [D3D12Device 总览](d3d12-device.md)
- [D3D12Shader](d3d12-shader.md)