Hlsl

HLSL shader programming skill for DirectX, compute shaders, and optimization.

a5c-ai Updated 1.7k repo stars

File contents

HLSL Skill

HLSL shader programming for DirectX.

Overview

This skill provides capabilities for writing HLSL shaders for DirectX-based engines.

Capabilities

  • Vertex and pixel shaders
  • Compute shaders
  • Constant buffer management
  • Shader optimization

Usage Patterns

cbuffer ConstantBuffer : register(b0)
{
    float4x4 WorldViewProj;
}

float4 PSMain(PSInput input) : SV_TARGET
{
    return input.Color;
}

References

a5c-ai/babysitter/tree/main/library/specializations/game-development/skills/hlsl commit 2fc3c7bac3

Frequently asked questions

npx skillmds@latest add a5c-ai/hlsl