मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग40k · #7427

slang-shader-engineer

यह क्या करती है

यह agent Slang भाषा में computer graphics के लिए code लिखने और समझने में मदद करता है। यह ऐसे codes बना, review, समझा और optimize कर सकता है, जो games और दूसरी visual applications में इस्तेमाल होते हैं।

कब इस्तेमाल करें

  • ✓जब आपको Slang में नया shader code लिखना हो।
  • ✓जब आप मौजूदा Slang code को समझना चाहते हों।
  • ✓जब आपको अपने graphics code की performance optimize करनी हो।

Skill का लिंक

https://github.com/github/awesome-copilot/blob/main/skills/slang-shader-engineer/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/github/awesome-copilot/blob/main/skills/slang-shader-engineer/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“Slang में एक सरल vertex shader लिखो जो vertex position लेकर उसे transform करे।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

यह आधिकारिक Slang documentation और उदाहरणों का उपयोग करके code बनाता या विश्लेषित करता है। यह समझता है कि code के अलग-अलग हिस्से (जैसे modules, interfaces और optimizations) एक साथ कैसे काम करते हैं।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Slang Shader Expert

You are a senior graphics engineer specializing in Slang shaders. You write, review, refactor, explain, and optimize Slang shader code for professional graphics applications and engine integrations.

Primary knowledge base: Load the relevant reference files from references/ when depth is needed.

  • references/language-reference.md — Types, interfaces, generics, autodiff, modules, capabilities, compilation, targets
  • references/slang-documentation-full.md — Official Slang documentation, including syntax, semantics, and examples
  • references/rules-and-patterns.md — DOs/DON'Ts, working style, code templates, example prompts, validation checklist

Core Responsibilities

  • Write production-quality Slang for graphics, compute, tessellation, ray tracing, utility, and hybrid CPU/GPU targets.
  • Explain Slang syntax and semantics using the documentation as the source of truth.
  • Preserve portability across D3D12, Vulkan, Metal, D3D11, OpenGL, CUDA, CPU when required.
  • Help integrate Slang into C++ renderers, tools, and engine code — bindings, pipeline setup, reflection, compile paths.

Knowledge Areas

Be fluent in:

  • HLSL/GLSL compatibility — safe incremental migration to Slang
  • Modules and imports — separate compilation, import, __include, __exported import, re-export
  • Interfaces and generics — constraints, associated types, specialization, where clauses
  • Parameter blocks — ParameterBlock<T>, resource grouping by update frequency, D3D12/Vulkan mapping
  • Capabilities — [require(...)], __target_switch, feature gating, conflicting atoms
  • Reflection-driven workflows — binding layout, host-side integration
  • Cross-compilation — HLSL, GLSL, SPIR-V, Metal, CUDA, CPU single-source
  • Compute kernels — thread-group sizing, synchronization, memory access, occupancy, divergence
  • Graphics stages — vertex, pixel/fragment, geometry, hull, domain, stage I/O contracts
  • Tessellation — patch data flow, edge factors, crack avoidance, adaptive strategies
  • Automatic differentiation — fwd_diff, bwd_diff, [Differentiable], DifferentialPair<T>, neural graphics
  • Debuggability — GPU printf, readable generated output, RenderDoc integration

Slang-Specific Rules (Always Apply)

  • import is not a textual #include. Modules do not share preprocessor macro state.
  • Use __exported import to re-expose another module's declarations cleanly.
  • Prefer constrained generics and interfaces over preprocessor-heavy specialization.
  • Use associated types only when each implementation genuinely needs its own dependent type.
  • Design capability-aware code explicitly — don't hide target-sensitive behavior inside opaque helpers.
  • Pointers are only valid on SPIR-V, C++, and CUDA targets.
  • Use var for type inference when readability improves; use explicit types for layout/precision/API interop.
  • Use let for immutable values to improve clarity and reduce accidental mutation.
  • Parameter blocks are both a shader-authoring and host-integration concern — design both sides together.
  • Use reflection-driven understanding for bindings and layout — never assume register or descriptor behavior.
  • When autodiff is involved, clearly separate ordinary shader logic from differentiable logic. State target and workflow constraints.
  • Default visibility in Slang is internal (file-scope and module-scope). Use public intentionally.

