From 36072754b747911424af4f4e488a91c7da1cc0ec Mon Sep 17 00:00:00 2001 From: qian-o <1324771795@qq.com> Date: Tue, 22 Sep 2026 12:57:02 +0800 Subject: [PATCH 01/11] Remove outdated context references from tutorial requirements in multiple language files --- documents/learn/first-triangle.md | 6 ------ documents/locales/de-DE/strings.yml | 3 --- documents/locales/en-US/strings.yml | 3 --- documents/locales/es-ES/strings.yml | 3 --- documents/locales/fr-FR/strings.yml | 3 --- documents/locales/ja-JP/strings.yml | 3 --- documents/locales/ko-KR/strings.yml | 3 --- documents/locales/pt-BR/strings.yml | 3 --- documents/locales/ru-RU/strings.yml | 3 --- documents/locales/zh-CN/strings.yml | 3 --- documents/locales/zh-TW/strings.yml | 3 --- 11 files changed, 36 deletions(-) diff --git a/documents/learn/first-triangle.md b/documents/learn/first-triangle.md index 7ea83be7..e6a42630 100644 --- a/documents/learn/first-triangle.md +++ b/documents/learn/first-triangle.md @@ -66,12 +66,6 @@ title: '@tutorial.title' CAMetalLayer.cs

-

- - - - -

