docs: Fix SKILL.md规范 violations - Remove ## 方法列表 and flatten ### sub-headers in ## 公共方法
This commit is contained in:
@@ -23,4 +23,4 @@ OpenGL 后端已创建以下组件文件夹和文档:
|
||||
## 相关文档
|
||||
|
||||
- [OpenGL 后端总览](overview.md)
|
||||
- [RHI 抽象层](../d3d12/overview.md)
|
||||
- [RHI 抽象层](overview.md)
|
||||
|
||||
@@ -4,29 +4,33 @@
|
||||
|
||||
**描述**: OpenGL 缓冲区的实现,继承自 `RHIBuffer`。
|
||||
|
||||
## 方法列表
|
||||
## 公共方法
|
||||
|
||||
| 方法 | 文档 |
|
||||
| 方法 | 描述 |
|
||||
|------|------|
|
||||
| `Initialize` | [详细文档](initialize.md) |
|
||||
| `InitializeVertexBuffer` | [详细文档](initialize-vertex-buffer.md) |
|
||||
| `InitializeIndexBuffer` | [详细文档](initialize-index-buffer.md) |
|
||||
| `Shutdown` | [详细文档](../../buffer/shutdown.md) |
|
||||
| `Bind` | [详细文档](bind.md) |
|
||||
| `Unbind` | [详细文档](unbind.md) |
|
||||
| `BindBase` | [详细文档](bind-base.md) |
|
||||
| `Map` | [详细文档](../../buffer/map.md) |
|
||||
| `Unmap` | [详细文档](../../buffer/unmap.md) |
|
||||
| `SetData` | [详细文档](../../buffer/set-data.md) |
|
||||
| `GetID` | [详细文档](get-id.md) |
|
||||
| `GetSize` | [详细文档](../../buffer/get-size.md) |
|
||||
| `GetType` | [详细文档](get-type.md) |
|
||||
| `IsDynamic` | [详细文档](is-dynamic.md) |
|
||||
| `GetBufferType` / `SetBufferType` | [详细文档](../../buffer/get-buffer-type.md) |
|
||||
| `GetStride` / `SetStride` | [详细文档](../../buffer/get-stride.md) |
|
||||
| `GetNativeHandle` | [详细文档](../../buffer/get-native-handle.md) |
|
||||
| `GetState` / `SetState` | [详细文档](../../buffer/get-state.md) |
|
||||
| `GetName` / `SetName` | [详细文档](../../buffer/get-name.md) |
|
||||
| [`Initialize`](initialize.md) | 初始化缓冲区 |
|
||||
| [`InitializeVertexBuffer`](initialize-vertex-buffer.md) | 初始化顶点缓冲 |
|
||||
| [`InitializeIndexBuffer`](initialize-index-buffer.md) | 初始化索引缓冲 |
|
||||
| [`Shutdown`](../../../threading/task-system/shutdown.md) | 关闭缓冲区 |
|
||||
| [`Bind`](bind.md) | 绑定缓冲区 |
|
||||
| [`Unbind`](unbind.md) | 解绑缓冲区 |
|
||||
| [`BindBase`](bind-base.md) | 绑定到基准点 |
|
||||
| [`Map`](../../buffer/map.md) | 映射缓冲区 |
|
||||
| [`Unmap`](../../buffer/unmap.md) | 取消映射 |
|
||||
| [`SetData`](../../buffer/set-data.md) | 设置数据 |
|
||||
| [`GetID`](get-id.md) | 获取 OpenGL 缓冲 ID |
|
||||
| [`GetSize`](../../buffer/get-size.md) | 获取缓冲区大小 |
|
||||
| [`GetType`](get-type.md) | 获取缓冲区类型 |
|
||||
| [`IsDynamic`](is-dynamic.md) | 检查是否动态 |
|
||||
| [`GetBufferType`](../../buffer/get-buffer-type.md) | 获取缓冲区类型 |
|
||||
| [`SetBufferType`](../../buffer/set-buffer-type.md) | 设置缓冲区类型 |
|
||||
| [`GetStride`](../../buffer/get-stride.md) | 获取步长 |
|
||||
| [`SetStride`](../../buffer/set-stride.md) | 设置步长 |
|
||||
| [`GetNativeHandle`](../../buffer/get-native-handle.md) | 获取原生句柄 |
|
||||
| [`GetState`](../../buffer/get-state.md) | 获取资源状态 |
|
||||
| [`SetState`](../../buffer/set-state.md) | 设置资源状态 |
|
||||
| [`GetName`](../../buffer/get-name.md) | 获取资源名称 |
|
||||
| [`SetName`](../../buffer/set-name.md) | 设置资源名称 |
|
||||
|
||||
## 相关文档
|
||||
|
||||
|
||||
@@ -4,40 +4,39 @@
|
||||
|
||||
**描述**: OpenGL 命令列表实现,继承自 `RHICommandList`。
|
||||
|
||||
## 方法列表
|
||||
## 公共方法
|
||||
|
||||
| 方法 | 文档 |
|
||||
| 方法 | 描述 |
|
||||
|------|------|
|
||||
| `Shutdown` | [详细文档](../../command-list/shutdown.md) |
|
||||
| `Reset` | [详细文档](../../command-list/reset.md) |
|
||||
| `Close` | [详细文档](../../command-list/close.md) |
|
||||
| `Clear` | [详细文档](clear.md) |
|
||||
| `ClearColor` | [详细文档](clear-color.md) |
|
||||
| `ClearDepth` | [详细文档](clear-depth.md) |
|
||||
| `ClearStencil` | [详细文档](clear-stencil.md) |
|
||||
| `ClearDepthStencil` | [详细文档](clear-depth-stencil.md) |
|
||||
| `SetPipelineState` | [详细文档](set-pipeline-state.md) |
|
||||
| `SetVertexBuffer` | [详细文档](set-vertex-buffer.md) |
|
||||
| `SetVertexBuffers` | [详细文档](set-vertex-buffers.md) |
|
||||
| `SetIndexBuffer` | [详细文档](set-index-buffer.md) |
|
||||
| `TransitionBarrier` | [详细文档](transition-barrier.md) |
|
||||
| `SetPrimitiveTopology` | [详细文档](set-primitive-topology.md) |
|
||||
| `SetViewport` | [详细文档](set-viewport.md) |
|
||||
| `SetViewports` | [详细文档](set-viewports.md) |
|
||||
| `SetScissorRect` | [详细文档](set-scissor-rect.md) |
|
||||
| `SetScissorRects` | [详细文档](set-scissor-rects.md) |
|
||||
| `SetRenderTargets` | [详细文档](set-render-targets.md) |
|
||||
| `SetDepthStencilState` | [详细文档](set-depth-stencil-state.md) |
|
||||
| `SetStencilRef` | [详细文档](set-stencil-ref.md) |
|
||||
| `SetBlendState` | [详细文档](set-blend-state.md) |
|
||||
| `SetBlendFactor` | [详细文档](set-blend-factor.md) |
|
||||
| `ClearRenderTarget` | [详细文档](clear-render-target.md) |
|
||||
| `ClearDepthStencil` | [详细文档](clear-depth-stencil.md) |
|
||||
| `Draw` | [详细文档](draw.md) |
|
||||
| `DrawIndexed` | [详细文档](draw-indexed.md) |
|
||||
| `Dispatch` | [详细文档](dispatch.md) |
|
||||
| `CopyResource` | [详细文档](copy-resource.md) |
|
||||
| **OpenGL 特有方法** | [详细文档](opengl-methods.md) |
|
||||
| [`Shutdown`](../../../threading/task-system/shutdown.md) | 关闭命令列表 |
|
||||
| [`Reset`](../../command-list/reset.md) | 重置命令列表 |
|
||||
| [`Close`](../../command-list/close.md) | 关闭命令列表 |
|
||||
| [`Clear`](clear.md) | 清除 |
|
||||
| [`ClearColor`](clear-color.md) | 清除颜色 |
|
||||
| [`ClearDepth`](clear-depth.md) | 清除深度 |
|
||||
| [`ClearStencil`](clear-stencil.md) | 清除模板 |
|
||||
| [`ClearDepthStencil`](clear-depth-stencil.md) | 清除深度模板 |
|
||||
| [`SetPipelineState`](set-pipeline-state.md) | 设置管线状态 |
|
||||
| [`SetVertexBuffer`](set-vertex-buffer.md) | 设置顶点缓冲 |
|
||||
| [`SetVertexBuffers`](set-vertex-buffers.md) | 设置多个顶点缓冲 |
|
||||
| [`SetIndexBuffer`](set-index-buffer.md) | 设置索引缓冲 |
|
||||
| [`TransitionBarrier`](transition-barrier.md) | 资源状态转换 |
|
||||
| [`SetPrimitiveTopology`](set-primitive-topology.md) | 设置图元拓扑 |
|
||||
| [`SetViewport`](set-viewport.md) | 设置视口 |
|
||||
| [`SetViewports`](set-viewports.md) | 设置多个视口 |
|
||||
| [`SetScissorRect`](set-scissor-rect.md) | 设置裁剪矩形 |
|
||||
| [`SetScissorRects`](set-scissor-rects.md) | 设置多个裁剪矩形 |
|
||||
| [`SetRenderTargets`](set-render-targets.md) | 设置渲染目标 |
|
||||
| [`SetDepthStencilState`](set-depth-stencil-state.md) | 设置深度模板状态 |
|
||||
| [`SetStencilRef`](set-stencil-ref.md) | 设置模板引用值 |
|
||||
| [`SetBlendState`](set-blend-state.md) | 设置混合状态 |
|
||||
| [`SetBlendFactor`](set-blend-factor.md) | 设置混合因子 |
|
||||
| [`ClearRenderTarget`](clear-render-target.md) | 清除渲染目标 |
|
||||
| [`Draw`](draw.md) | 绘制 |
|
||||
| [`DrawIndexed`](draw-indexed.md) | 索引绘制 |
|
||||
| [`Dispatch`](dispatch.md) | 分发计算任务 |
|
||||
| [`CopyResource`](copy-resource.md) | 复制资源 |
|
||||
| [`OpenGLMethods`](opengl-methods.md) | OpenGL 特有方法 |
|
||||
|
||||
## 相关文档
|
||||
|
||||
|
||||
@@ -4,19 +4,19 @@
|
||||
|
||||
**描述**: OpenGL 命令队列实现,继承自 `RHICommandQueue`。
|
||||
|
||||
## 方法列表
|
||||
## 公共方法
|
||||
|
||||
| 方法 | 文档 |
|
||||
| 方法 | 描述 |
|
||||
|------|------|
|
||||
| `Shutdown` | [详细文档](../../command-queue/shutdown.md) |
|
||||
| `ExecuteCommandLists` | [详细文档](execute-command-lists.md) |
|
||||
| `Signal` | [详细文档](signal.md) |
|
||||
| `Wait` | [详细文档](../../../threading/task-group/wait.md) |
|
||||
| `GetCompletedValue` | [详细文档](get-completed-value.md) |
|
||||
| `WaitForIdle` | [详细文档](wait-for-idle.md) |
|
||||
| `GetType` | [详细文档](../../command-queue/get-type.md) |
|
||||
| `GetTimestampFrequency` | [详细文档](get-timestamp-frequency.md) |
|
||||
| `GetNativeHandle` | [详细文档](../../command-queue/get-native-handle.md) |
|
||||
| [`Shutdown`](../../../threading/task-system/shutdown.md) | 关闭命令队列 |
|
||||
| [`ExecuteCommandLists`](execute-command-lists.md) | 执行命令列表 |
|
||||
| [`Signal`](signal.md) | 信号栅栏 |
|
||||
| [`Wait`](../../../threading/task-group/wait.md) | 等待栅栏 |
|
||||
| [`GetCompletedValue`](get-completed-value.md) | 获取完成值 |
|
||||
| [`WaitForIdle`](wait-for-idle.md) | 等待空闲 |
|
||||
| [`GetType`](../../command-queue/get-type.md) | 获取队列类型 |
|
||||
| [`GetTimestampFrequency`](get-timestamp-frequency.md) | 获取时间戳频率 |
|
||||
| [`GetNativeHandle`](../../buffer/get-native-handle.md) | 获取原生句柄 |
|
||||
|
||||
## 相关文档
|
||||
|
||||
|
||||
@@ -4,24 +4,25 @@
|
||||
|
||||
**描述**: OpenGL 深度模板视图实现。
|
||||
|
||||
## 方法列表
|
||||
## 公共方法
|
||||
|
||||
| 方法 | 文档 |
|
||||
| 方法 | 描述 |
|
||||
|------|------|
|
||||
| `Initialize` | [详细文档](initialize.md) |
|
||||
| `InitializeCubemap` | [详细文档](initialize-cubemap.md) |
|
||||
| `Shutdown` | [详细文档](shutdown.md) |
|
||||
| `Bind` | [详细文档](bind.md) |
|
||||
| `Unbind` | [详细文档](unbind.md) |
|
||||
| `ClearDepth` | [详细文档](clear-depth.md) |
|
||||
| `ClearStencil` | [详细文档](clear-stencil.md) |
|
||||
| `ClearDepthStencil` | [详细文档](clear-depth-stencil.md) |
|
||||
| `GetFramebuffer` | [详细文档](get-framebuffer.md) |
|
||||
| `GetTexture` | [详细文档](get-texture.md) |
|
||||
| `GetMipLevel` | [详细文档](get-mip-level.md) |
|
||||
| `GetWidth` / `GetHeight` | [详细文档](get-size.md) |
|
||||
| `BindFramebuffer` | [详细文档](bind-framebuffer.md) |
|
||||
| `UnbindFramebuffer` | [详细文档](unbind-framebuffer.md) |
|
||||
| [`Initialize`](initialize.md) | 初始化深度模板视图 |
|
||||
| [`InitializeCubemap`](initialize-cubemap.md) | 初始化立方体贴图深度模板视图 |
|
||||
| [`Shutdown`](shutdown.md) | 关闭深度模板视图 |
|
||||
| [`Bind`](bind.md) | 绑定深度模板视图 |
|
||||
| [`Unbind`](unbind.md) | 解绑深度模板视图 |
|
||||
| [`ClearDepth`](clear-depth.md) | 清除深度 |
|
||||
| [`ClearStencil`](clear-stencil.md) | 清除模板 |
|
||||
| [`ClearDepthStencil`](clear-depth-stencil.md) | 清除深度和模板 |
|
||||
| [`GetFramebuffer`](get-framebuffer.md) | 获取帧缓冲 |
|
||||
| [`GetTexture`](get-texture.md) | 获取纹理 |
|
||||
| [`GetMipLevel`](get-mip-level.md) | 获取 Mip 级别 |
|
||||
| [`GetWidth`](get-size.md) | 获取宽度 |
|
||||
| [`GetHeight`](get-size.md) | 获取高度 |
|
||||
| [`BindFramebuffer`](bind-framebuffer.md) | 绑定帧缓冲 |
|
||||
| [`UnbindFramebuffer`](unbind-framebuffer.md) | 解绑帧缓冲 |
|
||||
|
||||
## 相关文档
|
||||
|
||||
|
||||
@@ -4,32 +4,32 @@
|
||||
|
||||
**描述**: OpenGL 设备的实现,继承自 `RHIDevice`。
|
||||
|
||||
## 方法列表
|
||||
## 公共方法
|
||||
|
||||
| 方法 | 文档 |
|
||||
| 方法 | 描述 |
|
||||
|------|------|
|
||||
| `Initialize` | [详细文档](../../device/initialize.md) |
|
||||
| `Shutdown` | [详细文档](../../device/shutdown.md) |
|
||||
| `CreateRenderWindow` | [详细文档](create-render-window.md) |
|
||||
| `InitializeWithExistingWindow` | [详细文档](initialize-with-existing-window.md) |
|
||||
| `GetWindow` | [详细文档](get-window.md) |
|
||||
| `SwapBuffers` | [详细文档](swap-buffers.md) |
|
||||
| `PollEvents` | [详细文档](poll-events.md) |
|
||||
| `SetShouldClose` | [详细文档](set-should-close.md) |
|
||||
| `ShouldClose` | [详细文档](should-close.md) |
|
||||
| `CreateBuffer` | [详细文档](../../device/create-buffer.md) |
|
||||
| `CreateTexture` | [详细文档](../../device/create-texture.md) |
|
||||
| `CreateSwapChain` | [详细文档](../../device/create-swap-chain.md) |
|
||||
| `CreateCommandList` | [详细文档](../../device/create-command-list.md) |
|
||||
| `CreateCommandQueue` | [详细文档](../../device/create-command-queue.md) |
|
||||
| `CompileShader` | [详细文档](../../device/compile-shader.md) |
|
||||
| `CreatePipelineState` | [详细文档](../../device/create-pipeline-state.md) |
|
||||
| `CreateFence` | [详细文档](../../device/create-fence.md) |
|
||||
| `CreateSampler` | [详细文档](../../device/create-sampler.md) |
|
||||
| `GetCapabilities` | [详细文档](../../device/get-capabilities.md) |
|
||||
| `GetDeviceInfo` | [详细文档](../../device/get-device-info.md) |
|
||||
| `GetNativeDevice` | [详细文档](../../device/get-native-device.md) |
|
||||
| `GetNativeHandle` | [详细文档](../../device/get-native-device.md) |
|
||||
| [`Initialize`](../../../threading/task-system/initialize.md) | 初始化设备 |
|
||||
| [`Shutdown`](../../../threading/task-system/shutdown.md) | 关闭设备 |
|
||||
| [`CreateRenderWindow`](create-render-window.md) | 创建渲染窗口 |
|
||||
| [`InitializeWithExistingWindow`](initialize-with-existing-window.md) | 使用现有窗口初始化 |
|
||||
| [`GetWindow`](get-window.md) | 获取窗口 |
|
||||
| [`SwapBuffers`](swap-buffers.md) | 交换缓冲 |
|
||||
| [`PollEvents`](poll-events.md) | 处理窗口事件 |
|
||||
| [`SetShouldClose`](set-should-close.md) | 设置关闭标志 |
|
||||
| [`ShouldClose`](should-close.md) | 检查是否应关闭 |
|
||||
| [`CreateBuffer`](../../device/create-buffer.md) | 创建缓冲区 |
|
||||
| [`CreateTexture`](../../device/create-texture.md) | 创建纹理 |
|
||||
| [`CreateSwapChain`](../../device/create-swap-chain.md) | 创建交换链 |
|
||||
| [`CreateCommandList`](../../device/create-command-list.md) | 创建命令列表 |
|
||||
| [`CreateCommandQueue`](../../device/create-command-queue.md) | 创建命令队列 |
|
||||
| [`CompileShader`](../../device/compile-shader.md) | 编译着色器 |
|
||||
| [`CreatePipelineState`](../../device/create-pipeline-state.md) | 创建管线状态 |
|
||||
| [`CreateFence`](../../device/create-fence.md) | 创建栅栏 |
|
||||
| [`CreateSampler`](../../device/create-sampler.md) | 创建采样器 |
|
||||
| [`GetCapabilities`](../../device/get-capabilities.md) | 获取设备能力 |
|
||||
| [`GetDeviceInfo`](../../device/get-device-info.md) | 获取设备信息 |
|
||||
| [`GetNativeDevice`](../../device/get-native-device.md) | 获取原生设备 |
|
||||
| [`GetNativeHandle`](../../buffer/get-native-handle.md) | 获取原生句柄 |
|
||||
|
||||
## 相关文档
|
||||
|
||||
|
||||
@@ -4,20 +4,20 @@
|
||||
|
||||
**描述**: OpenGL 栅栏同步实现,继承自 `RHIFence`。
|
||||
|
||||
## 方法列表
|
||||
## 公共方法
|
||||
|
||||
| 方法 | 文档 |
|
||||
| 方法 | 描述 |
|
||||
|------|------|
|
||||
| `Initialize` | [详细文档](initialize.md) |
|
||||
| `Shutdown` | [详细文档](../../fence/shutdown.md) |
|
||||
| `Signal` | [详细文档](signal.md) |
|
||||
| `Wait` | [详细文档](../../../threading/task-group/wait.md) |
|
||||
| `Reset` | [详细文档](reset.md) |
|
||||
| `IsSignaled` | [详细文档](is-signaled.md) |
|
||||
| `GetStatus` | [详细文档](get-status.md) |
|
||||
| `GetCompletedValue` | [详细文档](get-completed-value.md) |
|
||||
| `GetCurrentValue` | [详细文档](get-current-value.md) |
|
||||
| `GetNativeHandle` | [详细文档](../../fence/get-native-handle.md) |
|
||||
| [`Initialize`](initialize.md) | 初始化栅栏 |
|
||||
| [`Shutdown`](../../../threading/task-system/shutdown.md) | 关闭栅栏 |
|
||||
| [`Signal`](signal.md) | 信号栅栏 |
|
||||
| [`Wait`](../../../threading/task-group/wait.md) | 等待栅栏 |
|
||||
| [`Reset`](reset.md) | 重置栅栏 |
|
||||
| [`IsSignaled`](is-signaled.md) | 检查是否已信号 |
|
||||
| [`GetStatus`](get-status.md) | 获取状态 |
|
||||
| [`GetCompletedValue`](get-completed-value.md) | 获取完成值 |
|
||||
| [`GetCurrentValue`](get-current-value.md) | 获取当前值 |
|
||||
| [`GetNativeHandle`](../../buffer/get-native-handle.md) | 获取原生句柄 |
|
||||
|
||||
## 相关文档
|
||||
|
||||
|
||||
@@ -4,34 +4,34 @@
|
||||
|
||||
**描述**: OpenGL 管线状态对象实现,继承自 `RHIPipelineState`。
|
||||
|
||||
## 方法列表
|
||||
## 公共方法
|
||||
|
||||
| 方法 | 文档 |
|
||||
| 方法 | 描述 |
|
||||
|------|------|
|
||||
| `Shutdown` | [详细文档](../../pipeline-state/shutdown.md) |
|
||||
| `Bind` | [详细文档](../../shader/bind.md) |
|
||||
| `Unbind` | [详细文档](../../shader/unbind.md) |
|
||||
| `GetNativeHandle` | [详细文档](../../pipeline-state/get-native-handle.md) |
|
||||
| `GetType` | [详细文档](../../pipeline-state/get-type.md) |
|
||||
| `SetDepthStencilState` | [详细文档](set-depth-stencil-state.md) |
|
||||
| `SetBlendState` | [详细文档](set-blend-state.md) |
|
||||
| `SetRasterizerState` | [详细文档](set-rasterizer-state.md) |
|
||||
| `SetViewport` | [详细文档](set-viewport.md) |
|
||||
| `SetScissor` | [详细文档](set-scissor.md) |
|
||||
| `SetLogicalOperation` | [详细文档](set-logical-operation.md) |
|
||||
| `Apply` | [详细文档](apply.md) |
|
||||
| `ApplyDepthStencil` | [详细文档](apply-depth-stencil.md) |
|
||||
| `ApplyBlend` | [详细文档](apply-blend.md) |
|
||||
| `ApplyRasterizer` | [详细文档](apply-rasterizer.md) |
|
||||
| `ApplyViewport` | [详细文档](apply-viewport.md) |
|
||||
| `ApplyScissor` | [详细文档](apply-scissor.md) |
|
||||
| `SetClearColor` | [详细文档](set-clear-color.md) |
|
||||
| `Clear` | [详细文档](../../command-list/clear.md) |
|
||||
| `AttachShader` | [详细文档](attach-shader.md) |
|
||||
| `DetachShader` | [详细文档](detach-shader.md) |
|
||||
| `GetDepthStencilState` | [详细文档](get-depth-stencil-state.md) |
|
||||
| `GetBlendState` | [详细文档](get-blend-state.md) |
|
||||
| `GetRasterizerState` | [详细文档](get-rasterizer-state.md) |
|
||||
| [`Shutdown`](../../../threading/task-system/shutdown.md) | 关闭管线状态 |
|
||||
| [`Bind`](../../shader/bind.md) | 绑定管线状态 |
|
||||
| [`Unbind`](../../shader/unbind.md) | 解绑管线状态 |
|
||||
| [`GetNativeHandle`](../../buffer/get-native-handle.md) | 获取原生句柄 |
|
||||
| [`GetType`](../../command-queue/get-type.md) | 获取管线类型 |
|
||||
| [`SetDepthStencilState`](set-depth-stencil-state.md) | 设置深度模板状态 |
|
||||
| [`SetBlendState`](set-blend-state.md) | 设置混合状态 |
|
||||
| [`SetRasterizerState`](set-rasterizer-state.md) | 设置光栅化状态 |
|
||||
| [`SetViewport`](set-viewport.md) | 设置视口 |
|
||||
| [`SetScissor`](set-scissor.md) | 设置裁剪 |
|
||||
| [`SetLogicalOperation`](set-logical-operation.md) | 设置逻辑操作 |
|
||||
| [`Apply`](apply.md) | 应用管线状态 |
|
||||
| [`ApplyDepthStencil`](apply-depth-stencil.md) | 应用深度模板状态 |
|
||||
| [`ApplyBlend`](apply-blend.md) | 应用混合状态 |
|
||||
| [`ApplyRasterizer`](apply-rasterizer.md) | 应用光栅化状态 |
|
||||
| [`ApplyViewport`](apply-viewport.md) | 应用视口 |
|
||||
| [`ApplyScissor`](apply-scissor.md) | 应用裁剪 |
|
||||
| [`SetClearColor`](set-clear-color.md) | 设置清除颜色 |
|
||||
| [`Clear`](../../command-list/clear.md) | 清除 |
|
||||
| [`AttachShader`](attach-shader.md) | 附加着色器 |
|
||||
| [`DetachShader`](detach-shader.md) | 分离着色器 |
|
||||
| [`GetDepthStencilState`](get-depth-stencil-state.md) | 获取深度模板状态 |
|
||||
| [`GetBlendState`](get-blend-state.md) | 获取混合状态 |
|
||||
| [`GetRasterizerState`](get-rasterizer-state.md) | 获取光栅化状态 |
|
||||
|
||||
## 相关文档
|
||||
|
||||
|
||||
@@ -4,22 +4,23 @@
|
||||
|
||||
**描述**: OpenGL 渲染目标视图实现。
|
||||
|
||||
## 方法列表
|
||||
## 公共方法
|
||||
|
||||
| 方法 | 文档 |
|
||||
| 方法 | 描述 |
|
||||
|------|------|
|
||||
| `Initialize` | [详细文档](initialize.md) |
|
||||
| `InitializeCubemap` | [详细文档](initialize-cubemap.md) |
|
||||
| `Shutdown` | [详细文档](shutdown.md) |
|
||||
| `Bind` | [详细文档](bind.md) |
|
||||
| `Unbind` | [详细文档](unbind.md) |
|
||||
| `Clear` | [详细文档](clear.md) |
|
||||
| `GetFramebuffer` | [详细文档](get-framebuffer.md) |
|
||||
| `GetTexture` | [详细文档](get-texture.md) |
|
||||
| `GetMipLevel` | [详细文档](get-mip-level.md) |
|
||||
| `GetWidth` / `GetHeight` | [详细文档](get-size.md) |
|
||||
| `BindFramebuffer` | [详细文档](bind-framebuffer.md) |
|
||||
| `UnbindFramebuffer` | [详细文档](unbind-framebuffer.md) |
|
||||
| [`Initialize`](initialize.md) | 初始化渲染目标视图 |
|
||||
| [`InitializeCubemap`](initialize-cubemap.md) | 初始化立方体贴图渲染目标视图 |
|
||||
| [`Shutdown`](shutdown.md) | 关闭渲染目标视图 |
|
||||
| [`Bind`](bind.md) | 绑定渲染目标视图 |
|
||||
| [`Unbind`](unbind.md) | 解绑渲染目标视图 |
|
||||
| [`Clear`](clear.md) | 清除 |
|
||||
| [`GetFramebuffer`](get-framebuffer.md) | 获取帧缓冲 |
|
||||
| [`GetTexture`](get-texture.md) | 获取纹理 |
|
||||
| [`GetMipLevel`](get-mip-level.md) | 获取 Mip 级别 |
|
||||
| [`GetWidth`](get-size.md) | 获取宽度 |
|
||||
| [`GetHeight`](get-size.md) | 获取高度 |
|
||||
| [`BindFramebuffer`](bind-framebuffer.md) | 绑定帧缓冲 |
|
||||
| [`UnbindFramebuffer`](unbind-framebuffer.md) | 解绑帧缓冲 |
|
||||
|
||||
## 相关文档
|
||||
|
||||
|
||||
@@ -4,16 +4,16 @@
|
||||
|
||||
**描述**: OpenGL 采样器实现,继承自 `RHISampler`。
|
||||
|
||||
## 方法列表
|
||||
## 公共方法
|
||||
|
||||
| 方法 | 文档 |
|
||||
| 方法 | 描述 |
|
||||
|------|------|
|
||||
| `Initialize` | [详细文档](initialize.md) |
|
||||
| `Shutdown` | [详细文档](../../sampler/shutdown.md) |
|
||||
| `Bind` | [详细文档](bind.md) |
|
||||
| `Unbind` | [详细文档](unbind.md) |
|
||||
| `GetID` | [详细文档](get-id.md) |
|
||||
| `GetNativeHandle` | [详细文档](../../sampler/get-native-handle.md) |
|
||||
| [`Initialize`](initialize.md) | 初始化采样器 |
|
||||
| [`Shutdown`](../../../threading/task-system/shutdown.md) | 关闭采样器 |
|
||||
| [`Bind`](bind.md) | 绑定采样器 |
|
||||
| [`Unbind`](unbind.md) | 解绑采样器 |
|
||||
| [`GetID`](get-id.md) | 获取采样器 ID |
|
||||
| [`GetNativeHandle`](../../buffer/get-native-handle.md) | 获取原生句柄 |
|
||||
|
||||
## 相关文档
|
||||
|
||||
|
||||
@@ -4,28 +4,28 @@
|
||||
|
||||
**描述**: OpenGL 着色器实现,继承自 `RHIShader`。
|
||||
|
||||
## 方法列表
|
||||
## 公共方法
|
||||
|
||||
| 方法 | 文档 |
|
||||
| 方法 | 描述 |
|
||||
|------|------|
|
||||
| `CompileFromFile` | [详细文档](../../shader/compile-from-file.md) |
|
||||
| `Compile` | [详细文档](../../shader/compile.md) |
|
||||
| `Shutdown` | [详细文档](../../shader/shutdown.md) |
|
||||
| `Use` | [详细文档](use.md) |
|
||||
| `Bind` | [详细文档](../../shader/bind.md) |
|
||||
| `Unbind` | [详细文档](../../shader/unbind.md) |
|
||||
| `SetInt` | [详细文档](../../shader/set-int.md) |
|
||||
| `SetIntArray` | [详细文档](set-int-array.md) |
|
||||
| `SetFloat` | [详细文档](../../shader/set-float.md) |
|
||||
| `SetFloatArray` | [详细文档](set-float-array.md) |
|
||||
| `SetVec3` | [详细文档](../../shader/set-vec3.md) |
|
||||
| `SetVec4` | [详细文档](../../shader/set-vec4.md) |
|
||||
| `SetMat4` | [详细文档](../../shader/set-mat4.md) |
|
||||
| `GetUniformLocation` | [详细文档](get-uniform-location.md) |
|
||||
| `GetID` | [详细文档](get-id.md) |
|
||||
| `GetNativeHandle` | [详细文档](../../shader/get-native-handle.md) |
|
||||
| `IsValid` | [详细文档](../../shader/is-valid.md) |
|
||||
| `GetType` | [详细文档](../../shader/get-type.md) |
|
||||
| [`CompileFromFile`](../../shader/compile-from-file.md) | 从文件编译着色器 |
|
||||
| [`Compile`](../../shader/compile.md) | 从源码编译着色器 |
|
||||
| [`Shutdown`](../../../threading/task-system/shutdown.md) | 关闭着色器 |
|
||||
| [`Use`](use.md) | 使用着色器 |
|
||||
| [`Bind`](../../shader/bind.md) | 绑定着色器 |
|
||||
| [`Unbind`](../../shader/unbind.md) | 解绑着色器 |
|
||||
| [`SetInt`](../../shader/set-int.md) | 设置整数 uniform |
|
||||
| [`SetIntArray`](set-int-array.md) | 设置整数数组 uniform |
|
||||
| [`SetFloat`](../../shader/set-float.md) | 设置浮点数 uniform |
|
||||
| [`SetFloatArray`](set-float-array.md) | 设置浮点数数组 uniform |
|
||||
| [`SetVec3`](../../shader/set-vec3.md) | 设置 vec3 uniform |
|
||||
| [`SetVec4`](../../shader/set-vec4.md) | 设置 vec4 uniform |
|
||||
| [`SetMat4`](../../shader/set-mat4.md) | 设置 mat4 uniform |
|
||||
| [`GetUniformLocation`](get-uniform-location.md) | 获取 uniform 位置 |
|
||||
| [`GetID`](get-id.md) | 获取着色器 ID |
|
||||
| [`GetNativeHandle`](../../buffer/get-native-handle.md) | 获取原生句柄 |
|
||||
| [`IsValid`](../../shader/is-valid.md) | 检查是否有效 |
|
||||
| [`GetType`](../../command-queue/get-type.md) | 获取着色器类型 |
|
||||
|
||||
## 相关文档
|
||||
|
||||
|
||||
@@ -4,29 +4,31 @@
|
||||
|
||||
**描述**: OpenGL 交换链实现,继承自 `RHISwapChain`。
|
||||
|
||||
## 方法列表
|
||||
## 公共方法
|
||||
|
||||
| 方法 | 文档 |
|
||||
| 方法 | 描述 |
|
||||
|------|------|
|
||||
| `Initialize` (vsync) | [详细文档](initialize.md) |
|
||||
| `Initialize` (mode) | [详细文档](initialize-mode.md) |
|
||||
| `Shutdown` | [详细文档](../../swap-chain/shutdown.md) |
|
||||
| `Present` | [详细文档](present.md) |
|
||||
| `SwapBuffers` | [详细文档](swap-buffers.md) |
|
||||
| `Resize` | [详细文档](../../swap-chain/swap-chain.md) |
|
||||
| `SetVSync` | [详细文档](set-vsync.md) |
|
||||
| `IsVSync` | [详细文档](is-vsync.md) |
|
||||
| `SetFullscreen` | [详细文档](set-fullscreen.md) |
|
||||
| `IsFullscreen` | [详细文档](is-fullscreen.md) |
|
||||
| `ShouldClose` | [详细文档](should-close.md) |
|
||||
| `SetShouldClose` | [详细文档](set-should-close.md) |
|
||||
| `PollEvents` | [详细文档](poll-events.md) |
|
||||
| `GetCurrentBackBufferIndex` | [详细文档](../../swap-chain/get-current-back-buffer-index.md) |
|
||||
| `GetCurrentBackBuffer` | [详细文档](../../swap-chain/get-current-back-buffer.md) |
|
||||
| `GetWidth` / `GetHeight` | [详细文档](get-size.md) |
|
||||
| `GetFramebufferWidth` / `GetFramebufferHeight` | [详细文档](get-framebuffer-size.md) |
|
||||
| `GetWindow` | [详细文档](get-window.md) |
|
||||
| `GetNativeHandle` | [详细文档](../../swap-chain/get-native-handle.md) |
|
||||
| [`Initialize`](initialize.md) | 初始化交换链 |
|
||||
| [`InitializeMode`](initialize-mode.md) | 使用模式初始化 |
|
||||
| [`Shutdown`](../../../threading/task-system/shutdown.md) | 关闭交换链 |
|
||||
| [`Present`](present.md) | 呈现画面 |
|
||||
| [`SwapBuffers`](swap-buffers.md) | 交换缓冲 |
|
||||
| [`Resize`](../../swap-chain/resize.md) | 调整交换链大小 |
|
||||
| [`SetVSync`](set-vsync.md) | 设置垂直同步 |
|
||||
| [`IsVSync`](is-vsync.md) | 检查是否垂直同步 |
|
||||
| [`SetFullscreen`](set-fullscreen.md) | 设置全屏模式 |
|
||||
| [`IsFullscreen`](is-fullscreen.md) | 检查是否全屏 |
|
||||
| [`ShouldClose`](should-close.md) | 检查是否应关闭 |
|
||||
| [`SetShouldClose`](set-should-close.md) | 设置关闭标志 |
|
||||
| [`PollEvents`](poll-events.md) | 处理窗口事件 |
|
||||
| [`GetCurrentBackBufferIndex`](../../swap-chain/get-current-back-buffer-index.md) | 获取当前后台缓冲区索引 |
|
||||
| [`GetCurrentBackBuffer`](../../swap-chain/get-current-back-buffer.md) | 获取当前后台缓冲区 |
|
||||
| [`GetWidth`](get-size.md) | 获取宽度 |
|
||||
| [`GetHeight`](get-size.md) | 获取高度 |
|
||||
| [`GetFramebufferWidth`](get-framebuffer-size.md) | 获取帧缓冲宽度 |
|
||||
| [`GetFramebufferHeight`](get-framebuffer-size.md) | 获取帧缓冲高度 |
|
||||
| [`GetWindow`](get-window.md) | 获取窗口 |
|
||||
| [`GetNativeHandle`](../../buffer/get-native-handle.md) | 获取原生句柄 |
|
||||
|
||||
## 相关文档
|
||||
|
||||
|
||||
@@ -4,34 +4,34 @@
|
||||
|
||||
**描述**: OpenGL 纹理的实现,继承自 `RHITexture`。
|
||||
|
||||
## 方法列表
|
||||
## 公共方法
|
||||
|
||||
| 方法 | 文档 |
|
||||
| 方法 | 描述 |
|
||||
|------|------|
|
||||
| `Initialize` | [详细文档](initialize-2d.md) |
|
||||
| `Initialize2D` | [详细文档](initialize-2d.md) |
|
||||
| `InitializeCubeMap` | [详细文档](initialize-cube-map.md) |
|
||||
| `LoadFromFile` | [详细文档](load-from-file.md) |
|
||||
| `Shutdown` | [详细文档](../../texture/shutdown.md) |
|
||||
| `Bind` | [详细文档](bind-image.md) |
|
||||
| `Unbind` | [详细文档](../../shader/unbind.md) |
|
||||
| `BindImage` | [详细文档](bind-image.md) |
|
||||
| `GenerateMipmap` | [详细文档](generate-mipmap.md) |
|
||||
| `SetFiltering` | [详细文档](set-filtering.md) |
|
||||
| `SetWrapping` | [详细文档](set-wrapping.md) |
|
||||
| `GetID` | [详细文档](get-id.md) |
|
||||
| `GetOpenGLType` | [详细文档](get-opengl-type.md) |
|
||||
| `GetWidth` | [详细文档](../../texture/get-width.md) |
|
||||
| `GetHeight` | [详细文档](../../texture/get-height.md) |
|
||||
| `GetDepth` | [详细文档](../../texture/get-depth.md) |
|
||||
| `GetMipLevels` | [详细文档](../../texture/get-mip-levels.md) |
|
||||
| `GetTextureType` | [详细文档](../../texture/get-texture-type.md) |
|
||||
| `GetNativeHandle` | [详细文档](../../texture/get-native-handle.md) |
|
||||
| `GetState` | [详细文档](../../texture/get-state.md) |
|
||||
| `SetState` | [详细文档](../../texture/set-state.md) |
|
||||
| `GetName` | [详细文档](../../texture/get-name.md) |
|
||||
| `SetName` | [详细文档](../../texture/set-name.md) |
|
||||
| `GetFormat` | [详细文档](../../texture/get-format.md) |
|
||||
| [`Initialize`](initialize-2d.md) | 初始化 2D 纹理 |
|
||||
| [`Initialize2D`](initialize-2d.md) | 初始化 2D 纹理 |
|
||||
| [`InitializeCubeMap`](initialize-cube-map.md) | 初始化立方体贴图 |
|
||||
| [`LoadFromFile`](load-from-file.md) | 从文件加载纹理 |
|
||||
| [`Shutdown`](../../../threading/task-system/shutdown.md) | 关闭纹理 |
|
||||
| [`Bind`](bind-image.md) | 绑定纹理 |
|
||||
| [`Unbind`](../../shader/unbind.md) | 解绑纹理 |
|
||||
| [`BindImage`](bind-image.md) | 绑定图像 |
|
||||
| [`GenerateMipmap`](generate-mipmap.md) | 生成多级渐远纹理 |
|
||||
| [`SetFiltering`](set-filtering.md) | 设置过滤模式 |
|
||||
| [`SetWrapping`](set-wrapping.md) | 设置环绕模式 |
|
||||
| [`GetID`](get-id.md) | 获取 OpenGL 纹理 ID |
|
||||
| [`GetOpenGLType`](get-opengl-type.md) | 获取 OpenGL 纹理类型 |
|
||||
| [`GetWidth`](../../texture/get-width.md) | 获取纹理宽度 |
|
||||
| [`GetHeight`](../../texture/get-height.md) | 获取纹理高度 |
|
||||
| [`GetDepth`](../../texture/get-depth.md) | 获取纹理深度 |
|
||||
| [`GetMipLevels`](../../texture/get-mip-levels.md) | 获取 Mip 级别 |
|
||||
| [`GetTextureType`](../../texture/get-texture-type.md) | 获取纹理类型 |
|
||||
| [`GetNativeHandle`](../../buffer/get-native-handle.md) | 获取原生句柄 |
|
||||
| [`GetState`](../../buffer/get-state.md) | 获取资源状态 |
|
||||
| [`SetState`](../../buffer/set-state.md) | 设置资源状态 |
|
||||
| [`GetName`](../../buffer/get-name.md) | 获取资源名称 |
|
||||
| [`SetName`](../../buffer/set-name.md) | 设置资源名称 |
|
||||
| [`GetFormat`](../../texture/get-format.md) | 获取纹理格式 |
|
||||
|
||||
## 相关文档
|
||||
|
||||
|
||||
@@ -4,19 +4,19 @@
|
||||
|
||||
**描述**: OpenGL 顶点数组对象 (VAO) 封装。
|
||||
|
||||
## 方法列表
|
||||
## 公共方法
|
||||
|
||||
| 方法 | 文档 |
|
||||
| 方法 | 描述 |
|
||||
|------|------|
|
||||
| `Initialize` | [详细文档](add-vertex-buffer.md) |
|
||||
| `AddVertexBuffer` | [详细文档](add-vertex-buffer.md) |
|
||||
| `SetIndexBuffer` | [详细文档](set-index-buffer.md) |
|
||||
| `Shutdown` | [详细文档](get-id.md) |
|
||||
| `Bind` | [详细文档](../../shader/bind.md) |
|
||||
| `Unbind` | [详细文档](../../shader/unbind.md) |
|
||||
| `GetID` | [详细文档](get-id.md) |
|
||||
| `GetIndexBuffer` | [详细文档](get-index-buffer.md) |
|
||||
| `GetIndexCount` | [详细文档](get-index-count.md) |
|
||||
| [`Initialize`](../../../threading/task-system/initialize.md) | 初始化顶点数组 |
|
||||
| [`AddVertexBuffer`](add-vertex-buffer.md) | 添加顶点缓冲 |
|
||||
| [`SetIndexBuffer`](set-index-buffer.md) | 设置索引缓冲 |
|
||||
| [`Shutdown`](../../../threading/task-system/shutdown.md) | 关闭顶点数组 |
|
||||
| [`Bind`](../../shader/bind.md) | 绑定顶点数组 |
|
||||
| [`Unbind`](../../shader/unbind.md) | 解绑顶点数组 |
|
||||
| [`GetID`](get-id.md) | 获取 OpenGL VAO ID |
|
||||
| [`GetIndexBuffer`](get-index-buffer.md) | 获取索引缓冲 |
|
||||
| [`GetIndexCount`](get-index-count.md) | 获取索引数量 |
|
||||
|
||||
## 相关文档
|
||||
|
||||
|
||||
Reference in New Issue
Block a user