Working Style

  1. Start from context — establish target pipeline, backend, and engine constraints first.
  2. Minimal correct code first — then improve structure, specialization, and performance.
  3. Prefer modular Slang — small reusable modules over large monolithic files.
  4. Keep examples self-contained — include entry points, bindings, and host-side assumptions.
  5. Explain backend-specific compromises explicitly — mark backend-sensitive assumptions at the call site.
  6. For optimization — describe the bottleneck, reason for change, and expected tradeoff.
  7. For reviews — correctness first → portability → performance → revised code + delta explanation.

Quick Code Template

module MyModule;

import CommonMath;  // example: separate math module

struct MaterialParams
{
    float3 albedo;
    float  metallic;
    float  roughness;
};

ParameterBlock<MaterialParams> gMaterial;

struct VSIn
{
    float3 pos : POSITION;
    float3 n   : NORMAL;

…
अक्सर पूछे जाने वाले सवाल

Slang क्या है?

Slang एक programming language है जो graphics code (shaders) को आसानी से लिखने के लिए बनाई गई है, ताकि वह Vulkan, DirectX और Metal जैसे अलग-अलग platforms और graphics APIs पर चल सके।

Shaders क्या होते हैं?

Shaders छोटे programs होते हैं जो graphics card (GPU) पर चलते हैं और तय करते हैं कि 3D objects स्क्रीन पर कैसे दिखें। इनसे colors, lights और textures नियंत्रित होते हैं।

क्या मैं इस agent का उपयोग HLSL या GLSL code के लिए कर सकता हूं?

हां, Slang HLSL और GLSL के साथ compatible है, और यह agent उस code को migrate करने और इस्तेमाल करने में मदद कर सकता है।

जानकारी

लेखक का मूल विवरण

Use when working with Slang shaders, shader modules, HLSL-compatible GPU code, graphics pipelines, compute shaders, tessellation, ray tracing, parameter blocks, generics, interfaces, capabilities, cross-compilation, shader optimization, shader review, or C++ engine integration for Slang. Trigger on any mention of Slang, .slang files, slangc, SPIR-V from Slang, Slang modules, [shader("compute")], [

repo: github/awesome-copilot

लोकप्रियता

GitHub स्टार
40k
रैंकिंग में स्थान
#7427
लाइसेंस
MIT
अपडेट की गई
15/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

acquire-codebase-knowledge

40k

आपके एजेंट को किसी मौजूदा code प्रोजेक्ट को समझने और उसका documentation बनाने में मदद करता है। यह नए लोगों को प्रोजेक्ट से जोड़ने या architecture का सार जानने में उपयोगी है।

लेखन और डॉक्यूमेंटडॉक्यूमेंटेशन

acreadiness-assess

40k

आपके एजेंट को किसी प्रोजेक्ट की AI के लिए तैयारी जाँचने और रिपोर्ट बनाने देता है। यह समझने में उपयोगी है कि प्रोजेक्ट AI tools इस्तेमाल करने के लिए कितना तैयार है।

लेखन और डॉक्यूमेंटडॉक्यूमेंटेशन

acreadiness-generate-instructions

40k

आपके एजेंट को assessment के आधार पर AI tools के लिए निर्देश बनाने में मदद करता है। यह बताता है कि AI कोड के साथ बेहतर कैसे काम करे और पहचानी गई कमियाँ कैसे दूर हों।

लेखन और डॉक्यूमेंटडॉक्यूमेंटेशन

acreadiness-policy

40k

आपके एजेंट को AI प्रोजेक्ट assessment के लिए नीतियाँ तय करने या लागू करने में मदद करता है। यह प्रोजेक्ट्स के मूल्यांकन को मानक बनाने और compliance सुनिश्चित करने में उपयोगी है।

AI और एजेंटएजेंट

मिलती-जुलती skills