diff --git a/documents/locales/de-DE/strings.yml b/documents/locales/de-DE/strings.yml index c4dea822..bbc69c0f 100644 --- a/documents/locales/de-DE/strings.yml +++ b/documents/locales/de-DE/strings.yml @@ -434,9 +434,6 @@ tutorial.project.description: 'Erstellen Sie ein C#-Konsolenprojekt namens {firs tutorial.project.details: 'Fügen Sie dem Projekt die folgenden NuGet-Pakete hinzu:' tutorial.project.guidance: '{zenithNET} liefert die gemeinsame API, die drei Backend-Pakete ihre Plattformimplementierungen. {zenithNETCompiler} übersetzt die unten eingeführten Slang-Shader für das Backend. Silk.NET übernimmt Fenster und Ereignisse.' tutorial.project.title: 'Projekteinrichtung' -tutorial.requirements.context: 'Das {link} und sein {detail} dienen als Referenzimplementierungen für dieses Tutorial.' -tutorial.requirements.context.detail: gemeinsamer Host -tutorial.requirements.context.link: Hallo-Dreieck-Beispiel tutorial.requirements.description: 'Sie benötigen das {emphasis} und C#-Grundkenntnisse. Die Anwendung verwendet das Zielframework {net10}. GPU und Treiber müssen das für Ihre Plattform gewählte Backend unterstützen:' tutorial.requirements.description.emphasis: .NET 10 SDK tutorial.requirements.guidance: 'Zenith.NET rendert in ein von der Anwendung bereitgestelltes Präsentationsziel. Silk.NET.Windowing erstellt das Fenster und verarbeitet Ereignisse. Unter macOS dient ein in {cAMetalLayerCs} repräsentierter Metal-Layer als Ziel; der Fenster-Helper verbindet ihn mit dem Fenster.' diff --git a/documents/locales/en-US/strings.yml b/documents/locales/en-US/strings.yml index aad0d256..47af1296 100644 --- a/documents/locales/en-US/strings.yml +++ b/documents/locales/en-US/strings.yml @@ -744,9 +744,6 @@ tutorial.project.guidance: '{zenithNET} provides the shared rendering API, and t its platform implementations. {zenithNETCompiler} compiles the Slang shaders introduced below for the selected backend. Silk.NET provides window creation and event processing.' tutorial.project.title: Project setup -tutorial.requirements.context: The {link} and its {detail} provide reference implementations for this tutorial. -tutorial.requirements.context.detail: shared host -tutorial.requirements.context.link: Hello Triangle sample tutorial.requirements.description: 'You need the {emphasis} and basic C# knowledge. The application targets {net10}. Your GPU and driver must support the backend selected for your platform:' tutorial.requirements.description.emphasis: .NET 10 SDK diff --git a/documents/locales/es-ES/strings.yml b/documents/locales/es-ES/strings.yml index 768e023d..188b93e1 100644 --- a/documents/locales/es-ES/strings.yml +++ b/documents/locales/es-ES/strings.yml @@ -434,9 +434,6 @@ tutorial.project.description: 'Cree un proyecto de consola C# llamado {firstTria tutorial.project.details: 'Añada los siguientes paquetes NuGet al proyecto:' tutorial.project.guidance: '{zenithNET} aporta la API común y los tres paquetes de backend sus implementaciones. {zenithNETCompiler} compila los sombreadores Slang que se presentan a continuación. Silk.NET crea la ventana y procesa eventos.' tutorial.project.title: 'Configuración del proyecto' -tutorial.requirements.context: 'El {link} y su {detail} proporcionan las implementaciones de referencia del tutorial.' -tutorial.requirements.context.detail: 'host compartido' -tutorial.requirements.context.link: 'ejemplo Hola triángulo' tutorial.requirements.description: 'Necesita el {emphasis} y conocimientos básicos de C#. La aplicación tiene {net10} como framework de destino. La GPU y el controlador deben admitir el backend elegido para su plataforma:' tutorial.requirements.description.emphasis: 'SDK de .NET 10' tutorial.requirements.guidance: 'Zenith.NET renderiza en una superficie nativa proporcionada por la aplicación. Silk.NET.Windowing crea la ventana y procesa eventos. En macOS se utiliza una capa Metal, representada por {cAMetalLayerCs}, que el código auxiliar conecta a la ventana.' diff --git a/documents/locales/fr-FR/strings.yml b/documents/locales/fr-FR/strings.yml index 8e1a4d1e..c8deb5d4 100644 --- a/documents/locales/fr-FR/strings.yml +++ b/documents/locales/fr-FR/strings.yml @@ -434,9 +434,6 @@ tutorial.project.description: 'Créez un projet console C# nommé {firstTriangle tutorial.project.details: 'Ajoutez les paquets NuGet suivants au projet :' tutorial.project.guidance: '{zenithNET} fournit l’API de rendu commune, et les trois paquets de backend en fournissent les implémentations propres aux plateformes. {zenithNETCompiler} compile les shaders Slang présentés plus bas pour le backend choisi. Silk.NET assure la création de la fenêtre et le traitement des événements.' tutorial.project.title: 'Configuration du projet' -tutorial.requirements.context: 'L’{link} et son {detail} fournissent les implémentations de référence de ce tutoriel.' -tutorial.requirements.context.detail: hôte partagé -tutorial.requirements.context.link: exemple Bonjour triangle tutorial.requirements.description: 'Vous devez disposer du {emphasis} et connaître les bases de C#. L’application cible {net10}. Le GPU et son pilote doivent prendre en charge le backend choisi pour votre plateforme :' tutorial.requirements.description.emphasis: SDK .NET 10 tutorial.requirements.guidance: 'Zenith.NET rend dans une surface native fournie par l’application. Silk.NET.Windowing crée la fenêtre et gère les événements. Sous macOS, une couche Metal représentée par {cAMetalLayerCs} reçoit la sortie ; le code auxiliaire la rattache à la fenêtre.' diff --git a/documents/locales/ja-JP/strings.yml b/documents/locales/ja-JP/strings.yml index 3ee356f9..81bbcf77 100644 --- a/documents/locales/ja-JP/strings.yml +++ b/documents/locales/ja-JP/strings.yml @@ -434,9 +434,6 @@ tutorial.project.description: '.NET 10 を対象とする、{firstTriangle} と tutorial.project.details: 'プロジェクトに次の NuGet パッケージを追加します。' tutorial.project.guidance: '{zenithNET} が共通の描画 API を、三つのバックエンドパッケージが各実装を提供します。{zenithNETCompiler} は後で作る Slang シェーダーを対象バックエンド向けにコンパイルします。Silk.NET はウィンドウの作成とイベント処理を担当します。' tutorial.project.title: 'プロジェクトの準備' -tutorial.requirements.context: '{link}とその{detail}が、このチュートリアルの参照実装です。' -tutorial.requirements.context.detail: '共有ホスト' -tutorial.requirements.context.link: 'Hello Triangle サンプル' tutorial.requirements.description: '{emphasis} と C# の基礎知識が必要です。アプリケーションの対象フレームワークは {net10} です。GPU とドライバーは、プラットフォームごとに選ぶ次のバックエンドに対応している必要があります。' tutorial.requirements.description.emphasis: '.NET 10 SDK' tutorial.requirements.guidance: 'Zenith.NET はアプリケーションから渡されたネイティブサーフェスへ描画します。Silk.NET.Windowing がウィンドウとイベントを管理します。macOS の提示には {cAMetalLayerCs} で表される Metal レイヤーを使い、補助コードがウィンドウへ取り付けます。' diff --git a/documents/locales/ko-KR/strings.yml b/documents/locales/ko-KR/strings.yml index 5396aadf..a7a395c0 100644 --- a/documents/locales/ko-KR/strings.yml +++ b/documents/locales/ko-KR/strings.yml @@ -434,9 +434,6 @@ tutorial.project.description: '.NET 10을 대상으로 하는 {firstTriangle} C# tutorial.project.details: '다음 NuGet 패키지를 프로젝트에 추가합니다.' tutorial.project.guidance: '{zenithNET}은 공통 렌더링 API를, 백엔드 패키지 세 개는 플랫폼 구현을 제공합니다. {zenithNETCompiler}는 뒤에서 작성할 Slang 셰이더를 선택한 백엔드에 맞게 컴파일합니다. Silk.NET은 창 생성과 이벤트 처리를 담당합니다.' tutorial.project.title: '프로젝트 준비' -tutorial.requirements.context: '{link}와 해당 {detail}에서 이 튜토리얼의 참조 구현을 확인할 수 있습니다.' -tutorial.requirements.context.detail: 공유 호스트 -tutorial.requirements.context.link: 'Hello Triangle 예제' tutorial.requirements.description: '{emphasis}와 기본 C# 지식이 필요합니다. 애플리케이션의 대상 프레임워크는 {net10}입니다. GPU와 드라이버는 사용 중인 플랫폼에 맞춰 선택한 다음 백엔드를 지원해야 합니다.' tutorial.requirements.description.emphasis: .NET 10 SDK tutorial.requirements.guidance: 'Zenith.NET은 애플리케이션이 제공하는 네이티브 서피스에 렌더링합니다. Silk.NET.Windowing은 창을 만들고 이벤트를 처리합니다. macOS에서는 {cAMetalLayerCs}로 표현되는 Metal 레이어로 표시하며, 창 보조 코드가 이 레이어를 창에 연결합니다.' diff --git a/documents/locales/pt-BR/strings.yml b/documents/locales/pt-BR/strings.yml index 065cd8fa..41718a0a 100644 --- a/documents/locales/pt-BR/strings.yml +++ b/documents/locales/pt-BR/strings.yml @@ -434,9 +434,6 @@ tutorial.project.description: 'Crie um projeto de console C# chamado {firstTrian tutorial.project.details: 'Adicione os seguintes pacotes NuGet ao projeto:' tutorial.project.guidance: '{zenithNET} fornece a API comum de renderização; os três pacotes de backend, suas implementações. {zenithNETCompiler} compila os shaders Slang apresentados adiante para o backend selecionado. Silk.NET cria a janela e processa eventos.' tutorial.project.title: 'Configuração do projeto' -tutorial.requirements.context: 'O {link} e seu {detail} fornecem as implementações de referência deste tutorial.' -tutorial.requirements.context.detail: 'programa hospedeiro' -tutorial.requirements.context.link: 'exemplo Olá triângulo' tutorial.requirements.description: 'São necessários o {emphasis} e conhecimentos básicos de C#. A aplicação tem {net10} como destino. A GPU e o driver devem oferecer suporte ao backend escolhido para sua plataforma:' tutorial.requirements.description.emphasis: 'SDK do .NET 10' tutorial.requirements.guidance: 'Zenith.NET renderiza em uma superfície nativa fornecida pela aplicação. Silk.NET.Windowing cria a janela e processa seus eventos. No macOS, a apresentação usa uma camada Metal, representada por {cAMetalLayerCs}, que o auxiliar associa à janela.' diff --git a/documents/locales/ru-RU/strings.yml b/documents/locales/ru-RU/strings.yml index 9ccc4f3b..cb51adfb 100644 --- a/documents/locales/ru-RU/strings.yml +++ b/documents/locales/ru-RU/strings.yml @@ -434,9 +434,6 @@ tutorial.project.description: 'Создайте консольный проек tutorial.project.details: 'Добавьте в проект следующие пакеты NuGet:' tutorial.project.guidance: '{zenithNET} предоставляет общий API рендеринга, а три пакета бэкендов — его платформенные реализации. {zenithNETCompiler} компилирует шейдеры Slang для выбранного бэкенда. Silk.NET создаёт окно и обрабатывает события.' tutorial.project.title: 'Настройка проекта' -tutorial.requirements.context: 'Образцы кода для этого урока — {link} и его {detail}.' -tutorial.requirements.context.detail: 'общая оболочка' -tutorial.requirements.context.link: 'пример Hello Triangle' tutorial.requirements.description: 'Нужны {emphasis} и базовое знание C#. Приложение предназначено для {net10}. GPU и драйвер должны поддерживать бэкенд, выбранный для вашей платформы:' tutorial.requirements.description.emphasis: .NET 10 SDK tutorial.requirements.guidance: 'Zenith.NET выполняет рендеринг на нативной поверхности, предоставленной приложением. Silk.NET.Windowing создаёт окно и обрабатывает его события. На macOS для вывода используется слой Metal, представленный в {cAMetalLayerCs}; вспомогательный код связывает его с окном.' diff --git a/documents/locales/zh-CN/strings.yml b/documents/locales/zh-CN/strings.yml index c20b4be4..94bbbe1a 100644 --- a/documents/locales/zh-CN/strings.yml +++ b/documents/locales/zh-CN/strings.yml @@ -434,9 +434,6 @@ tutorial.project.description: '创建名为 {firstTriangle} 的 C# 控制台项 tutorial.project.details: '为项目添加以下 NuGet 包:' tutorial.project.guidance: '{zenithNET} 提供统一渲染 API,三个后端包提供各平台的实现。{zenithNETCompiler} 为所选后端编译稍后介绍的 Slang 着色器。Silk.NET 负责窗口创建与事件处理。' tutorial.project.title: '项目设置' -tutorial.requirements.context: '{link}及其{detail}提供了本教程的参考实现。' -tutorial.requirements.context.detail: '共享宿主' -tutorial.requirements.context.link: 'Hello Triangle 示例' tutorial.requirements.description: '需要 {emphasis},并具备基础 C# 知识。应用程序以 {net10} 为目标框架。GPU 和驱动程序须支持所在平台选用的后端:' tutorial.requirements.description.emphasis: '.NET 10 SDK' tutorial.requirements.guidance: 'Zenith.NET 渲染到应用程序提供的原生呈现目标。Silk.NET.Windowing 创建窗口并处理事件。macOS 使用由 {cAMetalLayerCs} 表示的 Metal 图层,窗口辅助代码负责将其连接到窗口。' diff --git a/documents/locales/zh-TW/strings.yml b/documents/locales/zh-TW/strings.yml index 68619138..58dd9968 100644 --- a/documents/locales/zh-TW/strings.yml +++ b/documents/locales/zh-TW/strings.yml @@ -434,9 +434,6 @@ tutorial.project.description: '建立名為 {firstTriangle} 的 C# 主控台專 tutorial.project.details: '為專案加入以下 NuGet 套件:' tutorial.project.guidance: '{zenithNET} 提供統一渲染 API,三個後端套件提供各平台的實作。{zenithNETCompiler} 為所選後端編譯稍後介紹的 Slang 著色器。Silk.NET 負責視窗建立與事件處理。' tutorial.project.title: '專案設定' -tutorial.requirements.context: '{link}及其{detail}提供了本教學的參考實作。' -tutorial.requirements.context.detail: '共用宿主程式' -tutorial.requirements.context.link: 'Hello Triangle 範例' tutorial.requirements.description: '需要 {emphasis},並具備基礎 C# 知識。應用程式以 {net10} 為目標框架。GPU 與驅動程式須支援所在平台選用的後端:' tutorial.requirements.description.emphasis: '.NET 10 SDK' tutorial.requirements.guidance: 'Zenith.NET 渲染到應用程式提供的原生呈現目標。Silk.NET.Windowing 建立視窗並處理事件。macOS 使用由 {cAMetalLayerCs} 表示的 Metal 圖層,視窗輔助程式碼負責將它連接到視窗。' From 54c6a9c895bd3fb92fe7547254fc9aab03b69c98 Mon Sep 17 00:00:00 2001 From: qian-o <1324771795@qq.com> Date: Tue, 22 Sep 2026 16:09:57 +0800 Subject: [PATCH 02/11] Refine documentation guidelines for code samples and content review process - Updated instructions for describing code samples to include visible results and main techniques demonstrated. - Clarified the importance of prerequisites for running samples and emphasized the exclusion of unrelated details. - Enhanced the content review process to focus on reading order, teaching sequence, and continuity, while separating editorial findings from technical checks. --- .../learn/concepts/platform-integration.md | 11 - .../learn/concepts/resource-management.md | 8 +- .../learn/concepts/shader-data-and-binding.md | 3 - documents/learn/first-triangle.md | 38 +--- documents/learn/samples.md | 40 +--- documents/locales/de-DE/strings.yml | 89 ++++---- documents/locales/en-US/strings.yml | 195 ++++++++---------- documents/locales/es-ES/strings.yml | 89 ++++---- documents/locales/fr-FR/strings.yml | 89 ++++---- documents/locales/ja-JP/strings.yml | 89 ++++---- documents/locales/ko-KR/strings.yml | 89 ++++---- documents/locales/pt-BR/strings.yml | 89 ++++---- documents/locales/ru-RU/strings.yml | 89 ++++---- documents/locales/zh-CN/strings.yml | 89 ++++---- documents/locales/zh-TW/strings.yml | 89 ++++---- documents/maintenance.md | 4 +- 16 files changed, 453 insertions(+), 647 deletions(-) diff --git a/documents/learn/concepts/platform-integration.md b/documents/learn/concepts/platform-integration.md index 8aed9607..39c00270 100644 --- a/documents/learn/concepts/platform-integration.md +++ b/documents/learn/concepts/platform-integration.md @@ -181,11 +181,6 @@ view.RenderRequested += (_, args) => Undefined

-

- - ZenithViewHelper.DrawableFormat - -

Desc.Width @@ -285,12 +280,6 @@ view.RenderRequested += (_, args) => RenderRequested

-

- - Zenith.NET.Views.Avalonia - -

-

UseZenithView diff --git a/documents/learn/concepts/resource-management.md b/documents/learn/concepts/resource-management.md index f1a2726d..8c46cf79 100644 --- a/documents/learn/concepts/resource-management.md +++ b/documents/learn/concepts/resource-management.md @@ -381,10 +381,14 @@ title: '@concepts.resources.title'

- - + + CopyDst + CopySrc

+

+ +

diff --git a/documents/learn/concepts/shader-data-and-binding.md b/documents/learn/concepts/shader-data-and-binding.md index e13d29f0..6532bdfb 100644 --- a/documents/learn/concepts/shader-data-and-binding.md +++ b/documents/learn/concepts/shader-data-and-binding.md @@ -146,9 +146,6 @@ commandBuffer.Dispatch(groupCountX, groupCountY, 1);

- commandBuffer - computePipeline - constantBuffer BufferUsages.Constant

diff --git a/documents/learn/first-triangle.md b/documents/learn/first-triangle.md index e6a42630..1471d6b0 100644 --- a/documents/learn/first-triangle.md +++ b/documents/learn/first-triangle.md @@ -20,7 +20,6 @@ title: '@tutorial.title'

- net10.0

@@ -62,9 +61,7 @@ title: '@tutorial.title'

- - CAMetalLayer.cs - +

@@ -118,15 +115,9 @@ title: '@tutorial.title'

3.

-

- - CocoaHelper.cs - -

Program.cs - Main

@@ -221,6 +212,11 @@ context.ValidationMessage += static (_, args) => Console.WriteLine($"[{args.Seve

+

+ + CocoaHelper.cs + +

window.Center() @@ -286,7 +282,6 @@ SwapChain swapChain = context.CreateSwapChain(new() B8G8R8A8UNorm UNorm - swapChain.Desc.Format

@@ -314,7 +309,6 @@ context.Dispose();

- _ window.Run(); @@ -476,8 +470,6 @@ file struct Vertex(Vector3 position, Vector4 color)

- file - Program.cs LayoutKind.Sequential Position Color @@ -505,13 +497,7 @@ Vertex[] vertices = ```

- - Vertex - new - Vector3 - Vector4 - w = 1 - +

@@ -579,7 +565,6 @@ unsafe vertexBuffer.Dispose(); swapChain.Dispose(); Program.cs -

@@ -810,9 +795,6 @@ inputLayout.Add(new() { Format = ElementFormat.Float4, Semantic = ElementSemanti GraphicsPipeline

-

- -